aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannes <hannes>2006-03-16 08:46:13 +0000
committerhannes <hannes>2006-03-16 08:46:13 +0000
commit8815467ef5d38cbeb19e3af04703c807f9f9b7dc (patch)
treeac3d8a96c93e981b101c31dc3a2e5f0c3927028c
parentd52ccdfa66981fc0e31de639b719db52535335d6 (diff)
use gen_linktype() rather than a plain gen_cmp() for creating the link-layer specific match code for MPLS packets
-rw-r--r--gencode.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gencode.c b/gencode.c
index 2595c10b..41c29020 100644
--- a/gencode.c
+++ b/gencode.c
@@ -21,7 +21,7 @@
*/
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.265 2006-03-16 08:42:14 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.266 2006-03-16 08:46:13 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -6398,13 +6398,11 @@ gen_mpls(label_num)
case DLT_C_HDLC: /* fall through */
case DLT_EN10MB:
- b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
- (bpf_int32)ETHERTYPE_MPLS);
+ b0 = gen_linktype(ETHERTYPE_MPLS);
break;
case DLT_PPP:
- b0 = gen_cmp(OR_LINK, off_linktype, BPF_H,
- (bpf_int32)PPP_MPLS_UCAST);
+ b0 = gen_linktype(PPP_MPLS_UCAST);
break;
/* FIXME add other DLT_s ...