FreeBSD Bugzilla – Attachment 11968 Details for
Bug 23362
tcpdump wrong on sppp CISCO_HDLC encoded link
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 893 bytes, created by
fujiwara
on 2000-12-07 19:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
fujiwara
Created:
2000-12-07 19:50:01 UTC
Size:
893 bytes
patch
obsolete
>Index: /usr/src/contrib/libpcap/gencode.c >=================================================================== >RCS file: /FreeBSD-CVS/src/contrib/libpcap/gencode.c,v >retrieving revision 1.8 >diff -u -r1.8 gencode.c >--- /usr/src/contrib/libpcap/gencode.c 2000/03/04 23:57:39 1.8 >+++ /usr/src/contrib/libpcap/gencode.c 2000/12/07 19:25:00 >@@ -661,11 +661,19 @@ > return gen_false(); > > case DLT_PPP: >- if (proto == ETHERTYPE_IP) >- proto = PPP_IP; /* XXX was 0x21 */ >+ if (proto == ETHERTYPE_IP) { >+ b0 = gen_cmp(off_linktype, BPF_H, PPP_IP); >+ b1 = gen_cmp(off_linktype, BPF_H, proto); >+ gen_or(b0, b1); >+ return b1; >+ } > #ifdef INET6 >- else if (proto == ETHERTYPE_IPV6) >- proto = PPP_IPV6; >+ if (proto == ETHERTYPE_IPV6) { >+ b0 = gen_cmp(off_linktype, BPF_H, PPP_IPV6); >+ b1 = gen_cmp(off_linktype, BPF_H, proto); >+ gen_or(b0, b1); >+ return b1; >+ } > #endif > break;
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 23362
: 11968 |
11969