new ARP
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Wed, 21 Mar 1984 07:23:19 +0000 (23:23 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Wed, 21 Mar 1984 07:23:19 +0000 (23:23 -0800)
SCCS-vsn: sys/net/if.c 6.4
SCCS-vsn: sys/net/if.h 6.3

usr/src/sys/net/if.c
usr/src/sys/net/if.h

index 454a3b9..7661f11 100644 (file)
@@ -1,4 +1,4 @@
-/*     if.c    6.3     84/03/09        */
+/*     if.c    6.4     84/03/20        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
index aaaae26..4edb473 100644 (file)
@@ -1,4 +1,4 @@
-/*     if.h    6.2     83/08/28        */
+/*     if.h    6.3     84/03/20        */
 
 /*
  * Structures defining a network interface, providing a packet
 
 /*
  * Structures defining a network interface, providing a packet
@@ -153,6 +153,20 @@ struct     ifconf {
 #define        ifc_req ifc_ifcu.ifcu_req       /* array of structures returned */
 };
 
 #define        ifc_req ifc_ifcu.ifcu_req       /* array of structures returned */
 };
 
+/*
+ * ARP ioctl request
+ */
+struct arpreq {
+       struct sockaddr arp_pa;         /* protocol address */
+       struct sockaddr arp_ha;         /* hardware address */
+       int     arp_flags;              /* flags */
+};
+/*  arp_flags and at_flags field values */
+#define        ATF_INUSE       1       /* entry in use */
+#define ATF_COM                2       /* completed entry (enaddr valid) */
+#define        ATF_PERM        4       /* permanent entry */
+#define        ATF_PUBL        8       /* publish entry (respond for other host) */
+
 #ifdef KERNEL
 #ifdef INET
 struct ifqueue ipintrq;                /* ip packet input queue */
 #ifdef KERNEL
 #ifdef INET
 struct ifqueue ipintrq;                /* ip packet input queue */