FreeBSD Bugzilla – Attachment 117026 Details for
Bug 159078
[PATCH] security/knock: add support for tun devices used for PPPoE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
knock-0.5.20051124_2.patch
knock-0.5.20051124_2.patch (text/plain), 1.39 KB, created by
changlp
on 2011-07-21 08:10:08 UTC
(
hide
)
Description:
knock-0.5.20051124_2.patch
Filename:
MIME Type:
Creator:
changlp
Created:
2011-07-21 08:10:08 UTC
Size:
1.39 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/security/knock/Makefile /home/iamben/tmp/ports/security/knock/Makefile >--- /usr/ports/security/knock/Makefile 2011-03-18 18:04:52.000000000 +0800 >+++ /home/iamben/tmp/ports/security/knock/Makefile 2011-07-21 14:50:52.061292891 +0800 >@@ -7,7 +7,7 @@ > > PORTNAME= knock > PORTVERSION= 0.5.20051124 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= security > MASTER_SITES= ${MASTER_SITE_LOCAL} > MASTER_SITE_SUBDIR= shaun >diff -ruN --exclude=CVS /usr/ports/security/knock/files/patch-src-knockd.c /home/iamben/tmp/ports/security/knock/files/patch-src-knockd.c >--- /usr/ports/security/knock/files/patch-src-knockd.c 2008-11-15 00:36:55.000000000 +0800 >+++ /home/iamben/tmp/ports/security/knock/files/patch-src-knockd.c 2011-07-21 14:56:37.027915871 +0800 >@@ -9,3 +9,22 @@ > #else > cap = pcap_open_live(o_int, 65535, 0, 0, pcapErr); > #endif >+@@ -222,6 +222,9 @@ >+ case DLT_RAW: >+ dprint("raw interface detected, no encapsulation\n"); >+ break; >++ case DLT_NULL: >++ dprint("tun interface detected. pppoe on freebsd\n"); >++ break; >+ default: >+ fprintf(stderr, "error: unsupported link-layer type: %d\n", lltype); >+ cleanup(1); >+@@ -1209,6 +1212,8 @@ >+ ip = (struct ip*)((u_char*)packet + 16); >+ } else if(lltype == DLT_RAW) { >+ ip = (struct ip*)((u_char*)packet); >++ } else if(lltype == DLT_NULL) { >++ ip = (struct ip*)((u_char*)packet + 4); >+ } >+ >+ if(ip->ip_v != 4) {
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 159078
: 117026