diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-03-23 13:21:06 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-03-23 13:21:06 +0100 |
commit | dd5b6ce6fd465eab90357711c8e8124dc3a31ff0 (patch) | |
tree | ebc40b018356e8cac36ba575e3f183c1a16b782b /include/linux/netfilter | |
parent | 176252746ebbc8db97e304345af1f2563c7dc139 (diff) | |
download | linux-dd5b6ce6fd465eab90357711c8e8124dc3a31ff0.tar.gz linux-dd5b6ce6fd465eab90357711c8e8124dc3a31ff0.tar.bz2 linux-dd5b6ce6fd465eab90357711c8e8124dc3a31ff0.zip |
nefilter: nfnetlink: add nfnetlink_set_err and use it in ctnetlink
This patch adds nfnetlink_set_err() to propagate the error to netlink
broadcast listener in case of memory allocation errors in the
message building.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r-- | include/linux/netfilter/nfnetlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netfilter/nfnetlink.h b/include/linux/netfilter/nfnetlink.h index 7d8e0455ccac..135e5cfe68a2 100644 --- a/include/linux/netfilter/nfnetlink.h +++ b/include/linux/netfilter/nfnetlink.h @@ -76,6 +76,7 @@ extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); extern int nfnetlink_has_listeners(unsigned int group); extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, int echo); +extern void nfnetlink_set_err(u32 pid, u32 group, int error); extern int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags); extern void nfnl_lock(void); |