Module Name:    src
Committed By:   roy
Date:           Sun Sep 13 11:47:12 UTC 2020

Modified Files:
        src/sys/netinet: tcp_input.c

Log Message:
inet: Fix build without ARP


To generate a diff of this commit:
cvs rdiff -u -r1.422 -r1.423 src/sys/netinet/tcp_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/tcp_input.c
diff -u src/sys/netinet/tcp_input.c:1.422 src/sys/netinet/tcp_input.c:1.423
--- src/sys/netinet/tcp_input.c:1.422	Fri Sep 11 15:16:00 2020
+++ src/sys/netinet/tcp_input.c	Sun Sep 13 11:47:12 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_input.c,v 1.422 2020/09/11 15:16:00 roy Exp $	*/
+/*	$NetBSD: tcp_input.c,v 1.423 2020/09/13 11:47:12 roy Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.422 2020/09/11 15:16:00 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.423 2020/09/13 11:47:12 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -186,7 +186,7 @@ __KERNEL_RCSID(0, "$NetBSD: tcp_input.c,
 #include <netinet/ip_var.h>
 #include <netinet/in_offload.h>
 
-#ifdef INET
+#if NARP > 0
 #include <netinet/if_inarp.h>
 #endif
 #ifdef INET6
@@ -266,7 +266,7 @@ nd_hint(struct tcpcb *tp)
 		return;
 
 	switch (tp->t_family) {
-#ifdef INET
+#if NARP > 0
 	case AF_INET:
 		if (tp->t_inpcb != NULL)
 			ro = &tp->t_inpcb->inp_route;
@@ -288,7 +288,7 @@ nd_hint(struct tcpcb *tp)
 		return;
 
 	switch (tp->t_family) {
-#ifdef INET
+#if NARP > 0
 	case AF_INET:
 		arp_nud_hint(rt);
 		break;

Reply via email to