From d22877dbabfd0a0409e7dc3605b2175e13617ccf Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 10 Apr 2013 08:51:00 +0000 Subject: Remove various external variable declaration from sources files and move them to the corresponding header with an appropriate comment if necessary. ok guenther@ --- sys/netinet/ip_icmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/netinet/ip_icmp.c') diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 3368c87ccd3..b0b976f04b1 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.96 2012/09/18 12:35:51 blambert Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.97 2013/04/10 08:50:59 mpi Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -125,6 +125,9 @@ void icmp_mtudisc_timeout(struct rtentry *, struct rttimer *); int icmp_ratelimit(const struct in_addr *, const int, const int); void icmp_redirect_timeout(struct rtentry *, struct rttimer *); +/* from ip_input.c */ +extern u_char ip_protox[]; + extern struct protosw inetsw[]; void @@ -312,8 +315,6 @@ icmp_input(struct mbuf *m, ...) struct in_ifaddr *ia; void *(*ctlfunc)(int, struct sockaddr *, u_int, void *); int code; - extern u_char ip_protox[]; - extern int ipforwarding; int hlen; va_list ap; struct rtentry *rt; @@ -1007,7 +1008,6 @@ icmp_mtudisc_timeout(struct rtentry *rt, struct rttimer *r) if ((rt->rt_flags & (RTF_DYNAMIC | RTF_HOST)) == (RTF_DYNAMIC | RTF_HOST)) { void *(*ctlfunc)(int, struct sockaddr *, u_int, void *); - extern u_char ip_protox[]; struct sockaddr_in sa; struct rt_addrinfo info; -- cgit v1.2.3