summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2015-05-18 13:32:29 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2015-05-18 13:32:29 +0000
commit7adbbc5749cf91f7871775bbd84d919bb5f596c6 (patch)
tree623abe169f22fa57d6b100e2aa9974c560aaf939 /sys/net/if.h
parentc84f03222673c57b3ac88a57bf3ca81b0a1ebbd7 (diff)
Move the rdomain from struct ifnet into struct if_data. This way it
will be exported to userland with the existing sysctl, getifaddrs() and routing socket (if_msghdr.ifm_data) interfaces that expose if_data. All programs and daemons - Apps - that call the SIOCGIFRDOMAIN ioctl in a getifaddrs() loop or after receiving an interface message on the routing socket can now remove the pointless additional ioctl. In base, that could be: dhclient, isakmpd, dhcpd, dhcrelay, ntpd, ospfd, ripd, ifconfig. No ABI breakage because it uses a previously unused pad field in if_data. OK mpi@ deraadt@
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 20d69d6c4c8..aebcab02d72 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.162 2015/04/10 08:48:24 mpi Exp $ */
+/* $OpenBSD: if.h,v 1.163 2015/05/18 13:32:28 reyk Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -102,7 +102,7 @@ struct if_data {
u_char ifi_link_state; /* current link state */
u_int32_t ifi_mtu; /* maximum transmission unit */
u_int32_t ifi_metric; /* routing metric (external only) */
- u_int32_t ifi_pad;
+ u_int32_t ifi_rdomain; /* routing instance */
u_int64_t ifi_baudrate; /* linespeed */
/* volatile statistics */
u_int64_t ifi_ipackets; /* packets received on interface */