History

netfilter: nft_osf: Add version option support

Add version option support to the nftables "osf" expression.

Fernando Fernandez Mancera committed 7 years ago

Commit 22c76521 parent 6978cdb4 files · +46 −15Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/netfilter/nfnetlink_osf.h+8−3
@@ -21,13 +21,18 @@ struct nf_osf_finger { · 20 unmodified lines
21 struct nf_osf_user_finger finger;21 struct nf_osf_user_finger finger;
22};22};
23 23
24struct nf_osf_data {
25 const char *genre;
26 const char *version;
27};
28
24bool nf_osf_match(const struct sk_buff *skb, u_int8_t family,29bool nf_osf_match(const struct sk_buff *skb, u_int8_t family,
25 int hooknum, struct net_device *in, struct net_device *out,30 int hooknum, struct net_device *in, struct net_device *out,
26 const struct nf_osf_info *info, struct net *net,31 const struct nf_osf_info *info, struct net *net,
27 const struct list_head *nf_osf_fingers);32 const struct list_head *nf_osf_fingers);
28 33
29const char *nf_osf_find(const struct sk_buff *skb,34bool nf_osf_find(const struct sk_buff *skb,
30 const struct list_head *nf_osf_fingers,35 const struct list_head *nf_osf_fingers,
31 const int ttl_check);36 const int ttl_check, struct nf_osf_data *data);
32 37
33#endif /* _NFOSF_H */38#endif /* _NFOSF_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t