summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-01-12 00:39:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-01-12 00:39:19 +0000
commit2e154ddfcb86123853949bfb735f2cf19d7104d2 (patch)
treeb80dc258f6bfa6ff5fcfe39fd4b535c01246cb15 /sys/net/if.h
parent378c1146d5a0d936464b5cd35629c211a290faae (diff)
Make the structures for ifa_msghdr and friends even more like
the route messages so that people and compilers will not get confused. ok claudio
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 86293e2f8f4..73c4fdf46c0 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.110 2009/09/17 13:27:24 claudio Exp $ */
+/* $OpenBSD: if.h,v 1.111 2010/01/12 00:39:18 deraadt Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -462,7 +462,8 @@ struct if_msghdr {
u_short ifm_hdrlen; /* sizeof(if_msghdr) to skip over the header */
u_short ifm_index; /* index for associated ifp */
u_short ifm_tableid; /* routing table id */
- u_short ifm_pad;
+ u_char ifm_pad1;
+ u_char ifm_pad2;
int ifm_addrs; /* like rtm_addrs */
int ifm_flags; /* value of if_flags */
int ifm_xflags;
@@ -480,7 +481,8 @@ struct ifa_msghdr {
u_short ifam_hdrlen; /* sizeof(ifa_msghdr) to skip over the header */
u_short ifam_index; /* index for associated ifp */
u_short ifam_tableid; /* routing table id */
- u_short ifam_pad;
+ u_char ifam_pad1;
+ u_char ifam_pad2;
int ifam_addrs; /* like rtm_addrs */
int ifam_flags; /* value of ifa_flags */
int ifam_metric; /* value of ifa_metric */