diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-04-10 08:51:00 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-04-10 08:51:00 +0000 |
commit | d22877dbabfd0a0409e7dc3605b2175e13617ccf (patch) | |
tree | ac7c543361875b00f49de36d3ddba8c1838a05a8 /sys/netinet/ip_icmp.c | |
parent | b416547b90aa39044f0d3c8201e81e1dafd0ab5c (diff) |
Remove various external variable declaration from sources files and
move them to the corresponding header with an appropriate comment if
necessary.
ok guenther@
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |