libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gencode.h File Reference
#include "pcap/funcattrs.h"
Include dependency graph for gencode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stmt
 
struct  slist
 
struct  edge
 
struct  block
 
struct  arth
 
struct  qual
 
struct  icode
 

Macros

#define Q_HOST   1
 
#define Q_NET   2
 
#define Q_PORT   3
 
#define Q_GATEWAY   4
 
#define Q_PROTO   5
 
#define Q_PROTOCHAIN   6
 
#define Q_PORTRANGE   7
 
#define Q_LINK   1
 
#define Q_IP   2
 
#define Q_ARP   3
 
#define Q_RARP   4
 
#define Q_SCTP   5
 
#define Q_TCP   6
 
#define Q_UDP   7
 
#define Q_ICMP   8
 
#define Q_IGMP   9
 
#define Q_IGRP   10
 
#define Q_ATALK   11
 
#define Q_DECNET   12
 
#define Q_LAT   13
 
#define Q_SCA   14
 
#define Q_MOPRC   15
 
#define Q_MOPDL   16
 
#define Q_IPV6   17
 
#define Q_ICMPV6   18
 
#define Q_AH   19
 
#define Q_ESP   20
 
#define Q_PIM   21
 
#define Q_VRRP   22
 
#define Q_AARP   23
 
#define Q_ISO   24
 
#define Q_ESIS   25
 
#define Q_ISIS   26
 
#define Q_CLNP   27
 
#define Q_STP   28
 
#define Q_IPX   29
 
#define Q_NETBEUI   30
 
#define Q_ISIS_L1   31
 
#define Q_ISIS_L2   32
 
#define Q_ISIS_IIH   33
 
#define Q_ISIS_SNP   34
 
#define Q_ISIS_CSNP   35
 
#define Q_ISIS_PSNP   36
 
#define Q_ISIS_LSP   37
 
#define Q_RADIO   38
 
#define Q_CARP   39
 
#define Q_SRC   1
 
#define Q_DST   2
 
#define Q_OR   3
 
#define Q_AND   4
 
#define Q_ADDR1   5
 
#define Q_ADDR2   6
 
#define Q_ADDR3   7
 
#define Q_ADDR4   8
 
#define Q_RA   9
 
#define Q_TA   10
 
#define Q_DEFAULT   0
 
#define Q_UNDEF   255
 
#define A_METAC   22 /* Meta signalling Circuit */
 
#define A_BCC   23 /* Broadcast Circuit */
 
#define A_OAMF4SC   24 /* Segment OAM F4 Circuit */
 
#define A_OAMF4EC   25 /* End-to-End OAM F4 Circuit */
 
#define A_SC   26 /* Signalling Circuit*/
 
#define A_ILMIC   27 /* ILMI Circuit */
 
#define A_OAM   28 /* OAM cells : F4 only */
 
#define A_OAMF4   29 /* OAM F4 cells: Segment + End-to-end */
 
#define A_LANE   30 /* LANE traffic */
 
#define A_LLC   31 /* LLC-encapsulated traffic */
 
#define A_SETUP   41 /* Setup message */
 
#define A_CALLPROCEED   42 /* Call proceeding message */
 
#define A_CONNECT   43 /* Connect message */
 
#define A_CONNECTACK   44 /* Connect Ack message */
 
#define A_RELEASE   45 /* Release message */
 
#define A_RELEASE_DONE   46 /* Release message */
 
#define A_VPI   51
 
#define A_VCI   52
 
#define A_PROTOTYPE   53
 
#define A_MSGTYPE   54
 
#define A_CALLREFTYPE   55
 
#define A_CONNECTMSG
 
#define A_METACONNECT
 
#define M_FISU   22 /* FISU */
 
#define M_LSSU   23 /* LSSU */
 
#define M_MSU   24 /* MSU */
 
#define MH_FISU   25 /* FISU for HSL */
 
#define MH_LSSU   26 /* LSSU */
 
#define MH_MSU   27 /* MSU */
 
#define M_SIO   1
 
#define M_OPC   2
 
#define M_DPC   3
 
#define M_SLS   4
 
#define MH_SIO   5
 
#define MH_OPC   6
 
#define MH_DPC   7
 
#define MH_SLS   8
 
#define ATOMMASK(n)   (1 << (n))
 
#define ATOMELEM(d, n)   (d & ATOMMASK(n))
 
#define N_ATOMS   (BPF_MEMWORDS+2)
 
#define VAL_UNKNOWN   0
 
#define isMarked(icp, p)   ((p)->mark == (icp)->cur_mark)
 
#define unMarkAll(icp)   (icp)->cur_mark += 1
 
#define Mark(icp, p)   ((p)->mark = (icp)->cur_mark)
 
#define JT(b)   ((b)->et.succ)
 
#define JF(b)   ((b)->ef.succ)
 

Typedefs

typedef bpf_u_int32 atomset
 
typedef bpf_u_int32uset
 
typedef struct _compiler_state compiler_state_t
 

Functions

struct arthgen_loadi (compiler_state_t *, bpf_u_int32)
 
struct arthgen_load (compiler_state_t *, int, struct arth *, bpf_u_int32)
 
struct arthgen_loadlen (compiler_state_t *)
 
struct arthgen_neg (compiler_state_t *, struct arth *)
 
struct arthgen_arth (compiler_state_t *, int, struct arth *, struct arth *)
 
void gen_and (struct block *, struct block *)
 
void gen_or (struct block *, struct block *)
 
void gen_not (struct block *)
 
struct blockgen_scode (compiler_state_t *, const char *, struct qual)
 
struct blockgen_ecode (compiler_state_t *, const char *, struct qual)
 
struct blockgen_acode (compiler_state_t *, const char *, struct qual)
 
struct blockgen_mcode (compiler_state_t *, const char *, const char *, bpf_u_int32, struct qual)
 
struct blockgen_ncode (compiler_state_t *, const char *, bpf_u_int32, struct qual)
 
struct blockgen_proto_abbrev (compiler_state_t *, int)
 
struct blockgen_relation (compiler_state_t *, int, struct arth *, struct arth *, int)
 
struct blockgen_less (compiler_state_t *, int)
 
struct blockgen_greater (compiler_state_t *, int)
 
struct blockgen_byteop (compiler_state_t *, int, int, bpf_u_int32)
 
struct blockgen_broadcast (compiler_state_t *, int)
 
struct blockgen_multicast (compiler_state_t *, int)
 
struct blockgen_ifindex (compiler_state_t *, int)
 
struct blockgen_inbound (compiler_state_t *, int)
 
struct blockgen_llc (compiler_state_t *)
 
struct blockgen_llc_i (compiler_state_t *)
 
struct blockgen_llc_s (compiler_state_t *)
 
struct blockgen_llc_u (compiler_state_t *)
 
struct blockgen_llc_s_subtype (compiler_state_t *, bpf_u_int32)
 
struct blockgen_llc_u_subtype (compiler_state_t *, bpf_u_int32)
 
struct blockgen_vlan (compiler_state_t *, bpf_u_int32, int)
 
struct blockgen_mpls (compiler_state_t *, bpf_u_int32, int)
 
struct blockgen_pppoed (compiler_state_t *)
 
struct blockgen_pppoes (compiler_state_t *, bpf_u_int32, int)
 
struct blockgen_geneve (compiler_state_t *, bpf_u_int32, int)
 
struct blockgen_atmfield_code (compiler_state_t *, int, bpf_u_int32, int, int)
 
struct blockgen_atmtype_abbrev (compiler_state_t *, int)
 
struct blockgen_atmmulti_abbrev (compiler_state_t *, int)
 
struct blockgen_mtp2type_abbrev (compiler_state_t *, int)
 
struct blockgen_mtp3field_code (compiler_state_t *, int, bpf_u_int32, int, int)
 
struct blockgen_pf_ifname (compiler_state_t *, const char *)
 
struct blockgen_pf_rnr (compiler_state_t *, int)
 
struct blockgen_pf_srnr (compiler_state_t *, int)
 
struct blockgen_pf_ruleset (compiler_state_t *, char *)
 
struct blockgen_pf_reason (compiler_state_t *, int)
 
struct blockgen_pf_action (compiler_state_t *, int)
 
struct blockgen_p80211_type (compiler_state_t *, bpf_u_int32, bpf_u_int32)
 
struct blockgen_p80211_fcdir (compiler_state_t *, bpf_u_int32)
 
int bpf_optimize (struct icode *, char *)
 
void bpf_set_error (compiler_state_t *, const char *,...)
 
int finish_parse (compiler_state_t *, struct block *)
 
char * sdup (compiler_state_t *, const char *)
 
struct bpf_insnicode_to_fcode (struct icode *, struct block *, u_int *, char *)
 
void sappend (struct slist *, struct slist *)
 
int pcap_parse (void *, compiler_state_t *)
 

Macro Definition Documentation

◆ A_BCC

#define A_BCC   23 /* Broadcast Circuit */

Definition at line 143 of file gencode.h.

◆ A_CALLPROCEED

#define A_CALLPROCEED   42 /* Call proceeding message */

Definition at line 155 of file gencode.h.

◆ A_CALLREFTYPE

#define A_CALLREFTYPE   55

Definition at line 166 of file gencode.h.

◆ A_CONNECT

#define A_CONNECT   43 /* Connect message */

Definition at line 156 of file gencode.h.

◆ A_CONNECTACK

#define A_CONNECTACK   44 /* Connect Ack message */

Definition at line 157 of file gencode.h.

◆ A_CONNECTMSG

#define A_CONNECTMSG
Value:
70 /* returns Q.2931 signalling messages for
establishing and destroying switched
virtual connection */

Definition at line 168 of file gencode.h.

◆ A_ILMIC

#define A_ILMIC   27 /* ILMI Circuit */

Definition at line 147 of file gencode.h.

◆ A_LANE

#define A_LANE   30 /* LANE traffic */

Definition at line 150 of file gencode.h.

◆ A_LLC

#define A_LLC   31 /* LLC-encapsulated traffic */

Definition at line 151 of file gencode.h.

◆ A_METAC

#define A_METAC   22 /* Meta signalling Circuit */

Definition at line 142 of file gencode.h.

◆ A_METACONNECT

#define A_METACONNECT
Value:
71 /* returns Q.2931 signalling messages for
establishing and destroying predefined
virtual circuits, such as broadcast
circuit, oamf4 segment circuit, oamf4
end-to-end circuits, ILMI circuits or
connection signalling circuit. */

Definition at line 171 of file gencode.h.

◆ A_MSGTYPE

#define A_MSGTYPE   54

Definition at line 165 of file gencode.h.

◆ A_OAM

#define A_OAM   28 /* OAM cells : F4 only */

Definition at line 148 of file gencode.h.

◆ A_OAMF4

#define A_OAMF4   29 /* OAM F4 cells: Segment + End-to-end */

Definition at line 149 of file gencode.h.

◆ A_OAMF4EC

#define A_OAMF4EC   25 /* End-to-End OAM F4 Circuit */

Definition at line 145 of file gencode.h.

◆ A_OAMF4SC

#define A_OAMF4SC   24 /* Segment OAM F4 Circuit */

Definition at line 144 of file gencode.h.

◆ A_PROTOTYPE

#define A_PROTOTYPE   53

Definition at line 164 of file gencode.h.

◆ A_RELEASE

#define A_RELEASE   45 /* Release message */

Definition at line 158 of file gencode.h.

◆ A_RELEASE_DONE

#define A_RELEASE_DONE   46 /* Release message */

Definition at line 159 of file gencode.h.

◆ A_SC

#define A_SC   26 /* Signalling Circuit*/

Definition at line 146 of file gencode.h.

◆ A_SETUP

#define A_SETUP   41 /* Setup message */

Definition at line 154 of file gencode.h.

◆ A_VCI

#define A_VCI   52

Definition at line 163 of file gencode.h.

◆ A_VPI

#define A_VPI   51

Definition at line 162 of file gencode.h.

◆ ATOMELEM

#define ATOMELEM (   d,
 
)    (d & ATOMMASK(n))

Definition at line 224 of file gencode.h.

◆ ATOMMASK

#define ATOMMASK (   n)    (1 << (n))

Definition at line 223 of file gencode.h.

◆ isMarked

#define isMarked (   icp,
 
)    ((p)->mark == (icp)->cur_mark)

Definition at line 374 of file gencode.h.

◆ JF

#define JF (   b)    ((b)->ef.succ)

Definition at line 402 of file gencode.h.

◆ JT

#define JT (   b)    ((b)->et.succ)

Definition at line 401 of file gencode.h.

◆ M_DPC

#define M_DPC   3

Definition at line 191 of file gencode.h.

◆ M_FISU

#define M_FISU   22 /* FISU */

Definition at line 179 of file gencode.h.

◆ M_LSSU

#define M_LSSU   23 /* LSSU */

Definition at line 180 of file gencode.h.

◆ M_MSU

#define M_MSU   24 /* MSU */

Definition at line 181 of file gencode.h.

◆ M_OPC

#define M_OPC   2

Definition at line 190 of file gencode.h.

◆ M_SIO

#define M_SIO   1

Definition at line 189 of file gencode.h.

◆ M_SLS

#define M_SLS   4

Definition at line 192 of file gencode.h.

◆ Mark

#define Mark (   icp,
 
)    ((p)->mark = (icp)->cur_mark)

Definition at line 376 of file gencode.h.

◆ MH_DPC

#define MH_DPC   7

Definition at line 197 of file gencode.h.

◆ MH_FISU

#define MH_FISU   25 /* FISU for HSL */

Definition at line 184 of file gencode.h.

◆ MH_LSSU

#define MH_LSSU   26 /* LSSU */

Definition at line 185 of file gencode.h.

◆ MH_MSU

#define MH_MSU   27 /* MSU */

Definition at line 186 of file gencode.h.

◆ MH_OPC

#define MH_OPC   6

Definition at line 196 of file gencode.h.

◆ MH_SIO

#define MH_SIO   5

Definition at line 195 of file gencode.h.

◆ MH_SLS

#define MH_SLS   8

Definition at line 198 of file gencode.h.

◆ N_ATOMS

#define N_ATOMS   (BPF_MEMWORDS+2)

Definition at line 235 of file gencode.h.

◆ Q_AARP

#define Q_AARP   23

Definition at line 98 of file gencode.h.

◆ Q_ADDR1

#define Q_ADDR1   5

Definition at line 131 of file gencode.h.

◆ Q_ADDR2

#define Q_ADDR2   6

Definition at line 132 of file gencode.h.

◆ Q_ADDR3

#define Q_ADDR3   7

Definition at line 133 of file gencode.h.

◆ Q_ADDR4

#define Q_ADDR4   8

Definition at line 134 of file gencode.h.

◆ Q_AH

#define Q_AH   19

Definition at line 92 of file gencode.h.

◆ Q_AND

#define Q_AND   4

Definition at line 130 of file gencode.h.

◆ Q_ARP

#define Q_ARP   3

Definition at line 72 of file gencode.h.

◆ Q_ATALK

#define Q_ATALK   11

Definition at line 82 of file gencode.h.

◆ Q_CARP

#define Q_CARP   39

Definition at line 123 of file gencode.h.

◆ Q_CLNP

#define Q_CLNP   27

Definition at line 103 of file gencode.h.

◆ Q_DECNET

#define Q_DECNET   12

Definition at line 83 of file gencode.h.

◆ Q_DEFAULT

#define Q_DEFAULT   0

Definition at line 138 of file gencode.h.

◆ Q_DST

#define Q_DST   2

Definition at line 128 of file gencode.h.

◆ Q_ESIS

#define Q_ESIS   25

Definition at line 101 of file gencode.h.

◆ Q_ESP

#define Q_ESP   20

Definition at line 93 of file gencode.h.

◆ Q_GATEWAY

#define Q_GATEWAY   4

Definition at line 63 of file gencode.h.

◆ Q_HOST

#define Q_HOST   1

Definition at line 60 of file gencode.h.

◆ Q_ICMP

#define Q_ICMP   8

Definition at line 77 of file gencode.h.

◆ Q_ICMPV6

#define Q_ICMPV6   18

Definition at line 91 of file gencode.h.

◆ Q_IGMP

#define Q_IGMP   9

Definition at line 78 of file gencode.h.

◆ Q_IGRP

#define Q_IGRP   10

Definition at line 79 of file gencode.h.

◆ Q_IP

#define Q_IP   2

Definition at line 71 of file gencode.h.

◆ Q_IPV6

#define Q_IPV6   17

Definition at line 90 of file gencode.h.

◆ Q_IPX

#define Q_IPX   29

Definition at line 107 of file gencode.h.

◆ Q_ISIS

#define Q_ISIS   26

Definition at line 102 of file gencode.h.

◆ Q_ISIS_CSNP

#define Q_ISIS_CSNP   35

Definition at line 117 of file gencode.h.

◆ Q_ISIS_IIH

#define Q_ISIS_IIH   33

Definition at line 115 of file gencode.h.

◆ Q_ISIS_L1

#define Q_ISIS_L1   31

Definition at line 112 of file gencode.h.

◆ Q_ISIS_L2

#define Q_ISIS_L2   32

Definition at line 113 of file gencode.h.

◆ Q_ISIS_LSP

#define Q_ISIS_LSP   37

Definition at line 119 of file gencode.h.

◆ Q_ISIS_PSNP

#define Q_ISIS_PSNP   36

Definition at line 118 of file gencode.h.

◆ Q_ISIS_SNP

#define Q_ISIS_SNP   34

Definition at line 116 of file gencode.h.

◆ Q_ISO

#define Q_ISO   24

Definition at line 100 of file gencode.h.

◆ Q_LAT

#define Q_LAT   13

Definition at line 84 of file gencode.h.

◆ Q_LINK

#define Q_LINK   1

Definition at line 70 of file gencode.h.

◆ Q_MOPDL

#define Q_MOPDL   16

Definition at line 87 of file gencode.h.

◆ Q_MOPRC

#define Q_MOPRC   15

Definition at line 86 of file gencode.h.

◆ Q_NET

#define Q_NET   2

Definition at line 61 of file gencode.h.

◆ Q_NETBEUI

#define Q_NETBEUI   30

Definition at line 109 of file gencode.h.

◆ Q_OR

#define Q_OR   3

Definition at line 129 of file gencode.h.

◆ Q_PIM

#define Q_PIM   21

Definition at line 95 of file gencode.h.

◆ Q_PORT

#define Q_PORT   3

Definition at line 62 of file gencode.h.

◆ Q_PORTRANGE

#define Q_PORTRANGE   7

Definition at line 66 of file gencode.h.

◆ Q_PROTO

#define Q_PROTO   5

Definition at line 64 of file gencode.h.

◆ Q_PROTOCHAIN

#define Q_PROTOCHAIN   6

Definition at line 65 of file gencode.h.

◆ Q_RA

#define Q_RA   9

Definition at line 135 of file gencode.h.

◆ Q_RADIO

#define Q_RADIO   38

Definition at line 121 of file gencode.h.

◆ Q_RARP

#define Q_RARP   4

Definition at line 73 of file gencode.h.

◆ Q_SCA

#define Q_SCA   14

Definition at line 85 of file gencode.h.

◆ Q_SCTP

#define Q_SCTP   5

Definition at line 74 of file gencode.h.

◆ Q_SRC

#define Q_SRC   1

Definition at line 127 of file gencode.h.

◆ Q_STP

#define Q_STP   28

Definition at line 105 of file gencode.h.

◆ Q_TA

#define Q_TA   10

Definition at line 136 of file gencode.h.

◆ Q_TCP

#define Q_TCP   6

Definition at line 75 of file gencode.h.

◆ Q_UDP

#define Q_UDP   7

Definition at line 76 of file gencode.h.

◆ Q_UNDEF

#define Q_UNDEF   255

Definition at line 139 of file gencode.h.

◆ Q_VRRP

#define Q_VRRP   22

Definition at line 96 of file gencode.h.

◆ unMarkAll

#define unMarkAll (   icp)    (icp)->cur_mark += 1

Definition at line 375 of file gencode.h.

◆ VAL_UNKNOWN

#define VAL_UNKNOWN   0

Definition at line 283 of file gencode.h.

Typedef Documentation

◆ atomset

Definition at line 222 of file gencode.h.

◆ compiler_state_t

Definition at line 229 of file gencode.h.

◆ uset

typedef bpf_u_int32* uset

Definition at line 229 of file gencode.h.

Function Documentation

◆ bpf_optimize()

int bpf_optimize ( struct icode ic,
char *  errbuf 
)

◆ bpf_set_error()

void bpf_set_error ( compiler_state_t cstate,
const char *  fmt,
  ... 
)

◆ finish_parse()

◆ gen_acode()

◆ gen_and()

◆ gen_arth()

struct arth* gen_arth ( compiler_state_t cstate,
int  code,
struct arth a0_arg,
struct arth a1 
)

◆ gen_atmfield_code()

struct block* gen_atmfield_code ( compiler_state_t cstate,
int  atmfield,
bpf_u_int32  jvalue,
int  jtype,
int  reverse 
)

Definition at line 9621 of file gencode.c.

References gen_atmfield_code_internal(), and _compiler_state::top_ctx.

◆ gen_atmmulti_abbrev()

◆ gen_atmtype_abbrev()

◆ gen_broadcast()

◆ gen_byteop()

struct block* gen_byteop ( compiler_state_t cstate,
int  op,
int  idx,
bpf_u_int32  val 
)

◆ gen_ecode()

◆ gen_geneve()

◆ gen_greater()

struct block* gen_greater ( compiler_state_t cstate,
int  n 
)

Definition at line 7837 of file gencode.c.

References BPF_JGE, gen_len(), and _compiler_state::top_ctx.

◆ gen_ifindex()

◆ gen_inbound()

◆ gen_less()

struct block* gen_less ( compiler_state_t cstate,
int  n 
)

Definition at line 7853 of file gencode.c.

References BPF_JGT, gen_len(), gen_not(), and _compiler_state::top_ctx.

◆ gen_llc()

struct block* gen_llc ( compiler_state_t cstate)

Definition at line 3738 of file gencode.c.

References gen_llc_internal(), and _compiler_state::top_ctx.

◆ gen_llc_i()

◆ gen_llc_s()

struct block* gen_llc_s ( compiler_state_t cstate)

◆ gen_llc_s_subtype()

struct block* gen_llc_s_subtype ( compiler_state_t cstate,
bpf_u_int32  subtype 
)

◆ gen_llc_u()

struct block* gen_llc_u ( compiler_state_t cstate)

◆ gen_llc_u_subtype()

struct block* gen_llc_u_subtype ( compiler_state_t cstate,
bpf_u_int32  subtype 
)

◆ gen_load()

struct arth* gen_load ( compiler_state_t cstate,
int  proto,
struct arth inst,
bpf_u_int32  size 
)

Definition at line 7567 of file gencode.c.

References gen_load_internal(), and _compiler_state::top_ctx.

◆ gen_loadi()

struct arth* gen_loadi ( compiler_state_t cstate,
bpf_u_int32  val 
)

Definition at line 7685 of file gencode.c.

References gen_loadi_internal(), and _compiler_state::top_ctx.

◆ gen_loadlen()

struct arth* gen_loadlen ( compiler_state_t cstate)

◆ gen_mcode()

struct block* gen_mcode ( compiler_state_t cstate,
const char *  s1,
const char *  s2,
bpf_u_int32  masklen,
struct qual  q 
)

◆ gen_mpls()

◆ gen_mtp2type_abbrev()

◆ gen_mtp3field_code()

struct block* gen_mtp3field_code ( compiler_state_t cstate,
int  mtp3field,
bpf_u_int32  jvalue_arg,
int  jtype,
int  reverse 
)

◆ gen_multicast()

◆ gen_ncode()

◆ gen_neg()

struct arth* gen_neg ( compiler_state_t cstate,
struct arth a_arg 
)

◆ gen_not()

◆ gen_or()

◆ gen_p80211_fcdir()

◆ gen_p80211_type()

◆ gen_pf_action()

struct block* gen_pf_action ( compiler_state_t cstate,
int  action 
)

Definition at line 8622 of file gencode.c.

References bpf_error(), and _compiler_state::top_ctx.

◆ gen_pf_ifname()

struct block* gen_pf_ifname ( compiler_state_t cstate,
const char *  ifname 
)

Definition at line 8552 of file gencode.c.

References bpf_error(), and _compiler_state::top_ctx.

◆ gen_pf_reason()

struct block* gen_pf_reason ( compiler_state_t cstate,
int  reason 
)

Definition at line 8608 of file gencode.c.

References bpf_error(), and _compiler_state::top_ctx.

◆ gen_pf_rnr()

struct block* gen_pf_rnr ( compiler_state_t cstate,
int  rnr 
)

Definition at line 8580 of file gencode.c.

References bpf_error(), and _compiler_state::top_ctx.

◆ gen_pf_ruleset()

struct block* gen_pf_ruleset ( compiler_state_t cstate,
char *  ruleset 
)

Definition at line 8566 of file gencode.c.

References bpf_error(), and _compiler_state::top_ctx.

◆ gen_pf_srnr()

struct block* gen_pf_srnr ( compiler_state_t cstate,
int  srnr 
)

Definition at line 8594 of file gencode.c.

References bpf_error(), and _compiler_state::top_ctx.

◆ gen_pppoed()

struct block* gen_pppoed ( compiler_state_t cstate)

Definition at line 9156 of file gencode.c.

References ETHERTYPE_PPPOED, gen_linktype(), and _compiler_state::top_ctx.

◆ gen_pppoes()

◆ gen_proto_abbrev()

struct block* gen_proto_abbrev ( compiler_state_t cstate,
int  proto 
)

Definition at line 5545 of file gencode.c.

References gen_proto_abbrev_internal(), and _compiler_state::top_ctx.

◆ gen_relation()

struct block* gen_relation ( compiler_state_t cstate,
int  code,
struct arth a0,
struct arth a1,
int  reversed 
)

Definition at line 7625 of file gencode.c.

References gen_relation_internal(), and _compiler_state::top_ctx.

◆ gen_scode()

◆ gen_vlan()

◆ icode_to_fcode()

struct bpf_insn* icode_to_fcode ( struct icode ic,
struct block root,
u_int *  lenp,
char *  errbuf 
)

◆ pcap_parse()

int pcap_parse ( void *  ,
compiler_state_t  
)

Referenced by pcap_compile().

◆ sappend()

◆ sdup()

char* sdup ( compiler_state_t cstate,
const char *  s 
)

Definition at line 674 of file gencode.c.

References newchunk_nolongjmp(), and pcap_strlcpy().