View | Details | Raw Unified | Return to bug 23362 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/src/contrib/libpcap/gencode.c (-4 / +12 lines)
Lines 661-671 Link Here
661
		return gen_false();
661
		return gen_false();
662
662
663
	case DLT_PPP:
663
	case DLT_PPP:
664
		if (proto == ETHERTYPE_IP)
664
		if (proto == ETHERTYPE_IP) {
665
			proto = PPP_IP;			/* XXX was 0x21 */
665
			b0 = gen_cmp(off_linktype, BPF_H, PPP_IP);
666
			b1 = gen_cmp(off_linktype, BPF_H, proto);
667
			gen_or(b0, b1);
668
			return b1;
669
		}
666
#ifdef INET6
670
#ifdef INET6
667
		else if (proto == ETHERTYPE_IPV6)
671
		if (proto == ETHERTYPE_IPV6) {
668
			proto = PPP_IPV6;
672
			b0 = gen_cmp(off_linktype, BPF_H, PPP_IPV6);
673
			b1 = gen_cmp(off_linktype, BPF_H, proto);
674
			gen_or(b0, b1);
675
			return b1;
676
		}
669
#endif
677
#endif
670
		break;
678
		break;

Return to bug 23362