1/* 2 * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 4 unchanged lines hidden (view full) --- 13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14 * the University nor the names of its contributors may be used to endorse 15 * or promote products derived from this software without specific prior 16 * written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * |
21 * @(#) $Header: /tcpdump/master/libpcap/gencode.h,v 1.53 2001/05/10 14:48:02 fenner Exp $ (LBL) 22 * 23 * $FreeBSD: head/contrib/libpcap/gencode.h 98533 2002-06-21 01:38:14Z fenner $ |
24 */ 25 26/* Address qualifiers. */ 27 28#define Q_HOST 1 29#define Q_NET 2 30#define Q_PORT 3 31#define Q_GATEWAY 4 32#define Q_PROTO 5 33#define Q_PROTOCHAIN 6 34 35/* Protocol qualifiers. */ 36 37#define Q_LINK 1 38#define Q_IP 2 39#define Q_ARP 3 40#define Q_RARP 4 |
41#define Q_SCTP 5 42#define Q_TCP 6 43#define Q_UDP 7 44#define Q_ICMP 8 45#define Q_IGMP 9 46#define Q_IGRP 10 |
47 48 |
49#define Q_ATALK 11 50#define Q_DECNET 12 51#define Q_LAT 13 52#define Q_SCA 14 53#define Q_MOPRC 15 54#define Q_MOPDL 16 |
55 56 |
57#define Q_IPV6 17 58#define Q_ICMPV6 18 59#define Q_AH 19 60#define Q_ESP 20 |
61 |
62#define Q_PIM 21 63#define Q_VRRP 22 |
64 |
65#define Q_AARP 23 |
66 |
67#define Q_ISO 24 68#define Q_ESIS 25 69#define Q_ISIS 26 70#define Q_CLNP 27 |
71 |
72#define Q_STP 28 73 74#define Q_IPX 29 75 76#define Q_NETBEUI 30 77 |
78/* Directional qualifiers. */ 79 80#define Q_SRC 1 81#define Q_DST 2 82#define Q_OR 3 83#define Q_AND 4 84 85#define Q_DEFAULT 0 --- 85 unchanged lines hidden (view full) --- 171struct arth *gen_arth(int, struct arth *, struct arth *); 172 173void gen_and(struct block *, struct block *); 174void gen_or(struct block *, struct block *); 175void gen_not(struct block *); 176 177struct block *gen_scode(const char *, struct qual); 178struct block *gen_ecode(const u_char *, struct qual); |
179struct block *gen_acode(const u_char *, struct qual); |
180struct block *gen_mcode(const char *, const char *, int, struct qual); 181#ifdef INET6 182struct block *gen_mcode6(const char *, const char *, int, struct qual); 183#endif 184struct block *gen_ncode(const char *, bpf_u_int32, struct qual); 185struct block *gen_proto_abbrev(int); 186struct block *gen_relation(int, struct arth *, struct arth *, int); 187struct block *gen_less(int); --- 29 unchanged lines hidden --- |