Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet inet: Fix build without ARP



details:   https://anonhg.NetBSD.org/src/rev/cd8aabfdf851
branches:  trunk
changeset: 938683:cd8aabfdf851
user:      roy <roy%NetBSD.org@localhost>
date:      Sun Sep 13 11:47:12 2020 +0000

description:
inet: Fix build without ARP

diffstat:

 sys/netinet/tcp_input.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 8e74e75a193e -r cd8aabfdf851 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Sun Sep 13 11:09:01 2020 +0000
+++ b/sys/netinet/tcp_input.c   Sun Sep 13 11:47:12 2020 +0000
@@ -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 @@
 #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 @@
                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 @@
                return;
 
        switch (tp->t_family) {
-#ifdef INET
+#if NARP > 0
        case AF_INET:
                arp_nud_hint(rt);
                break;



Home | Main Index | Thread Index | Old Index