[Glibc-bsd-commits] r6018 - trunk/glibc-ports/kfreebsd/net
stevenc-guest at alioth.debian.org
stevenc-guest at alioth.debian.org
Wed Apr 20 19:31:34 UTC 2016
Author: stevenc-guest
Date: 2016-04-20 19:31:34 +0000 (Wed, 20 Apr 2016)
New Revision: 6018
Modified:
trunk/glibc-ports/kfreebsd/net/if.h
Log:
Update sys/net/if.h for 10.3:
* add struct ifi2creq
* remove struct ifconf32
* append struct if_data with ifi_oqdrops (ABI-compatible change)
Modified: trunk/glibc-ports/kfreebsd/net/if.h
===================================================================
--- trunk/glibc-ports/kfreebsd/net/if.h 2016-04-20 19:02:14 UTC (rev 6017)
+++ trunk/glibc-ports/kfreebsd/net/if.h 2016-04-20 19:31:34 UTC (rev 6018)
@@ -93,6 +93,9 @@
unsigned long ifi_hwassist; /* HW offload capabilities, see IFCAP */
time_t ifi_epoch; /* uptime at attach or stat reset */
struct timeval ifi_lastchange; /* time of last administrative change */
+#ifdef _IFI_OQDROPS
+ unsigned long ifi_oqdrops; /* dropped on output */
+#endif
};
/*-
@@ -370,16 +373,6 @@
#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 {
- unsigned int ifcu_buf;
- unsigned int ifcu_req;
- } ifc_ifcu;
-};
-#endif
-
/*
* interface groups
*/
@@ -423,6 +416,19 @@
struct sockaddr_storage dstaddr; /* out */
};
+/*
+ * Structure used to request i2c data
+ * from interface transceivers.
+ */
+struct ifi2creq {
+ uint8_t dev_addr; /* i2c address (0xA0, 0xA2) */
+ uint8_t offset; /* read offset */
+ uint8_t len; /* read length */
+ uint8_t spare0;
+ uint32_t spare1;
+ uint8_t data[8]; /* read buffer */
+};
+
struct if_nameindex {
unsigned int if_index; /* 1, 2, ... */
char *if_name; /* null terminated name: "le0", ... */
More information about the Glibc-bsd-commits
mailing list