1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Update to 6.6.7

PR:		ports/80665
Submitted by:	Vasil Dimov <vd@datamax.bg>
Approved by:	maintainer timeout (2 months)
This commit is contained in:
Pav Lucistnik 2005-07-13 18:02:26 +00:00
parent 4da8c354c5
commit fa80014180
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139104
7 changed files with 88 additions and 87 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= tcptrace
PORTVERSION= 6.6.0
PORTVERSION= 6.6.7
CATEGORIES= net ipv6
MASTER_SITES= http://www.tcptrace.org/download/
@ -26,11 +26,13 @@ DOCFILES= ARGS CHANGES COPYING COPYRIGHT FAQ README README.mailing_list \
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tcptrace ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/xpl2gpl ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/tcptrace.man ${PREFIX}/man/man1/tcptrace.1
${MKDIR} ${PREFIX}/share/doc/tcptrace
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for file in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/tcptrace
${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

View File

@ -1,2 +1,2 @@
MD5 (tcptrace-6.6.0.tar.gz) = 9d71ee3c75e142cd46cf0d412b7d6e89
SIZE (tcptrace-6.6.0.tar.gz) = 3762654
MD5 (tcptrace-6.6.7.tar.gz) = 68128dc1817b866475e2f048e158f5b9
SIZE (tcptrace-6.6.7.tar.gz) = 3773308

View File

@ -1,65 +0,0 @@
Index: tcpdump.c
===========================================================================
--- tcpdump.c 2004/11/17 22:48:46 #1
+++ tcpdump.c 2004/11/17 22:48:46
@@ -112,6 +112,9 @@
{
case -1: /* Not an IP packet */
return (-1);
+ case EH_SIZE + ETHER_VLAN_ENCAP_LEN:
+ memcpy(&eth_header.ether_type, buf+EH_SIZE+2, 2);
+ /* FALLTHROUGH */
case EH_SIZE: /* straight Ethernet encapsulation */
memcpy((char *)ip_buf,buf+offset,iplen);
callback_plast = ip_buf+iplen-offset-1;
Index: tcpdump.h
===========================================================================
--- tcpdump.h 2004/11/17 22:48:46 #1
+++ tcpdump.h 2004/11/17 22:48:46
@@ -178,7 +178,7 @@
}
/* This function determine the offset for the IP packet in an Ethernet frame */
-/* We handle two cases : straight Ethernet encapsulation or PPPoE encapsulation */
+/* We handle three cases : straight Ethernet, PPPoE, or .1q VLAN encapsulation */
/* Written by Yann Samama (ysamama@nortelnetworks.com) on july 18th, 2003 */
static int find_ip_eth(char* buf)
{
@@ -191,10 +191,8 @@
switch (eth_proto_type)
{
case ETHERTYPE_IPV6: /* it's pure IPv6 over ethernet */
- offset = 14;
- break;
case ETHERTYPE_IP: /* it's pure IPv4 over ethernet */
- offset = 14;
+ offset = sizeof(struct ether_header);
break;
case ETHERTYPE_PPPOE_SESSION: /* it's a PPPoE session */
memcpy(&ppp_proto_type, buf+20, 2);
@@ -202,6 +200,10 @@
if (ppp_proto_type == 0x0021) /* it's IP over PPPoE */
offset = PPPOE_SIZE;
break;
+ case ETHERTYPE_VLAN:
+ offset = sizeof(struct ether_header) +
+ ETHER_VLAN_ENCAP_LEN;
+ break;
default: /* well, this is not an IP packet */
offset = -1;
break;
Index: tcptrace.h
===========================================================================
--- tcptrace.h 2004/11/17 22:48:46 #1
+++ tcptrace.h 2004/11/17 22:48:46
@@ -1172,6 +1172,10 @@
#define ETHERTYPE_VLAN 0x8100
#endif /* 802.1Q Virtual LAN */
+#ifndef ETHER_VLAN_ENCAP_LEN
+#define ETHER_VLAN_ENCAP_LEN 4
+#endif /* 802.1Q tag header length */
+
/* support for PPPoE encapsulation added by Yann Samama (ysamama@nortelnetworks.com)*/
#ifndef ETHERTYPE_PPPOE_SESSION
#define ETHERTYPE_PPPOE_SESSION 0x8864

View File

@ -0,0 +1,17 @@
--- tcpdump.c.orig Thu May 5 18:41:30 2005
+++ tcpdump.c Thu May 5 18:41:53 2005
@@ -112,10 +112,13 @@
/* for some reason, the windows version of tcpdump is using */
/* this. It looks just like ethernet to me */
case PCAP_DLT_EN10MB:
- offset = find_ip_eth(buf); /* Here we check if we are dealing with Straight Ethernet encapsulation or PPPoE */
+ offset = find_ip_eth(buf); /* Here we check if we are dealing with Straight Ethernet encapsulation, PPPoE or .1q VLAN encapsulation */
memcpy(&eth_header, buf, EH_SIZE); /* save ether header */
switch (offset)
{
+ case EH_SIZE + ETHER_VLAN_ENCAP_LEN:
+ memcpy(&eth_header.ether_type, buf+EH_SIZE+2, 2);
+ /* FALLTHROUGH */
case EH_SIZE: /* straight Ethernet encapsulation */
memcpy((char *)ip_buf,buf+offset,iplen-offset);
callback_plast = ip_buf+iplen-offset-1;

View File

@ -0,0 +1,34 @@
--- tcpdump.h.orig Thu May 5 18:41:37 2005
+++ tcpdump.h Thu May 5 18:41:53 2005
@@ -179,7 +179,7 @@
}
/* This function determine the offset for the IP packet in an Ethernet frame */
-/* We handle two cases : straight Ethernet encapsulation or PPPoE encapsulation */
+/* We handle three cases : straight Ethernet, PPPoE, or .1q VLAN encapsulation */
/* Written by Yann Samama (ysamama@nortelnetworks.com) on july 18th, 2003 */
static int find_ip_eth(char* buf)
{
@@ -192,16 +192,19 @@
switch (eth_proto_type)
{
case ETHERTYPE_IPV6: /* it's pure IPv6 over ethernet */
- offset = 14;
- break;
+ /* FALLTHROUGH */
case ETHERTYPE_IP: /* it's pure IPv4 over ethernet */
- offset = 14;
+ offset = sizeof(struct ether_header);
break;
case ETHERTYPE_PPPOE_SESSION: /* it's a PPPoE session */
memcpy(&ppp_proto_type, buf+20, 2);
ppp_proto_type = ntohs(ppp_proto_type);
if (ppp_proto_type == 0x0021) /* it's IP over PPPoE */
offset = PPPOE_SIZE;
+ break;
+ case ETHERTYPE_VLAN:
+ offset = sizeof(struct ether_header) +
+ ETHER_VLAN_ENCAP_LEN;
break;
default: /* well, this is not an IP packet */
offset = -1;

View File

@ -0,0 +1,13 @@
--- tcptrace.h.orig Thu May 5 18:41:47 2005
+++ tcptrace.h Thu May 5 18:41:53 2005
@@ -1182,6 +1182,10 @@
#define ETHERTYPE_VLAN 0x8100
#endif /* 802.1Q Virtual LAN */
+#ifndef ETHER_VLAN_ENCAP_LEN
+#define ETHER_VLAN_ENCAP_LEN 4
+#endif /* 802.1Q tag header length */
+
/* support for PPPoE encapsulation added by Yann Samama (ysamama@nortelnetworks.com)*/
#ifndef ETHERTYPE_PPPOE_SESSION
#define ETHERTYPE_PPPOE_SESSION 0x8864

View File

@ -1,18 +1,18 @@
bin/tcptrace
bin/xpl2gpl
share/doc/tcptrace/ARGS
share/doc/tcptrace/CHANGES
share/doc/tcptrace/COPYING
share/doc/tcptrace/COPYRIGHT
share/doc/tcptrace/FAQ
share/doc/tcptrace/README
share/doc/tcptrace/README.mailing_list
share/doc/tcptrace/README.modules
share/doc/tcptrace/README.tline_graphs
share/doc/tcptrace/README.tput_graphs
share/doc/tcptrace/README.version
share/doc/tcptrace/README.xpl2gpl
share/doc/tcptrace/THANKS
share/doc/tcptrace/WWW
share/doc/tcptrace/dot_tcptracerc
@dirrm share/doc/tcptrace
%%PORTDOCS%%%%DOCSDIR%%/ARGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/README.mailing_list
%%PORTDOCS%%%%DOCSDIR%%/README.modules
%%PORTDOCS%%%%DOCSDIR%%/README.tline_graphs
%%PORTDOCS%%%%DOCSDIR%%/README.tput_graphs
%%PORTDOCS%%%%DOCSDIR%%/README.version
%%PORTDOCS%%%%DOCSDIR%%/README.xpl2gpl
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/WWW
%%PORTDOCS%%%%DOCSDIR%%/dot_tcptracerc
%%PORTDOCS%%@dirrm %%DOCSDIR%%