Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Make ip_forward() static, there is no need to ex...



details:   https://anonhg.NetBSD.org/src/rev/5ff5355784be
branches:  trunk
changeset: 796188:5ff5355784be
user:      rmind <rmind%NetBSD.org@localhost>
date:      Fri May 23 19:35:24 2014 +0000

description:
Make ip_forward() static, there is no need to expose it.

diffstat:

 sys/netinet/ip_input.c |  7 ++++---
 sys/netinet/ip_var.h   |  3 +--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (52 lines):

diff -r 3bfba6caa157 -r 5ff5355784be sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Fri May 23 19:31:23 2014 +0000
+++ b/sys/netinet/ip_input.c    Fri May 23 19:35:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.312 2014/05/23 19:27:48 rmind Exp $     */
+/*     $NetBSD: ip_input.c,v 1.313 2014/05/23 19:35:24 rmind Exp $     */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.312 2014/05/23 19:27:48 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.313 2014/05/23 19:35:24 rmind Exp $");
 
 #include "opt_inet.h"
 #include "opt_compat_netbsd.h"
@@ -272,6 +272,7 @@
 #endif
 
 static void            ip_input(struct mbuf *);
+static void            ip_forward(struct mbuf *, int);
 static bool            ip_dooptions(struct mbuf *);
 static struct in_ifaddr *ip_rtaddr(struct in_addr);
 static void            sysctl_net_inet_ip_setup(struct sysctllog **);
@@ -1167,7 +1168,7 @@
  * The srcrt parameter indicates whether the packet is being forwarded
  * via a source route.
  */
-void
+static void
 ip_forward(struct mbuf *m, int srcrt)
 {
        struct ip *ip = mtod(m, struct ip *);
diff -r 3bfba6caa157 -r 5ff5355784be sys/netinet/ip_var.h
--- a/sys/netinet/ip_var.h      Fri May 23 19:31:23 2014 +0000
+++ b/sys/netinet/ip_var.h      Fri May 23 19:35:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_var.h,v 1.102 2014/05/22 23:42:53 rmind Exp $       */
+/*     $NetBSD: ip_var.h,v 1.103 2014/05/23 19:35:24 rmind Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -201,7 +201,6 @@
 int     ip_ctloutput(int, struct socket *, struct sockopt *);
 void    ip_drain(void);
 void    ip_drainstub(void);
-void    ip_forward(struct mbuf *, int);
 void    ip_freemoptions(struct ip_moptions *);
 int     ip_optcopy(struct ip *, struct ip *);
 u_int   ip_optlen(struct inpcb *);



Home | Main Index | Thread Index | Old Index