source: npl/internetserver/poptop_ppp/patches/ppp-2.4.3-fix.patch @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 3.3 KB
  • ppp-2.4.3/pppd/plugins/rp-pppoe/discovery.c

     
    1313
    1414#include "pppoe.h"
    1515
     16void warn __P((char *, ...));   /* log a warning message */
     17
    1618#ifdef HAVE_SYSLOG_H
    1719#include <syslog.h>
    1820#endif
  • ppp-2.4.3/pppd/ipv6cp.c

     
    151151 */
    152152
    153153#include <stdio.h>
     154#include <stdlib.h>
    154155#include <string.h>
    155156#include <unistd.h>
    156157#include <netdb.h>
     
    10641065    return (rc);                        /* Return final code */
    10651066}
    10661067
    1067 
     1068#if defined(SOL2) || defined(__linux__)
     1069int ether_to_eui64(eui64_t *p_eui64);
     1070#endif
    10681071/*
    10691072 * ipv6_check_options - check that any IP-related options are OK,
    10701073 * and assign appropriate defaults.
  • ppp-2.4.3/include/linux/if_pppox.h

     
    1818
    1919
    2020#include <asm/types.h>
    21 #include <asm/byteorder.h>
     21#include <endian.h>
    2222
    2323#ifdef  __KERNEL__
    2424#include <linux/if_ether.h>
     
    9797#define PTT_GEN_ERR     __constant_htons(0x0203)
    9898
    9999struct pppoe_hdr {
    100 #if defined(__LITTLE_ENDIAN_BITFIELD)
     100#if __BYTE_ORDER == __LITTLE_ENDIAN
    101101        __u8 ver : 4;
    102102        __u8 type : 4;
    103 #elif defined(__BIG_ENDIAN_BITFIELD)
     103#elif __BYTE_ORDER == __BIG_ENDIAN
    104104        __u8 type : 4;
    105105        __u8 ver : 4;
    106106#else
  • ppp-2.4.3/pppdump/deflate.c

     
    237237{
    238238    struct deflate_state *state = (struct deflate_state *) arg;
    239239    u_char *rptr, *wptr;
    240     int rlen, olen, ospace;
    241     int seq, i, flush, r, decode_proto;
     240    int rlen, olen;
     241    int seq, r;
    242242
    243243    rptr = mi;
    244244    if (*rptr == 0)
  • ppp-2.4.3/pppdump/bsd-comp.c

     
    383383        || options[0] != CI_BSD_COMPRESS || options[1] != CILEN_BSD_COMPRESS
    384384        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
    385385        || BSD_NBITS(options[2]) != db->maxbits
    386         || decomp && db->lens == NULL)
     386        || (decomp && db->lens == NULL))
    387387        return 0;
    388388
    389389    if (decomp) {
     
    556556    u_int n_bits = db->n_bits;
    557557    u_int tgtbitno = 32-n_bits; /* bitno when we have a code */
    558558    struct bsd_dict *dictp;
    559     int explen, i, seq, len;
     559    int explen, seq, len;
    560560    u_int incode, oldcode, finchar;
    561561    u_char *p, *rptr, *wptr;
    562562    int ilen;
    563     int dlen, space, codelen, extra;
     563    int dlen=0, codelen, extra;
    564564
    565565    rptr = cmsg;
    566566    if (*rptr == 0)
     
    616616        }
    617617
    618618        if (incode > max_ent + 2 || incode > db->maxmaxcode
    619             || incode > max_ent && oldcode == CLEAR) {
     619            || (incode > max_ent && oldcode == CLEAR)) {
    620620            if (db->debug) {
    621621                printf("bsd_decomp%d: bad code 0x%x oldcode=0x%x ",
    622622                       db->unit, incode, oldcode);
  • ppp-2.4.3/pppdump/pppdump.c

     
    191191            show_time(f, c);
    192192            break;
    193193        default:
    194             printf("?%.2x\n");
     194            printf("?%.2x\n", c);
    195195        }
    196196    }
    197197}
     
    421421            show_time(f, c);
    422422            break;
    423423        default:
    424             printf("?%.2x\n");
     424            printf("?%.2x\n", c);
    425425        }
    426426    }
    427427}
Note: See TracBrowser for help on using the repository browser.