diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-12 14:42:55 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-04-12 14:42:55 +0000 |
commit | 5644c29d8c22c901acbc4b8cedc4f69bd5060f7e (patch) | |
tree | 32c5e0a8250a1b0ac8cd39b41e8a48eae352a113 /sys | |
parent | 56a7514c237879904c363ceae7bb1f2756b6f1e3 (diff) |
Unbreak tree. Put 'laddr6' declaration inside #ifdef INET6/#endif.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index d2b8d2cd03b..6cf336829ba 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.203 2016/04/11 21:39:18 vgross Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.204 2016/04/12 14:42:54 krw Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -740,7 +740,9 @@ in_pcblookup_local(struct inpcbtable *table, void *laddrp, u_int lport_arg, int matchwild = 3, wildcard; u_int16_t lport = lport_arg; struct in_addr laddr = *(struct in_addr *)laddrp; +#ifdef INET6 struct in6_addr *laddr6 = (struct in6_addr *)laddrp; +#endif struct inpcbhead *head; rdomain = rtable_l2(rdomain); /* convert passed rtableid to rdomain */ |