Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177137048
D58840.1793863596.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
727 B
Referenced Files
None
Subscribers
None
D58840.1793863596.diff
View Options
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1123,7 +1123,7 @@
struct ifaddr *ifa;
int i;
struct domain *dp;
- void *if_afdata[AF_MAX];
+ void *if_afdata[nitems(ifp->if_afdata)];
#ifdef VIMAGE
bool shutdown;
diff --git a/sys/net/if_private.h b/sys/net/if_private.h
--- a/sys/net/if_private.h
+++ b/sys/net/if_private.h
@@ -103,7 +103,7 @@
void *if_hw_addr; /* hardware link-level address */
const u_int8_t *if_broadcastaddr; /* linklevel broadcast bytestring */
struct mtx if_afdata_lock;
- void *if_afdata[AF_MAX];
+ void *if_afdata[AF_MAX - 1]; /* off by one for historical reasons */
int if_afdata_initialized;
/* Additional features hung off the interface. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 5, 7:26 AM (9 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41458460
Default Alt Text
D58840.1793863596.diff (727 B)
Attached To
Mode
D58840: ifnet: Restore previous size of if_afdata
Attached
Detach File
Event Timeline