diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h index dacf622..d691561 100644 --- a/sys/netgraph/ng_message.h +++ b/sys/netgraph/ng_message.h @@ -54,6 +54,16 @@ #define NG_NODESIZ 32 /* max node name len (including null) */ #define NG_PATHSIZ 512 /* max path len (including null) */ #define NG_CMDSTRSIZ 32 /* max command string (including null) */ + +#ifndef BURN_BRIDGES +/* don't use these - they will go away */ +#define NG_TYPELEN (NG_TYPESIZ - 1) +#define NG_HOOKLEN (NG_HOOKSIZ - 1) +#define NG_NODELEN (NG_NODESIZ - 1) +#define NG_PATHLEN (NG_PATHSIZ - 1) +#define NG_CMDSTRLEN (NG_CMDSTRSIZ - 1) +#endif + #define NG_TEXTRESPONSE 1024 /* allow this length for a text response */ /* A netgraph message */