diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2013-12-17 02:41:08 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2013-12-17 02:41:08 +0000 |
commit | 1cc212fc91a693d55635199144a14f3419adc203 (patch) | |
tree | f10cb69afb21dd0206bbd2312b8bf9fa36fe2852 /sys/netinet/ip_var.h | |
parent | 6217f505985c7b96ebe87bab6dea9aeb92c9c39c (diff) |
Change ip_output()'s non-optional arguments to be standard arguments
instead of variable arguments.
Allows stricter type checking by the compiler at call sites and also
saves a bit of code size on some platforms (e.g., ~200 bytes on
amd64).
ok mikeb
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index b667012f96c..42f683e897e 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_var.h,v 1.49 2013/11/17 10:07:32 bluhm Exp $ */ +/* $OpenBSD: ip_var.h,v 1.50 2013/12/17 02:41:07 matthew Exp $ */ /* $NetBSD: ip_var.h,v 1.16 1996/02/13 23:43:20 christos Exp $ */ /* @@ -172,6 +172,7 @@ extern int la_hold_total; extern struct rttimer_queue *ip_mtudisc_timeout_q; extern struct pool ipqent_pool; +struct route; struct inpcb; int ip_ctloutput(int, struct socket *, int, int, struct mbuf **); @@ -186,7 +187,8 @@ int ip_getmoptions(int, struct ip_moptions *, struct mbuf **); void ip_init(void); int ip_mforward(struct mbuf *, struct ifnet *); int ip_optcopy(struct ip *, struct ip *); -int ip_output(struct mbuf *, ...); +int ip_output(struct mbuf *, struct mbuf *, struct route *, int, + struct ip_moptions *, struct inpcb *, ...); int ip_pcbopts(struct mbuf **, struct mbuf *); struct mbuf * ip_reass(struct ipqent *, struct ipq *); |