diff options
author | hannes <hannes> | 2006-03-16 08:46:13 +0000 |
---|---|---|
committer | hannes <hannes> | 2006-03-16 08:46:13 +0000 |
commit | 8815467ef5d38cbeb19e3af04703c807f9f9b7dc (patch) | |
tree | ac3d8a96c93e981b101c31dc3a2e5f0c3927028c | |
parent | d52ccdfa66981fc0e31de639b719db52535335d6 (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.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 ... |