aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ...