Add version option support to the nftables "osf" expression.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -21,13 +21,18 @@ struct nf_osf_finger { · 20 unmodified lines | ||
| 21 | 21 | struct nf_osf_user_finger finger; |
| 22 | 22 | }; |
| 23 | 23 | |
| 24 | +struct nf_osf_data { | |
| 25 | + const char *genre; | |
| 26 | + const char *version; | |
| 27 | +}; | |
| 28 | + | |
| 24 | 29 | bool nf_osf_match(const struct sk_buff *skb, u_int8_t family, |
| 25 | 30 | int hooknum, struct net_device *in, struct net_device *out, |
| 26 | 31 | const struct nf_osf_info *info, struct net *net, |
| 27 | 32 | const struct list_head *nf_osf_fingers); |
| 28 | 33 | |
| 29 | −const char *nf_osf_find(const struct sk_buff *skb, | |
| 30 | − const struct list_head *nf_osf_fingers, | |
| 31 | − const int ttl_check); | |
| 34 | +bool nf_osf_find(const struct sk_buff *skb, | |
| 35 | + const struct list_head *nf_osf_fingers, | |
| 36 | + const int ttl_check, struct nf_osf_data *data); | |
| 32 | 37 | |
| 33 | 38 | #endif /* _NFOSF_H */ |