提交 b798232f 编写于 作者: R Rami Rosen 提交者: David S. Miller

[IPV4]: Remove three declarations of unimplemented methods and correct a typo in include/net/ip.h

These three declarations in include/net/ip.h are not implemented
anywhere:

ip_mc_dropsocket(), ip_mc_dropdevice() and ip_net_unreachable().

Also, correct a comment to be "Functions provided by ip_fragment.c"
(instead of by ip_fragment.o) in consistency with the other comments
in this header.
Signed-off-by: NRami Rosen <ramirose@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f1862b0a
...@@ -82,8 +82,6 @@ struct packet_type; ...@@ -82,8 +82,6 @@ struct packet_type;
struct rtable; struct rtable;
struct sockaddr; struct sockaddr;
extern void ip_mc_dropsocket(struct sock *);
extern void ip_mc_dropdevice(struct net_device *dev);
extern int igmp_mc_proc_init(void); extern int igmp_mc_proc_init(void);
/* /*
...@@ -321,7 +319,7 @@ static __inline__ void inet_reset_saddr(struct sock *sk) ...@@ -321,7 +319,7 @@ static __inline__ void inet_reset_saddr(struct sock *sk)
extern int ip_call_ra_chain(struct sk_buff *skb); extern int ip_call_ra_chain(struct sk_buff *skb);
/* /*
* Functions provided by ip_fragment.o * Functions provided by ip_fragment.c
*/ */
enum ip_defrag_users enum ip_defrag_users
...@@ -344,7 +342,6 @@ int ip_frag_nqueues(void); ...@@ -344,7 +342,6 @@ int ip_frag_nqueues(void);
*/ */
extern int ip_forward(struct sk_buff *skb); extern int ip_forward(struct sk_buff *skb);
extern int ip_net_unreachable(struct sk_buff *skb);
/* /*
* Functions provided by ip_options.c * Functions provided by ip_options.c
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册