add IFF_LOCAL
[unix-history] / usr / src / sys / net / if.h
index 705ccce..995d723 100644 (file)
@@ -1,4 +1,4 @@
-/*     if.h    6.1     83/07/29        */
+/*     if.h    6.4     84/04/06        */
 
 /*
  * Structures defining a network interface, providing a packet
 
 /*
  * Structures defining a network interface, providing a packet
@@ -77,6 +77,8 @@ struct ifnet {
 #define        IFF_POINTOPOINT 0x10            /* interface is point-to-point link */
 #define        IFF_NOTRAILERS  0x20            /* avoid use of trailers */
 #define        IFF_RUNNING     0x40            /* resources allocated */
 #define        IFF_POINTOPOINT 0x10            /* interface is point-to-point link */
 #define        IFF_NOTRAILERS  0x20            /* avoid use of trailers */
 #define        IFF_RUNNING     0x40            /* resources allocated */
+#define        IFF_NOARP       0x80            /* no address resolution protocol */
+#define        IFF_LOCAL       0x100           /* local network, host part encoded */
 
 /*
  * Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
 
 /*
  * Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
@@ -152,6 +154,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 */