Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Give proper prototype to rip_output.
details: https://anonhg.NetBSD.org/src/rev/bdda7497d7c8
branches: trunk
changeset: 813197:bdda7497d7c8
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jan 20 22:02:54 2016 +0000
description:
Give proper prototype to rip_output.
diffstat:
sys/netinet/ip_var.h | 4 ++--
sys/netinet/raw_ip.c | 12 +++---------
2 files changed, 5 insertions(+), 11 deletions(-)
diffs (55 lines):
diff -r 41958052cb95 -r bdda7497d7c8 sys/netinet/ip_var.h
--- a/sys/netinet/ip_var.h Wed Jan 20 22:01:18 2016 +0000
+++ b/sys/netinet/ip_var.h Wed Jan 20 22:02:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_var.h,v 1.108 2015/06/04 09:20:00 ozaki-r Exp $ */
+/* $NetBSD: ip_var.h,v 1.109 2016/01/20 22:02:54 riastradh Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -230,7 +230,7 @@
int rip_ctloutput(int, struct socket *, struct sockopt *);
void rip_init(void);
void rip_input(struct mbuf *, ...);
-int rip_output(struct mbuf *, ...);
+int rip_output(struct mbuf *, struct inpcb *);
int rip_usrreq(struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct lwp *);
diff -r 41958052cb95 -r bdda7497d7c8 sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c Wed Jan 20 22:01:18 2016 +0000
+++ b/sys/netinet/raw_ip.c Wed Jan 20 22:02:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip.c,v 1.153 2015/08/24 22:21:26 pooka Exp $ */
+/* $NetBSD: raw_ip.c,v 1.154 2016/01/20 22:02:54 riastradh Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.153 2015/08/24 22:21:26 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.154 2016/01/20 22:02:54 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -311,17 +311,11 @@
* Tack on options user may have setup with control call.
*/
int
-rip_output(struct mbuf *m, ...)
+rip_output(struct mbuf *m, struct inpcb *inp)
{
- struct inpcb *inp;
struct ip *ip;
struct mbuf *opts;
int flags;
- va_list ap;
-
- va_start(ap, m);
- inp = va_arg(ap, struct inpcb *);
- va_end(ap);
flags =
(inp->inp_socket->so_options & SO_DONTROUTE) | IP_ALLOWBROADCAST
Home |
Main Index |
Thread Index |
Old Index