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
2121 struct nf_osf_user_finger finger;
2222 };
2323
24+struct nf_osf_data {
25+ const char *genre;
26+ const char *version;
27+};
28+
2429 bool nf_osf_match(const struct sk_buff *skb, u_int8_t family,
2530 int hooknum, struct net_device *in, struct net_device *out,
2631 const struct nf_osf_info *info, struct net *net,
2732 const struct list_head *nf_osf_fingers);
2833
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);
3237
3338 #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