source:
npl/internetserver/poptop_ppp/patches/ppp-2.4.3-fix.patch
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 3.3 KB |
-
ppp-2.4.3/pppd/plugins/rp-pppoe/discovery.c
13 13 14 14 #include "pppoe.h" 15 15 16 void warn __P((char *, ...)); /* log a warning message */ 17 16 18 #ifdef HAVE_SYSLOG_H 17 19 #include <syslog.h> 18 20 #endif -
ppp-2.4.3/pppd/ipv6cp.c
151 151 */ 152 152 153 153 #include <stdio.h> 154 #include <stdlib.h> 154 155 #include <string.h> 155 156 #include <unistd.h> 156 157 #include <netdb.h> … … 1064 1065 return (rc); /* Return final code */ 1065 1066 } 1066 1067 1067 1068 #if defined(SOL2) || defined(__linux__) 1069 int ether_to_eui64(eui64_t *p_eui64); 1070 #endif 1068 1071 /* 1069 1072 * ipv6_check_options - check that any IP-related options are OK, 1070 1073 * and assign appropriate defaults. -
ppp-2.4.3/include/linux/if_pppox.h
18 18 19 19 20 20 #include <asm/types.h> 21 #include < asm/byteorder.h>21 #include <endian.h> 22 22 23 23 #ifdef __KERNEL__ 24 24 #include <linux/if_ether.h> … … 97 97 #define PTT_GEN_ERR __constant_htons(0x0203) 98 98 99 99 struct pppoe_hdr { 100 #if defined(__LITTLE_ENDIAN_BITFIELD)100 #if __BYTE_ORDER == __LITTLE_ENDIAN 101 101 __u8 ver : 4; 102 102 __u8 type : 4; 103 #elif defined(__BIG_ENDIAN_BITFIELD)103 #elif __BYTE_ORDER == __BIG_ENDIAN 104 104 __u8 type : 4; 105 105 __u8 ver : 4; 106 106 #else -
ppp-2.4.3/pppdump/deflate.c
237 237 { 238 238 struct deflate_state *state = (struct deflate_state *) arg; 239 239 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; 242 242 243 243 rptr = mi; 244 244 if (*rptr == 0) -
ppp-2.4.3/pppdump/bsd-comp.c
383 383 || options[0] != CI_BSD_COMPRESS || options[1] != CILEN_BSD_COMPRESS 384 384 || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION 385 385 || BSD_NBITS(options[2]) != db->maxbits 386 || decomp && db->lens == NULL)386 || (decomp && db->lens == NULL)) 387 387 return 0; 388 388 389 389 if (decomp) { … … 556 556 u_int n_bits = db->n_bits; 557 557 u_int tgtbitno = 32-n_bits; /* bitno when we have a code */ 558 558 struct bsd_dict *dictp; 559 int explen, i,seq, len;559 int explen, seq, len; 560 560 u_int incode, oldcode, finchar; 561 561 u_char *p, *rptr, *wptr; 562 562 int ilen; 563 int dlen , space, codelen, extra;563 int dlen=0, codelen, extra; 564 564 565 565 rptr = cmsg; 566 566 if (*rptr == 0) … … 616 616 } 617 617 618 618 if (incode > max_ent + 2 || incode > db->maxmaxcode 619 || incode > max_ent && oldcode == CLEAR) {619 || (incode > max_ent && oldcode == CLEAR)) { 620 620 if (db->debug) { 621 621 printf("bsd_decomp%d: bad code 0x%x oldcode=0x%x ", 622 622 db->unit, incode, oldcode); -
ppp-2.4.3/pppdump/pppdump.c
191 191 show_time(f, c); 192 192 break; 193 193 default: 194 printf("?%.2x\n" );194 printf("?%.2x\n", c); 195 195 } 196 196 } 197 197 } … … 421 421 show_time(f, c); 422 422 break; 423 423 default: 424 printf("?%.2x\n" );424 printf("?%.2x\n", c); 425 425 } 426 426 } 427 427 }
Note: See TracBrowser
for help on using the repository browser.