Module Name: src
Committed By: rmind
Date: Fri May 23 19:27:48 UTC 2014
Modified Files:
src/sys/netinet: in_var.h ip_input.c
Log Message:
Make ip_input() static, there is no need to expose it.
To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/netinet/in_var.h
cvs rdiff -u -r1.311 -r1.312 src/sys/netinet/ip_input.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/in_var.h
diff -u src/sys/netinet/in_var.h:1.66 src/sys/netinet/in_var.h:1.67
--- src/sys/netinet/in_var.h:1.66 Thu May 22 22:01:12 2014
+++ src/sys/netinet/in_var.h Fri May 23 19:27:48 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: in_var.h,v 1.66 2014/05/22 22:01:12 rmind Exp $ */
+/* $NetBSD: in_var.h,v 1.67 2014/05/23 19:27:48 rmind Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -296,10 +296,8 @@ int in_control(struct socket *, u_long,
struct lwp *);
void in_purgeaddr(struct ifaddr *);
void in_purgeif(struct ifnet *);
-void ip_input(struct mbuf *);
int ipflow_fastforward(struct mbuf *);
-
struct ipid_state;
typedef struct ipid_state ipid_state_t;
Index: src/sys/netinet/ip_input.c
diff -u src/sys/netinet/ip_input.c:1.311 src/sys/netinet/ip_input.c:1.312
--- src/sys/netinet/ip_input.c:1.311 Thu May 22 22:01:12 2014
+++ src/sys/netinet/ip_input.c Fri May 23 19:27:48 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.311 2014/05/22 22:01:12 rmind Exp $ */
+/* $NetBSD: ip_input.c,v 1.312 2014/05/23 19:27:48 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.311 2014/05/22 22:01:12 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.312 2014/05/23 19:27:48 rmind Exp $");
#include "opt_inet.h"
#include "opt_compat_netbsd.h"
@@ -271,6 +271,7 @@ struct mowner ip_rx_mowner = MOWNER_INIT
struct mowner ip_tx_mowner = MOWNER_INIT("internet", "tx");
#endif
+static void ip_input(struct mbuf *);
static bool ip_dooptions(struct mbuf *);
static struct in_ifaddr *ip_rtaddr(struct in_addr);
static void sysctl_net_inet_ip_setup(struct sysctllog **);
@@ -373,7 +374,7 @@ ipintr(void)
* Ip input routine. Checksum and byte swap header. If fragmented
* try to reassemble. Process options. Pass to next level.
*/
-void
+static void
ip_input(struct mbuf *m)
{
struct ip *ip = NULL;