MFV r316124: Fix build when WITHOUT_INET6.
Reported by: Randy Westlund <rwestlun gmail com> MFC after: 3 days
This commit is contained in:
parent
4243fee67e
commit
d3e56841f6
@ -525,7 +525,8 @@ static struct block *gen_host6(compiler_state_t *, struct in6_addr *,
|
|||||||
struct in6_addr *, int, int, int);
|
struct in6_addr *, int, int, int);
|
||||||
#endif
|
#endif
|
||||||
#ifndef INET6
|
#ifndef INET6
|
||||||
static struct block *gen_gateway(const u_char *, bpf_u_int32 **, int, int);
|
static struct block *gen_gateway(compiler_state_t *, const u_char *,
|
||||||
|
bpf_u_int32 **, int, int);
|
||||||
#endif
|
#endif
|
||||||
static struct block *gen_ipfrag(compiler_state_t *);
|
static struct block *gen_ipfrag(compiler_state_t *);
|
||||||
static struct block *gen_portatom(compiler_state_t *, int, bpf_int32);
|
static struct block *gen_portatom(compiler_state_t *, int, bpf_int32);
|
||||||
@ -692,7 +693,9 @@ pcap_compile(pcap_t *p, struct bpf_program *program,
|
|||||||
}
|
}
|
||||||
initchunks(&cstate);
|
initchunks(&cstate);
|
||||||
cstate.no_optimize = 0;
|
cstate.no_optimize = 0;
|
||||||
|
#ifdef INET6
|
||||||
cstate.ai = NULL;
|
cstate.ai = NULL;
|
||||||
|
#endif
|
||||||
cstate.ic.root = NULL;
|
cstate.ic.root = NULL;
|
||||||
cstate.ic.cur_mark = 0;
|
cstate.ic.cur_mark = 0;
|
||||||
cstate.bpf_pcap = p;
|
cstate.bpf_pcap = p;
|
||||||
@ -4904,11 +4907,8 @@ gen_host6(compiler_state_t *cstate, struct in6_addr *addr,
|
|||||||
|
|
||||||
#ifndef INET6
|
#ifndef INET6
|
||||||
static struct block *
|
static struct block *
|
||||||
gen_gateway(eaddr, alist, proto, dir)
|
gen_gateway(compiler_state_t *cstate, const u_char *eaddr, bpf_u_int32 **alist,
|
||||||
const u_char *eaddr;
|
int proto, int dir)
|
||||||
bpf_u_int32 **alist;
|
|
||||||
int proto;
|
|
||||||
int dir;
|
|
||||||
{
|
{
|
||||||
struct block *b0, *b1, *tmp;
|
struct block *b0, *b1, *tmp;
|
||||||
|
|
||||||
@ -6472,7 +6472,7 @@ gen_scode(compiler_state_t *cstate, const char *name, struct qual q)
|
|||||||
alist = pcap_nametoaddr(name);
|
alist = pcap_nametoaddr(name);
|
||||||
if (alist == NULL || *alist == NULL)
|
if (alist == NULL || *alist == NULL)
|
||||||
bpf_error(cstate, "unknown host '%s'", name);
|
bpf_error(cstate, "unknown host '%s'", name);
|
||||||
b = gen_gateway(eaddr, alist, proto, dir);
|
b = gen_gateway(cstate, eaddr, alist, proto, dir);
|
||||||
free(eaddr);
|
free(eaddr);
|
||||||
return b;
|
return b;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user