summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2006-02-02 19:58:37 +0000
committerps <ps@FreeBSD.org>2006-02-02 19:58:37 +0000
commit5025ffa6d7b9fd52c83ce82c2301f94b93127a49 (patch)
tree36b70587703e5ca6ebc8b744205d0a4ca7b61cb0 /sys/net/if.h
parentb0da6f80ec5fdfbdcd357918a01e1734039ac784 (diff)
downloadFreeBSD-src-5025ffa6d7b9fd52c83ce82c2301f94b93127a49.zip
FreeBSD-src-5025ffa6d7b9fd52c83ce82c2301f94b93127a49.tar.gz
Implement SIOCGIFCONF for 32bit binaries.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 8e483cc..4e97601 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -348,6 +348,15 @@ struct ifconf {
#define ifc_req ifc_ifcu.ifcu_req /* array of structures returned */
};
+#if defined (__amd64__) || defined (COMPAT_32BIT)
+struct ifconf32 {
+ int ifc_len; /* size of associated buffer */
+ union {
+ u_int ifcu_buf;
+ u_int ifcu_req;
+ } ifc_ifcu;
+};
+#endif
/*
* Structure for SIOC[AGD]LIFADDR
OpenPOWER on IntegriCloud