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
RevLine 
[c5c522c]1--- ppp-2.4.3/pppd/plugins/rp-pppoe/discovery.c 2004-11-04 10:07:37.000000000 +0000
2+++ ppp-2.4.3/pppd/plugins/rp-pppoe/discovery.c 2004-11-22 15:18:56.546019577 +0000
3@@ -13,6 +13,8 @@
4 
5 #include "pppoe.h"
6 
7+void warn __P((char *, ...));   /* log a warning message */
8+
9 #ifdef HAVE_SYSLOG_H
10 #include <syslog.h>
11 #endif
12--- ppp-2.4.3/pppd/ipv6cp.c     2004-11-13 02:28:15.000000000 +0000
13+++ ppp-2.4.3/pppd/ipv6cp.c     2004-11-22 15:22:27.469116775 +0000
14@@ -151,6 +151,7 @@
15  */
16 
17 #include <stdio.h>
18+#include <stdlib.h>
19 #include <string.h>
20 #include <unistd.h>
21 #include <netdb.h>
22@@ -1064,7 +1065,9 @@
23     return (rc);                       /* Return final code */
24 }
25 
26-
27+#if defined(SOL2) || defined(__linux__)
28+int ether_to_eui64(eui64_t *p_eui64);
29+#endif
30 /*
31  * ipv6_check_options - check that any IP-related options are OK,
32  * and assign appropriate defaults.
33--- ppp-2.4.3/include/linux/if_pppox.h  2001-12-15 00:34:24.000000000 +0000
34+++ ppp-2.4.3/include/linux/if_pppox.h  2004-11-22 15:24:19.080661226 +0000
35@@ -18,7 +18,7 @@
36 
37 
38 #include <asm/types.h>
39-#include <asm/byteorder.h>
40+#include <endian.h>
41 
42 #ifdef  __KERNEL__
43 #include <linux/if_ether.h>
44@@ -97,10 +97,10 @@
45 #define PTT_GEN_ERR    __constant_htons(0x0203)
46 
47 struct pppoe_hdr {
48-#if defined(__LITTLE_ENDIAN_BITFIELD)
49+#if __BYTE_ORDER == __LITTLE_ENDIAN
50        __u8 ver : 4;
51        __u8 type : 4;
52-#elif defined(__BIG_ENDIAN_BITFIELD)
53+#elif __BYTE_ORDER == __BIG_ENDIAN
54        __u8 type : 4;
55        __u8 ver : 4;
56 #else
57--- ppp-2.4.3/pppdump/deflate.c 2004-02-02 03:36:46.000000000 +0000
58+++ ppp-2.4.3/pppdump/deflate.c 2004-11-22 15:26:09.473500830 +0000
59@@ -237,8 +237,8 @@
60 {
61     struct deflate_state *state = (struct deflate_state *) arg;
62     u_char *rptr, *wptr;
63-    int rlen, olen, ospace;
64-    int seq, i, flush, r, decode_proto;
65+    int rlen, olen;
66+    int seq, r;
67 
68     rptr = mi;
69     if (*rptr == 0)
70--- ppp-2.4.3/pppdump/bsd-comp.c        2004-02-02 03:36:46.000000000 +0000
71+++ ppp-2.4.3/pppdump/bsd-comp.c        2004-11-22 15:29:02.169002889 +0000
72@@ -383,7 +383,7 @@
73        || options[0] != CI_BSD_COMPRESS || options[1] != CILEN_BSD_COMPRESS
74        || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION
75        || BSD_NBITS(options[2]) != db->maxbits
76-       || decomp && db->lens == NULL)
77+       || (decomp && db->lens == NULL))
78        return 0;
79 
80     if (decomp) {
81@@ -556,11 +556,11 @@
82     u_int n_bits = db->n_bits;
83     u_int tgtbitno = 32-n_bits;        /* bitno when we have a code */
84     struct bsd_dict *dictp;
85-    int explen, i, seq, len;
86+    int explen, seq, len;
87     u_int incode, oldcode, finchar;
88     u_char *p, *rptr, *wptr;
89     int ilen;
90-    int dlen, space, codelen, extra;
91+    int dlen=0, codelen, extra;
92 
93     rptr = cmsg;
94     if (*rptr == 0)
95@@ -616,7 +616,7 @@
96        }
97 
98        if (incode > max_ent + 2 || incode > db->maxmaxcode
99-           || incode > max_ent && oldcode == CLEAR) {
100+           || (incode > max_ent && oldcode == CLEAR)) {
101            if (db->debug) {
102                printf("bsd_decomp%d: bad code 0x%x oldcode=0x%x ",
103                       db->unit, incode, oldcode);
104--- ppp-2.4.3/pppdump/pppdump.c 2004-02-02 03:36:46.000000000 +0000
105+++ ppp-2.4.3/pppdump/pppdump.c 2004-11-22 17:18:49.340165228 +0000
106@@ -191,7 +191,7 @@
107            show_time(f, c);
108            break;
109        default:
110-           printf("?%.2x\n");
111+           printf("?%.2x\n", c);
112        }
113     }
114 }
115@@ -421,7 +421,7 @@
116            show_time(f, c);
117            break;
118        default:
119-           printf("?%.2x\n");
120+           printf("?%.2x\n", c);
121        }
122     }
123 }
Note: See TracBrowser for help on using the repository browser.