File: 30_vlan_eflag.dpatch

package info (click to toggle)
tcpdump 3.9.5-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,888 kB
  • ctags: 9,153
  • sloc: ansic: 55,259; sh: 3,239; makefile: 179; awk: 123
file content (20 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh /usr/share/dpatch/dpatch-run
## 30_vlan_eflag.dpatch by Romain Francoise <rfrancoise@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Reverse test for eflag in print-ether.c to match the intended
## DP: effect (hide vlan info if called with -e).

@DPATCH@
diff -urNad tcpdump-3.9.4~/print-ether.c tcpdump-3.9.4/print-ether.c
--- tcpdump-3.9.4~/print-ether.c	2005-07-10 16:47:57.000000000 +0200
+++ tcpdump-3.9.4/print-ether.c	2005-10-09 20:16:51.000000000 +0200
@@ -221,7 +221,7 @@
 		return (1);
 
 	case ETHERTYPE_8021Q:
-	        if (eflag)
+	        if (!eflag)
 		    printf("vlan %u, p %u%s, ",
 			   ntohs(*(u_int16_t *)p) & 0xfff,
 			   ntohs(*(u_int16_t *)p) >> 13,