summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-11-11 21:30:58 +0000
committerdelphij <delphij@FreeBSD.org>2009-11-11 21:30:58 +0000
commit13a19ef806aacb68fca8a06969fe760e790cf191 (patch)
treeeea1594231338258764b9d2c6a5b8c04a07d0269 /sys/net/if_var.h
parent7f8b0bd4a81476d4906f4ec7983d3328593bebde (diff)
downloadFreeBSD-src-13a19ef806aacb68fca8a06969fe760e790cf191.zip
FreeBSD-src-13a19ef806aacb68fca8a06969fe760e790cf191.tar.gz
Add interface description capability as inspired by OpenBSD.
MFC after: 3 months
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 523b9e8..82e7aab 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -198,6 +198,7 @@ struct ifnet {
void *if_pf_kif;
void *if_lagg; /* lagg glue */
u_char if_alloctype; /* if_type at time of allocation */
+ struct sbuf *if_description; /* interface description */
/*
* Spare fields are added so that we can modify sensitive data
@@ -205,7 +206,7 @@ struct ifnet {
* be used with care where binary compatibility is required.
*/
char if_cspare[3];
- void *if_pspare[8];
+ void *if_pspare[7];
int if_ispare[4];
};
OpenPOWER on IntegriCloud