diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-04-04 13:26:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-04-04 13:26:47 +0000 |
commit | dbea484e4ab2c4445a5e7bf0f6da1d4d0425bb89 (patch) | |
tree | d9802ef1de41552afdfc6ab069e68b1341a93a68 /sys/netinet/in_pcb.c | |
parent | 90f8714a176807ed6f4abeef738c9df2d3dccd8e (diff) |
in_iawithaddr -> ifawithaddr
the latter is now much faster and the former becomes a wrapper + compat hacks
around the latter in a bit.
ok dlg sthen and "ah hai" from various in various bars here
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 026b74b1502..31eb7c9b07e 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.113 2010/07/03 04:44:51 guenther Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.114 2011/04/04 13:26:46 henning Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -276,8 +276,7 @@ in_pcbbind(v, nam, p) } else if (sin->sin_addr.s_addr != INADDR_ANY) { sin->sin_port = 0; /* yech... */ if (!(so->so_options & SO_BINDANY) && - in_iawithaddr(sin->sin_addr, NULL, - inp->inp_rtableid) == 0) + !ifa_ifwithaddr(sintosa(sin), inp->inp_rtableid)) return (EADDRNOTAVAIL); } if (lport) { |