Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 162797 Details for
Bug 234583
net-dialup/ppp-2.4.4-r15 patch for Huawei E220 support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
pppd-wins.patch
pppd-wins.patch (text/plain), 2.64 KB, created by
Jaco Kroon
on 2008-08-12 23:33:47 UTC
(
hide
)
Description:
pppd-wins.patch
Filename:
MIME Type:
Creator:
Jaco Kroon
Created:
2008-08-12 23:33:47 UTC
Size:
2.64 KB
patch
obsolete
>diff -rau ppp-2.4.4.orig/pppd/ipcp.c ppp-2.4.4/pppd/ipcp.c >--- ppp-2.4.4.orig/pppd/ipcp.c 2005-08-26 01:59:34.000000000 +0200 >+++ ppp-2.4.4/pppd/ipcp.c 2008-08-13 00:11:17.000000000 +0200 >@@ -716,6 +716,7 @@ > #define LENCIVJ(neg, old) (neg ? (old? CILEN_COMPRESS : CILEN_VJ) : 0) > #define LENCIADDR(neg) (neg ? CILEN_ADDR : 0) > #define LENCIDNS(neg) (neg ? (CILEN_ADDR) : 0) >+#define LENCIWINS(neg) LENCIADDR(neg) > > /* > * First see if we want to change our options to the old >@@ -737,7 +738,9 @@ > LENCIVJ(go->neg_vj, go->old_vj) + > LENCIADDR(go->neg_addr) + > LENCIDNS(go->req_dns1) + >- LENCIDNS(go->req_dns2)) ; >+ LENCIDNS(go->req_dns2) + >+ LENCIWINS(go->winsaddr[0]) + >+ LENCIWINS(go->winsaddr[1])) ; > } > > >@@ -810,6 +813,19 @@ > } else \ > neg = 0; \ > } >+ >+#define ADDCIWINS(opt, addr) \ >+ if (addr) { \ >+ if (len >= CILEN_ADDR) { \ >+ u_int32_t l; \ >+ PUTCHAR(opt, ucp); \ >+ PUTCHAR(CILEN_ADDR, ucp); \ >+ l = ntohl(addr); \ >+ PUTLONG(l, ucp); \ >+ len -= CILEN_ADDR; \ >+ } else \ >+ addr = 0; \ >+ } > > ADDCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, go->ouraddr, > go->hisaddr); >@@ -823,6 +839,10 @@ > > ADDCIDNS(CI_MS_DNS2, go->req_dns2, go->dnsaddr[1]); > >+ ADDCIWINS(CI_MS_WINS1, go->winsaddr[0]); >+ >+ ADDCIWINS(CI_MS_WINS2, go->winsaddr[1]); >+ > *lenp -= len; > } > >@@ -1159,6 +1179,15 @@ > try.neg_addr = 1; > no.neg_addr = 1; > break; >+ case CI_MS_WINS1: >+ case CI_MS_WINS2: >+ if (cilen != CILEN_ADDR) >+ goto bad; >+ GETLONG(l, p); >+ ciaddr1 = htonl(l); >+ if (ciaddr1) >+ try.winsaddr[citype == CI_MS_WINS2] = ciaddr1; >+ break; > } > p = next; > } >@@ -1275,6 +1304,21 @@ > try.neg = 0; \ > } > >+#define REJCIWINS(opt, addr) \ >+ if (addr && \ >+ ((cilen = p[1]) == CILEN_ADDR) && \ >+ len >= cilen && \ >+ p[0] == opt) { \ >+ u_int32_t l; \ >+ len -= cilen; \ >+ INCPTR(2, p); \ >+ GETLONG(l, p); \ >+ cilong = htonl(l); \ >+ /* Check rejected value. */ \ >+ if (cilong != addr) \ >+ goto bad; \ >+ try.winsaddr[opt == CI_MS_WINS2] = 0; \ >+ } > > REJCIADDRS(CI_ADDRS, !go->neg_addr && go->old_addrs, > go->ouraddr, go->hisaddr); >@@ -1288,6 +1332,10 @@ > > REJCIDNS(CI_MS_DNS2, req_dns2, go->dnsaddr[1]); > >+ REJCIWINS(CI_MS_WINS1, go->winsaddr[0]); >+ >+ REJCIWINS(CI_MS_WINS2, go->winsaddr[1]); >+ > /* > * If there are any remaining CIs, then this packet is bad. > */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234583
: 162797 |
163126
|
163127
|
163129
|
163135
|
163136