summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2006-12-06 00:39:56 +0000
committerdyoung <dyoung@NetBSD.org>2006-12-06 00:39:56 +0000
commitd7a8741d849f3e321d7dbd7aac45bd85cc08c806 (patch)
treea6ac11481a1c1f71568f3a376da374ec162cd8e7 /sys/netinet/ip_input.c
parent0394fe1e42d872320040dc4ce22fcd172231b5e0 (diff)
KNF.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 828854fa2df..a0899f1ee57 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.237 2006/12/06 00:38:16 dyoung Exp $ */
+/* $NetBSD: ip_input.c,v 1.238 2006/12/06 00:39:56 dyoung Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.237 2006/12/06 00:38:16 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.238 2006/12/06 00:39:56 dyoung Exp $");
#include "opt_inet.h"
#include "opt_gateway.h"
@@ -1935,7 +1935,7 @@ ip_forward(struct mbuf *m, int srcrt)
}
}
- error = ip_output(m, (struct mbuf *)0, &ipforward_rt,
+ error = ip_output(m, NULL, &ipforward_rt,
(IP_FORWARDING | (ip_directedbcast ? IP_ALLOWBROADCAST : 0)),
(struct ip_moptions *)NULL, (struct socket *)NULL);
@@ -1978,7 +1978,7 @@ ip_forward(struct mbuf *m, int srcrt)
type = ICMP_UNREACH;
code = ICMP_UNREACH_NEEDFRAG;
#if !defined(IPSEC) && !defined(FAST_IPSEC)
- if (ipforward_rt.ro_rt)
+ if (ipforward_rt.ro_rt != NULL)
destmtu = ipforward_rt.ro_rt->rt_ifp->if_mtu;
#else
/*
@@ -1987,7 +1987,7 @@ ip_forward(struct mbuf *m, int srcrt)
* tunnel MTU = if MTU - sizeof(IP) - ESP/AH hdrsiz
* XXX quickhack!!!
*/
- if (ipforward_rt.ro_rt) {
+ if (ipforward_rt.ro_rt != NULL) {
struct secpolicy *sp;
int ipsecerror;
size_t ipsechdr;