diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-15 03:37:29 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:55:02 -0400 |
commit | 56fc85ac961e2c20dcb5ef07e2628b3f93de2e49 (patch) | |
tree | 337f2a13b49fcfc140885a1cc6c3f9e0024277fb | |
parent | 0ec6d3f467faeec5dd3b617959eb90e9d520113d (diff) |
[RTNETLINK]: Unexport rtnl socket
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/rtnetlink.h | 2 | ||||
-rw-r--r-- | net/core/rtnetlink.c | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index ecbe0349060c..9c92dc8b9a08 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
@@ -574,8 +574,6 @@ extern int rtattr_parse(struct rtattr *tb[], int maxattr, struct rtattr *rta, in | |||
574 | #define rtattr_parse_nested(tb, max, rta) \ | 574 | #define rtattr_parse_nested(tb, max, rta) \ |
575 | rtattr_parse((tb), (max), RTA_DATA((rta)), RTA_PAYLOAD((rta))) | 575 | rtattr_parse((tb), (max), RTA_DATA((rta)), RTA_PAYLOAD((rta))) |
576 | 576 | ||
577 | extern struct sock *rtnl; | ||
578 | |||
579 | struct rtnetlink_link | 577 | struct rtnetlink_link |
580 | { | 578 | { |
581 | int (*doit)(struct sk_buff *, struct nlmsghdr*, void *attr); | 579 | int (*doit)(struct sk_buff *, struct nlmsghdr*, void *attr); |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index f5300b5dd0fd..dfc58269240a 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -58,6 +58,7 @@ | |||
58 | #endif /* CONFIG_NET_WIRELESS_RTNETLINK */ | 58 | #endif /* CONFIG_NET_WIRELESS_RTNETLINK */ |
59 | 59 | ||
60 | static DEFINE_MUTEX(rtnl_mutex); | 60 | static DEFINE_MUTEX(rtnl_mutex); |
61 | static struct sock *rtnl; | ||
61 | 62 | ||
62 | void rtnl_lock(void) | 63 | void rtnl_lock(void) |
63 | { | 64 | { |
@@ -95,8 +96,6 @@ int rtattr_parse(struct rtattr *tb[], int maxattr, struct rtattr *rta, int len) | |||
95 | return 0; | 96 | return 0; |
96 | } | 97 | } |
97 | 98 | ||
98 | struct sock *rtnl; | ||
99 | |||
100 | struct rtnetlink_link * rtnetlink_links[NPROTO]; | 99 | struct rtnetlink_link * rtnetlink_links[NPROTO]; |
101 | 100 | ||
102 | static const int rtm_min[RTM_NR_FAMILIES] = | 101 | static const int rtm_min[RTM_NR_FAMILIES] = |
@@ -842,7 +841,6 @@ EXPORT_SYMBOL(rtattr_strlcpy); | |||
842 | EXPORT_SYMBOL(rtattr_parse); | 841 | EXPORT_SYMBOL(rtattr_parse); |
843 | EXPORT_SYMBOL(rtnetlink_links); | 842 | EXPORT_SYMBOL(rtnetlink_links); |
844 | EXPORT_SYMBOL(rtnetlink_put_metrics); | 843 | EXPORT_SYMBOL(rtnetlink_put_metrics); |
845 | EXPORT_SYMBOL(rtnl); | ||
846 | EXPORT_SYMBOL(rtnl_lock); | 844 | EXPORT_SYMBOL(rtnl_lock); |
847 | EXPORT_SYMBOL(rtnl_trylock); | 845 | EXPORT_SYMBOL(rtnl_trylock); |
848 | EXPORT_SYMBOL(rtnl_unlock); | 846 | EXPORT_SYMBOL(rtnl_unlock); |