1 |
pva 08/10/24 15:23:57 |
2 |
|
3 |
Added: iptraf-3.0.0-vlan.patch |
4 |
Log: |
5 |
Fixes ability to listen on vlan interfaces, bug #231745, thank Tomas Vasek for report and Ross Dougherty for actual tests. Removed old. |
6 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-openvz.git-777e816 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-analyzer/iptraf/files/iptraf-3.0.0-vlan.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/files/iptraf-3.0.0-vlan.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/iptraf/files/iptraf-3.0.0-vlan.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: iptraf-3.0.0-vlan.patch |
15 |
=================================================================== |
16 |
--- src/packet.c.orig 2008-03-07 17:56:48.000000000 +0200 |
17 |
+++ src/packet.c 2008-03-07 18:05:41.000000000 +0200 |
18 |
@@ -101,8 +101,8 @@ |
19 |
result = LINK_ETHERNET; |
20 |
else if (strncmp(ifname, "tun", 3) == 0) |
21 |
result = LINK_ETHERNET; |
22 |
- else if (strncmp(ifname, "vlan", 3) == 0) |
23 |
- result = LINK_VLAN; |
24 |
+ else if (strncmp(ifname, "vlan", 4) == 0) |
25 |
+ result = LINK_ETHERNET; |
26 |
else if (strncmp(ifname, "brg", 3) == 0) |
27 |
result = LINK_ETHERNET; |
28 |
else if (strncmp(ifname, "tap", 3) == 0) |
29 |
@@ -231,14 +231,6 @@ |
30 |
case LINK_IPIP: |
31 |
*packet = tpacket; |
32 |
break; |
33 |
- case LINK_VLAN: |
34 |
- *packet = tpacket + VLAN_ETH_HLEN; |
35 |
- readlen -= VLAN_ETH_HLEN; |
36 |
- /* |
37 |
- * Move IP datagram into an aligned buffer. |
38 |
- */ |
39 |
- memmove(aligned_buf, *packet, min(SNAPSHOT_LEN, *readlen)); |
40 |
- *packet = aligned_buf; |
41 |
default: |
42 |
*packet = (char *) NULL; /* return a NULL packet to signal */ |
43 |
break; /* an unrecognized link protocol */ |