summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-12-13 22:31:49 +0000
committerwollman <wollman@FreeBSD.org>1994-12-13 22:31:49 +0000
commit0aecbf065e65ef3dab5ed654f22df43c81011ff4 (patch)
tree8e41de5435ea8387c75fe2144d1076bb73b3b11e /sys/net/if.h
parent50e1db60c0a0910f56c464560a692d603a747f64 (diff)
downloadFreeBSD-src-0aecbf065e65ef3dab5ed654f22df43c81011ff4.zip
FreeBSD-src-0aecbf065e65ef3dab5ed654f22df43c81011ff4.tar.gz
Add support for two separate cloning flags, one set by the lower layers,
and one set by the protocol family. Also add another parameter to rtalloc1() to allow for any interface flags to be ignored; currently this is only useful for RTF_PRCLONING. Get rid of rt_prflags and re-unite with rt_flags. Add T/TCP ``route metrics''. NB: YOU MUST RECOMPILE `route' AND OTHER RELATED PROGRAMS AS A RESULT OF THIS CHANGE. This also adds a new interface parameter, `ifi_physical', which will eventually replace IFF_ALTPHYS as the mechanism for specifying the particular physical connection desired on a multiple-connection card. NB: YOU MUST RECOMPILE `ifconfig' AND OTHER RELATED PROGRAMS AS A RESULT OF THIS CHANGE.
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 5873dff..323181e 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.h 8.1 (Berkeley) 6/10/93
- * $Id: if.h,v 1.9 1994/11/15 14:41:34 bde Exp $
+ * $Id: if.h,v 1.10 1994/11/16 02:16:18 phk Exp $
*/
#ifndef _NET_IF_H_
@@ -101,6 +101,7 @@ struct ifnet {
struct if_data {
/* generic interface information */
u_char ifi_type; /* ethernet, tokenring, etc */
+ u_char ifi_physical; /* e.g., AUI, Thinnet, 10base-T, etc */
u_char ifi_addrlen; /* media address length */
u_char ifi_hdrlen; /* media header length */
u_long ifi_mtu; /* maximum transmission unit */
@@ -146,6 +147,7 @@ struct ifnet {
};
#define if_mtu if_data.ifi_mtu
#define if_type if_data.ifi_type
+#define if_physical if_data.ifi_physical
#define if_addrlen if_data.ifi_addrlen
#define if_hdrlen if_data.ifi_hdrlen
#define if_metric if_data.ifi_metric
@@ -186,6 +188,16 @@ struct ifnet {
(IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\
IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI)
+
+/*
+ * These really don't belong here, but there's no other obviously appropriate
+ * location.
+ */
+#define IFP_AUI 0
+#define IFP_10BASE2 1
+#define IFP_10BASET 2
+/* etc. */
+
/*
* Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
* input routines have queues of messages stored on ifqueue structures
OpenPOWER on IntegriCloud