1 --- src/packet.c.orig 2008-03-07 17:56:48.000000000 +0200
2 +++ src/packet.c 2008-03-07 18:05:41.000000000 +0200
4 result = LINK_ETHERNET;
5 else if (strncmp(ifname, "tun", 3) == 0)
6 result = LINK_ETHERNET;
7 - else if (strncmp(ifname, "vlan", 3) == 0)
9 + else if (strncmp(ifname, "vlan", 4) == 0)
10 + result = LINK_ETHERNET;
11 else if (strncmp(ifname, "brg", 3) == 0)
12 result = LINK_ETHERNET;
13 else if (strncmp(ifname, "tap", 3) == 0)
19 - *packet = tpacket + VLAN_ETH_HLEN;
20 - readlen -= VLAN_ETH_HLEN;
22 - * Move IP datagram into an aligned buffer.
24 - memmove(aligned_buf, *packet, min(SNAPSHOT_LEN, *readlen));
25 - *packet = aligned_buf;
27 *packet = (char *) NULL; /* return a NULL packet to signal */
28 break; /* an unrecognized link protocol */