netfilter: nft_osf: Add version option support
Add version option support to the nftables "osf" expression. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
6978cdb129
commit
22c7652cda
4 changed files with 46 additions and 15 deletions
|
|
@ -21,13 +21,18 @@ struct nf_osf_finger {
|
|||
struct nf_osf_user_finger finger;
|
||||
};
|
||||
|
||||
struct nf_osf_data {
|
||||
const char *genre;
|
||||
const char *version;
|
||||
};
|
||||
|
||||
bool nf_osf_match(const struct sk_buff *skb, u_int8_t family,
|
||||
int hooknum, struct net_device *in, struct net_device *out,
|
||||
const struct nf_osf_info *info, struct net *net,
|
||||
const struct list_head *nf_osf_fingers);
|
||||
|
||||
const char *nf_osf_find(const struct sk_buff *skb,
|
||||
const struct list_head *nf_osf_fingers,
|
||||
const int ttl_check);
|
||||
bool nf_osf_find(const struct sk_buff *skb,
|
||||
const struct list_head *nf_osf_fingers,
|
||||
const int ttl_check, struct nf_osf_data *data);
|
||||
|
||||
#endif /* _NFOSF_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue