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_input() static, there is no need to expo...
details: https://anonhg.NetBSD.org/src/rev/baba38ec9f94
branches: trunk
changeset: 329425:baba38ec9f94
user: rmind <rmind%NetBSD.org@localhost>
date: Fri May 23 19:27:48 2014 +0000
description:
Make ip_input() static, there is no need to expose it.
diffstat:
sys/netinet/in_var.h | 4 +---
sys/netinet/ip_input.c | 7 ++++---
2 files changed, 5 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r e4b1642780cc -r baba38ec9f94 sys/netinet/in_var.h
--- a/sys/netinet/in_var.h Fri May 23 19:11:22 2014 +0000
+++ b/sys/netinet/in_var.h Fri May 23 19:27:48 2014 +0000
@@ -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 @@
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;
diff -r e4b1642780cc -r baba38ec9f94 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c Fri May 23 19:11:22 2014 +0000
+++ b/sys/netinet/ip_input.c Fri May 23 19:27:48 2014 +0000
@@ -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_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 @@
* 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;
Home |
Main Index |
Thread Index |
Old Index