Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet For completeness sake, allow this to compile wit...



details:   https://anonhg.NetBSD.org/src/rev/59bed044b170
branches:  trunk
changeset: 473177:59bed044b170
user:      ad <ad%NetBSD.org@localhost>
date:      Sun May 23 20:21:51 1999 +0000

description:
For completeness sake, allow this to compile with no loopback interfaces
configured.

diffstat:

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

diffs (30 lines):

diff -r 8a33089e3b7f -r 59bed044b170 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Sun May 23 19:30:30 1999 +0000
+++ b/sys/netinet/if_arp.c      Sun May 23 20:21:51 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.58 1999/05/04 20:50:35 is Exp $   */
+/*     $NetBSD: if_arp.c,v 1.59 1999/05/23 20:21:51 ad Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -134,7 +134,9 @@
 static struct llinfo_arp *arplookup __P((struct in_addr *, int, int));
 static void in_arpinput __P((struct mbuf *));
 
+#if NLOOP > 0
 extern struct ifnet loif[NLOOP];
+#endif
 LIST_HEAD(, llinfo_arp) llinfo_arp;
 struct ifqueue arpintrq = {0, 0, 0, 50};
 int    arp_inuse, arp_allocated, arp_intimer;
@@ -328,8 +330,10 @@
                            LLADDR(SDL(gate)),
                            SDL(gate)->sdl_alen = 
                            rt->rt_ifp->if_data.ifi_addrlen);
+#if NLOOP > 0
                        if (useloopback)
                                rt->rt_ifp = &loif[0];
+#endif
                }
                break;
 



Home | Main Index | Thread Index | Old Index