diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_conntrack_extend.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_extend.h b/include/net/netfilter/nf_conntrack_extend.h index 32d15bd6efa3..0772d296dfdb 100644 --- a/include/net/netfilter/nf_conntrack_extend.h +++ b/include/net/netfilter/nf_conntrack_extend.h | |||
@@ -28,9 +28,14 @@ struct nf_ct_ext { | |||
28 | char data[0]; | 28 | char data[0]; |
29 | }; | 29 | }; |
30 | 30 | ||
31 | static inline int nf_ct_ext_exist(const struct nf_conn *ct, u8 id) | 31 | static inline bool __nf_ct_ext_exist(const struct nf_ct_ext *ext, u8 id) |
32 | { | 32 | { |
33 | return (ct->ext && ct->ext->offset[id]); | 33 | return !!ext->offset[id]; |
34 | } | ||
35 | |||
36 | static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id) | ||
37 | { | ||
38 | return (ct->ext && __nf_ct_ext_exist(ct->ext, id)); | ||
34 | } | 39 | } |
35 | 40 | ||
36 | static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) | 41 | static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id) |