summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_icmp.h
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2005-07-31 03:30:56 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2005-07-31 03:30:56 +0000
commit572772cf7ccf3f3860c0121c89ee22e0001d0692 (patch)
tree610ab2d75d296c730135e6ff5a6fc7544b6f5bf0 /sys/netinet/ip_icmp.h
parent2c25fdbabd0951de2d2c84e82326825b902ced70 (diff)
Change the API for icmp_do_error so that it takes the mtu directly, rather
than a pointer to struct ifnet containing it. Saves a 448 byte stack allocation in ip_forward which previously faked up a struct ifnet just for this purpose. idea ok deraadt millert
Diffstat (limited to 'sys/netinet/ip_icmp.h')
-rw-r--r--sys/netinet/ip_icmp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_icmp.h b/sys/netinet/ip_icmp.h
index 33ac0b288f0..1a79d3a06bd 100644
--- a/sys/netinet/ip_icmp.h
+++ b/sys/netinet/ip_icmp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_icmp.h,v 1.20 2003/06/02 23:28:14 millert Exp $ */
+/* $OpenBSD: ip_icmp.h,v 1.21 2005/07/31 03:30:55 pascoe Exp $ */
/* $NetBSD: ip_icmp.h,v 1.10 1996/02/13 23:42:28 christos Exp $ */
/*
@@ -206,8 +206,8 @@ struct icmp {
#ifdef _KERNEL
struct mbuf *
- icmp_do_error(struct mbuf *, int, int, n_long, struct ifnet *);
-void icmp_error(struct mbuf *, int, int, n_long, struct ifnet *);
+ icmp_do_error(struct mbuf *, int, int, n_long, int);
+void icmp_error(struct mbuf *, int, int, n_long, int);
void icmp_input(struct mbuf *, ...);
void icmp_init(void);
void icmp_reflect(struct mbuf *);