summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-01-26 14:05:31 +0000
committerharti <harti@FreeBSD.org>2004-01-26 14:05:31 +0000
commit14cb10664f95adf9dd36c845745d3d5c87d3d636 (patch)
treea18015e7df92db337721d9972123a9203ac17d71 /sys/netgraph/ng_pppoe.h
parent98f2740a9c4a3cda7a5f4e77919cfe1284eed47c (diff)
downloadFreeBSD-src-14cb10664f95adf9dd36c845745d3d5c87d3d636.zip
FreeBSD-src-14cb10664f95adf9dd36c845745d3d5c87d3d636.tar.gz
Get rid of the deprecated *LEN constants in favour of the new
*SIZ constants that include the trailing \0 byte.
Diffstat (limited to 'sys/netgraph/ng_pppoe.h')
-rw-r--r--sys/netgraph/ng_pppoe.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h
index 413308b..7eb4594 100644
--- a/sys/netgraph/ng_pppoe.h
+++ b/sys/netgraph/ng_pppoe.h
@@ -115,7 +115,7 @@ struct ngpppoestat {
* and begin negotiation.
*/
struct ngpppoe_init_data {
- char hook[NG_HOOKLEN + 1]; /* hook to monitor on */
+ char hook[NG_HOOKSIZ]; /* hook to monitor on */
u_int16_t data_len; /* Length of the service name */
char data[0]; /* init data goes here */
};
@@ -133,7 +133,7 @@ struct ngpppoe_init_data {
* to whoever requested the connection. (close may use this too).
*/
struct ngpppoe_sts {
- char hook[NG_HOOKLEN + 1]; /* hook associated with event session */
+ char hook[NG_HOOKSIZ]; /* hook associated with event session */
};
/* Keep this in sync with the above structure definition */
OpenPOWER on IntegriCloud