npfvar_t
npfvar_t *
npfctl_get_singleport(const npfvar_t *vp)
npfctl_get_singlefam(const npfvar_t *vp)
npfctl_get_singletable(const npfvar_t *vp)
build_vars(npf_bpf_t *ctx, sa_family_t family, npfvar_t *vars, int opts)
npfvar_t *rvp = npfvar_lookup(data);
npfctl_build_vars(npf_bpf_t *ctx, sa_family_t family, npfvar_t *vars, int opts)
npfvar_t *popts = op->op_opts;
npfctl_build_proto(npf_bpf_t *ctx, const npfvar_t *vars)
npfctl_check_proto(const npfvar_t *vars, bool *non_tcpudp, bool *tcp_with_nofl)
build_l3_code(npf_bpf_t *bc, nl_rule_t *rl, sa_family_t family, const npfvar_t *popts,
npfvar_t *ap_from = fopts->filt.opt2.from_mac;
npfvar_t *ap_to = fopts->filt.opt2.to_mac;
npfctl_build_code(nl_rule_t *rl, sa_family_t family, const npfvar_t *popts,
npfctl_build_rpcall(nl_rproc_t *rp, const char *name, npfvar_t *args)
npfctl_build_rproc(const char *name, npfvar_t *procs)
const npfvar_t *popts, const filt_opts_t *fopts,
const npfvar_t *popts, const filt_opts_t *fopts, unsigned flags)
const addr_port_t *ap1, const addr_port_t *ap2, const npfvar_t *popts,
npfvar_t *
npfvar_t *
npfvar_t *
npfvar_t *
npfctl_parse_port_range_variable(const char *v, npfvar_t *vp)
npfvar_t *pvp = npfvar_create();
npfvar_t *
npfvar_t *vpa;
npfvar_t *
npfvar_t *
npfvar_t *vp = npfvar_create();
npfctl_parse_l3filt_opt(npfvar_t *src_addr, npfvar_t *src_port, bool tnot,
npfvar_t *dst_addr, npfvar_t *dst_port, bool fnot, rid_t uid, rid_t gid)
npfctl_parse_l2filt_opt(npfvar_t *src_addr, bool fnot, npfvar_t *dst_addr,
npfvar_t *
npfvar_t * var;
npfvar_t *pvar = npfvar_create_element(
npfvar_t *vp = npfvar_lookup($1);
npfvar_t *vp;
npfvar_t *vp = npfvar_lookup($1);
npfvar_t *vp = npfvar_create();
npfvar_t *
npfvar_t *
npfvar_add_element(npfvar_t *vp, unsigned type, const void *data, size_t len)
npfvar_t *
npfvar_add_elements(npfvar_t *vp, npfvar_t *vp2)
npfvar_destroy(npfvar_t *vp)
npfvar_expand_string(const npfvar_t *vp)
npfvar_expand_number(const npfvar_t *vp)
npfvar_t *vp = npfvar_lookup(var_id);
npfvar_get_count(const npfvar_t *vp)
npfvar_get_element(const npfvar_t *vp, size_t idx, size_t level)
npfvar_getfilt_data(const npfvar_t *vp, unsigned type, size_t idx)
npfvar_getfilt_type(const npfvar_t *vp, size_t idx)
npfvar_get_type(const npfvar_t *vp, size_t idx)
const npfvar_t *rvp = npfvar_lookup(el->e_data);
npfvar_get_data(const npfvar_t *vp, unsigned type, size_t idx)
const npfvar_t *rvp = npfvar_lookup(el->e_data);
static npfvar_t * var_list = NULL;
npfvar_t *
npfvar_t *vp = ecalloc(1, sizeof(*vp));
npfvar_t *
for (npfvar_t *it = var_list; it != NULL; it = it->v_next)
npfvar_add(npfvar_t *vp, const char *name)
npfvar_t *
npfvar_t * npfvar_create(void);
npfvar_t * npfvar_create_element(unsigned, const void *, size_t);
npfvar_t * npfvar_create_from_string(unsigned, const char *);
npfvar_t * npfvar_lookup(const char *);
void npfvar_add(npfvar_t *, const char *);
npfvar_t * npfvar_add_element(npfvar_t *, unsigned, const void *, size_t);
npfvar_t * npfvar_add_elements(npfvar_t *, npfvar_t *);
void npfvar_destroy(npfvar_t *);
char * npfvar_expand_string(const npfvar_t *);
size_t npfvar_get_count(const npfvar_t *);
uint32_t npfvar_expand_number(const npfvar_t *);
void * npfvar_getfilt_data(const npfvar_t *, unsigned, size_t);
int npfvar_getfilt_type(const npfvar_t *, size_t);
int npfvar_get_type(const npfvar_t *, size_t);
void * npfvar_get_data(const npfvar_t *, unsigned, size_t);
npfvar_t * op_opts;
npfvar_t * pc_opts;
npfvar_t * npfctl_ifnet_table(const char *);
npfvar_t * npfctl_parse_ifnet(const char *, const int);
npfvar_t * npfctl_parse_tcpflag(const char *);
npfvar_t * npfctl_parse_table_id(const char *);
npfvar_t * npfctl_parse_icmp(int, int, int);
npfvar_t * npfctl_parse_port_range(in_port_t, in_port_t);
npfvar_t * npfctl_parse_port_range_variable(const char *, npfvar_t *);
npfvar_t * npfctl_parse_fam_addr_mask(const char *, const char *,
filt_opts_t npfctl_parse_l3filt_opt(npfvar_t *, npfvar_t *, bool,
npfvar_t *, npfvar_t *, bool, rid_t, rid_t);
filt_opts_t npfctl_parse_l2filt_opt(npfvar_t *, bool, npfvar_t *,
npfvar_t * npfctl_parse_mac_addr(const char *);
void npfctl_build_rproc(const char *, npfvar_t *);
const npfvar_t *, const filt_opts_t *,
const npfvar_t *, const filt_opts_t *, unsigned);
npfvar_t * ifna_filter;
npfvar_t * ifna_addrs;
npfvar_t * ap_netaddr;
npfvar_t * ap_portrange;
npfvar_t * from_mac;
npfvar_t * to_mac;