diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-15 03:31:41 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:50 -0400 |
commit | 97676b6b5538b3e059d33b8338e7d5cc41c5f1f1 (patch) | |
tree | 76e41eb58bd86a96e204dacbb6746da387e67452 /include/linux/rtnetlink.h | |
parent | d387f6ad10764fc2174373b4a1cca443adee36e3 (diff) |
[RTNETLINK]: Add rtnetlink notification interface
Adds rtnl_notify() to send rtnetlink notification messages and
rtnl_set_sk_err() to report notification errors as socket
errors in order to indicate the need of a resync due to loss
of events.
nlmsg_report() is added to properly document the meaning of
NLM_F_ECHO.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rtnetlink.h')
-rw-r--r-- | include/linux/rtnetlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 0e4f478e2cb5..ecbe0349060c 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
@@ -585,6 +585,9 @@ struct rtnetlink_link | |||
585 | extern struct rtnetlink_link * rtnetlink_links[NPROTO]; | 585 | extern struct rtnetlink_link * rtnetlink_links[NPROTO]; |
586 | extern int rtnetlink_send(struct sk_buff *skb, u32 pid, u32 group, int echo); | 586 | extern int rtnetlink_send(struct sk_buff *skb, u32 pid, u32 group, int echo); |
587 | extern int rtnl_unicast(struct sk_buff *skb, u32 pid); | 587 | extern int rtnl_unicast(struct sk_buff *skb, u32 pid); |
588 | extern int rtnl_notify(struct sk_buff *skb, u32 pid, u32 group, | ||
589 | struct nlmsghdr *nlh, gfp_t flags); | ||
590 | extern void rtnl_set_sk_err(u32 group, int error); | ||
588 | extern int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics); | 591 | extern int rtnetlink_put_metrics(struct sk_buff *skb, u32 *metrics); |
589 | 592 | ||
590 | extern void __rta_fill(struct sk_buff *skb, int attrtype, int attrlen, const void *data); | 593 | extern void __rta_fill(struct sk_buff *skb, int attrtype, int attrlen, const void *data); |