diff options
author | ru <ru@FreeBSD.org> | 2005-02-03 13:03:31 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-02-03 13:03:31 +0000 |
commit | 3ba37139baafed93cdec495eb7ee9c9b95435054 (patch) | |
tree | 02d8646d5b14da93e31b64b144de6abf0da46842 /sys/netgraph/ng_sppp.h | |
parent | da345be611a15d07672aad7b1ef099682743d154 (diff) | |
download | FreeBSD-src-3ba37139baafed93cdec495eb7ee9c9b95435054.zip FreeBSD-src-3ba37139baafed93cdec495eb7ee9c9b95435054.tar.gz |
Parse "getifname" using the standard parse string type.
Fixed an off-by-one error when dealing with interface name
(if_xname is NUL-terminated).
Don't waste time making a copy of if_xname in constructor.
Diffstat (limited to 'sys/netgraph/ng_sppp.h')
-rw-r--r-- | sys/netgraph/ng_sppp.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/netgraph/ng_sppp.h b/sys/netgraph/ng_sppp.h index e835351..be1631e 100644 --- a/sys/netgraph/ng_sppp.h +++ b/sys/netgraph/ng_sppp.h @@ -27,7 +27,6 @@ /* Interface base name */ #define NG_SPPP_IFACE_NAME "sppp" -#define NG_SPPP_IFACE_NAME_MAX 15 /* My hook names */ #define NG_SPPP_HOOK_DOWNSTREAM "downstream" @@ -37,8 +36,4 @@ enum { NGM_SPPP_GET_IFNAME = 1, /* returns struct ng_sppp_ifname */ }; -struct ng_sppp_ifname { - char ngif_name[NG_SPPP_IFACE_NAME_MAX + 1]; -}; - #endif /* _NETGRAPH_SPPP_H_ */ |