diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-27 08:37:09 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-27 08:37:09 +0000 |
commit | 63648746bca8a5752ecfc73a64a621b188a1e719 (patch) | |
tree | 64562b7405bbec4d42a7cfbf2790a8f8d0e3696f /sys/netinet/in_var.h | |
parent | 0f6d1bcc55b9410e51f77839c4b9f6eccd8d8cf7 (diff) |
Replace INADDR_TO_IFP() by in_iawithaddr() and kill the macro.
ok mikeb@, ports@, henning@
Diffstat (limited to 'sys/netinet/in_var.h')
-rw-r--r-- | sys/netinet/in_var.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/netinet/in_var.h b/sys/netinet/in_var.h index e76cdba5f71..5f0b1da06ef 100644 --- a/sys/netinet/in_var.h +++ b/sys/netinet/in_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: in_var.h,v 1.28 2013/11/21 16:34:33 mikeb Exp $ */ +/* $OpenBSD: in_var.h,v 1.29 2013/11/27 08:37:08 mpi Exp $ */ /* $NetBSD: in_var.h,v 1.16 1996/02/13 23:42:15 christos Exp $ */ /* @@ -82,23 +82,6 @@ TAILQ_HEAD(in_ifaddrhead, in_ifaddr); extern struct in_ifaddrhead in_ifaddr; /* - * Macro for finding the interface (ifnet structure) corresponding to one - * of our IP addresses. - */ -#define INADDR_TO_IFP(addr, ifp, rtableid) \ - /* struct in_addr addr; */ \ - /* struct ifnet *ifp; */ \ -do { \ - struct in_ifaddr *ia; \ - \ - TAILQ_FOREACH(ia, &in_ifaddr, ia_list) \ - if (ia->ia_ifp->if_rdomain == rtable_l2(rtableid) && \ - ia->ia_addr.sin_addr.s_addr == (addr).s_addr) \ - break; \ - (ifp) = (ia == NULL) ? NULL : ia->ia_ifp; \ -} while (/* CONSTCOND */ 0) - -/* * Macro for finding the internet address structure (in_ifaddr) corresponding * to a given interface (ifnet structure). */ |