Date: Thu, 21 Jul 2011 15:04:42 +0800 (CST) From: Lung-Pin Chang <changlp@cs.nctu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Cc: sbz@FreeBSD.org Subject: ports/159078: [PATCH] security/knock: [SUMMARIZE CHANGES] Message-ID: <20110721070442.2A0F99B5E1@Archon.iamben.csie.net> Resent-Message-ID: <201107210710.p6L7A8hk083423@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159078 >Category: ports >Synopsis: [PATCH] security/knock: [SUMMARIZE CHANGES] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 21 07:10:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Lung-Pin Chang >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: System: FreeBSD Archon.iamben.csie.net 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 >Description: - Support for tun devices used for PPPoE. (patch from http://www.opennet.ru/openforum/vsluhforumID10/4031.html) Port maintainer (sbz@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- knock-0.5.20051124_2.patch begins here --- 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) { --- knock-0.5.20051124_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110721070442.2A0F99B5E1>