This patch fixes a bug that allows to lose events when reliable event delivery mode is used, ie. if NETLINK_BROADCAST_SEND_ERROR and NETLINK_RECV_NO_ENOBUFS socket options are set.
Showing the changes to include/linux/netfilter (1 of 3 files). Show all
Unified · Split
| @@ -76,7 +76,7 @@ extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); · 75 unmodified lines | ||
| 76 | 76 | extern int nfnetlink_has_listeners(struct net *net, unsigned int group); |
| 77 | 77 | extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned group, |
| 78 | 78 | int echo, gfp_t flags); |
| 79 | −extern void nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); | |
| 79 | +extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); | |
| 80 | 80 | extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags); |
| 81 | 81 | |
| 82 | 82 | extern void nfnl_lock(void); |