gencode.h (56891) | gencode.h (75110) |
---|---|
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 * | 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 * $FreeBSD: head/contrib/libpcap/gencode.h 56891 2000-01-30 00:43:38Z fenner $ 22 * @(#) $Header: /tcpdump/master/libpcap/gencode.h,v 1.37 1999/10/19 15:18:29 itojun Exp $ (LBL) | 21 * $FreeBSD: head/contrib/libpcap/gencode.h 75110 2001-04-03 04:32:48Z fenner $ 22 * @(#) $Header: /tcpdump/master/libpcap/gencode.h,v 1.47 2000/11/04 10:09:55 guy Exp $ (LBL) |
23 */ 24 | 23 */ 24 |
25/*XXX*/ 26#include "gnuc.h" 27 | |
28/* Address qualifiers. */ 29 30#define Q_HOST 1 31#define Q_NET 2 32#define Q_PORT 3 33#define Q_GATEWAY 4 34#define Q_PROTO 5 35#define Q_PROTOCHAIN 6 --- 13 unchanged lines hidden (view full) --- 49 50#define Q_ATALK 10 51#define Q_DECNET 11 52#define Q_LAT 12 53#define Q_SCA 13 54#define Q_MOPRC 14 55#define Q_MOPDL 15 56 | 25/* Address qualifiers. */ 26 27#define Q_HOST 1 28#define Q_NET 2 29#define Q_PORT 3 30#define Q_GATEWAY 4 31#define Q_PROTO 5 32#define Q_PROTOCHAIN 6 --- 13 unchanged lines hidden (view full) --- 46 47#define Q_ATALK 10 48#define Q_DECNET 11 49#define Q_LAT 12 50#define Q_SCA 13 51#define Q_MOPRC 14 52#define Q_MOPDL 15 53 |
54 |
|
57#define Q_IPV6 16 58#define Q_ICMPV6 17 59#define Q_AH 18 60#define Q_ESP 19 61 62#define Q_PIM 20 63 | 55#define Q_IPV6 16 56#define Q_ICMPV6 17 57#define Q_AH 18 58#define Q_ESP 19 59 60#define Q_PIM 20 61 |
64#define Q_ISO 21 65#define Q_ESIS 22 66#define Q_ISIS 23 | 62#define Q_AARP 21 |
67 | 63 |
64#define Q_ISO 22 65#define Q_ESIS 23 66#define Q_ISIS 24 67#define Q_CLNP 25 68 |
|
68/* Directional qualifiers. */ 69 70#define Q_SRC 1 71#define Q_DST 2 72#define Q_OR 3 73#define Q_AND 4 74 75#define Q_DEFAULT 0 --- 99 unchanged lines hidden (view full) --- 175struct block *gen_relation(int, struct arth *, struct arth *, int); 176struct block *gen_less(int); 177struct block *gen_greater(int); 178struct block *gen_byteop(int, int, int); 179struct block *gen_broadcast(int); 180struct block *gen_multicast(int); 181struct block *gen_inbound(int); 182 | 69/* Directional qualifiers. */ 70 71#define Q_SRC 1 72#define Q_DST 2 73#define Q_OR 3 74#define Q_AND 4 75 76#define Q_DEFAULT 0 --- 99 unchanged lines hidden (view full) --- 176struct block *gen_relation(int, struct arth *, struct arth *, int); 177struct block *gen_less(int); 178struct block *gen_greater(int); 179struct block *gen_byteop(int, int, int); 180struct block *gen_broadcast(int); 181struct block *gen_multicast(int); 182struct block *gen_inbound(int); 183 |
184struct block *gen_vlan(int); 185 |
|
183void bpf_optimize(struct block **); | 186void bpf_optimize(struct block **); |
184#if __STDC__ 185__dead void bpf_error(const char *, ...) 186 __attribute__((volatile, format (printf, 1, 2))); | 187void bpf_error(const char *, ...) 188#if HAVE___ATTRIBUTE__ 189 __attribute__((noreturn, format (printf, 1, 2))) |
187#endif | 190#endif |
191; |
|
188 189void finish_parse(struct block *); 190char *sdup(const char *); 191 192struct bpf_insn *icode_to_fcode(struct block *, int *); 193int pcap_parse(void); 194void lex_init(char *); | 192 193void finish_parse(struct block *); 194char *sdup(const char *); 195 196struct bpf_insn *icode_to_fcode(struct block *, int *); 197int pcap_parse(void); 198void lex_init(char *); |
199void lex_cleanup(void); |
|
195void sappend(struct slist *, struct slist *); 196 197/* XXX */ 198#define JT(b) ((b)->et.succ) 199#define JF(b) ((b)->ef.succ) 200 201extern int no_optimize; | 200void sappend(struct slist *, struct slist *); 201 202/* XXX */ 203#define JT(b) ((b)->et.succ) 204#define JF(b) ((b)->ef.succ) 205 206extern int no_optimize; |