summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_bpf.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_bpf.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_bpf.h')
-rw-r--r--sys/netgraph/ng_bpf.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netgraph/ng_bpf.h b/sys/netgraph/ng_bpf.h
index 2362dd1..478dd65 100644
--- a/sys/netgraph/ng_bpf.h
+++ b/sys/netgraph/ng_bpf.h
@@ -49,9 +49,9 @@
/* Program structure for one hook */
struct ng_bpf_hookprog {
- char thisHook[NG_HOOKLEN+1]; /* name of hook */
- char ifMatch[NG_HOOKLEN+1]; /* match dest hook */
- char ifNotMatch[NG_HOOKLEN+1]; /* !match dest hook */
+ char thisHook[NG_HOOKSIZ]; /* name of hook */
+ char ifMatch[NG_HOOKSIZ]; /* match dest hook */
+ char ifNotMatch[NG_HOOKSIZ]; /* !match dest hook */
int32_t bpf_prog_len; /* #isns in program */
struct bpf_insn bpf_prog[]; /* bpf program */
};
@@ -94,9 +94,9 @@ struct ng_bpf_hookstat {
enum {
NGM_BPF_SET_PROGRAM = 1, /* supply a struct ng_bpf_hookprog */
NGM_BPF_GET_PROGRAM, /* returns a struct ng_bpf_hookprog */
- NGM_BPF_GET_STATS, /* supply name as char[NG_HOOKLEN+1] */
- NGM_BPF_CLR_STATS, /* supply name as char[NG_HOOKLEN+1] */
- NGM_BPF_GETCLR_STATS, /* supply name as char[NG_HOOKLEN+1] */
+ NGM_BPF_GET_STATS, /* supply name as char[NG_HOOKSIZ] */
+ NGM_BPF_CLR_STATS, /* supply name as char[NG_HOOKSIZ] */
+ NGM_BPF_GETCLR_STATS, /* supply name as char[NG_HOOKSIZ] */
};
#endif /* _NETGRAPH_NG_BPF_H_ */
OpenPOWER on IntegriCloud