Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Define IFFBITS and IFCAPBITS here in <net/if.h>. Ta...
details: https://anonhg.NetBSD.org/src/rev/667b82632f61
branches: trunk
changeset: 579638:667b82632f61
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Mar 20 02:51:33 2005 +0000
description:
Define IFFBITS and IFCAPBITS here in <net/if.h>. Taken from ifconfig.
diffstat:
sys/net/if.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 9f8bc3c2fefe -r 667b82632f61 sys/net/if.h
--- a/sys/net/if.h Sun Mar 20 02:44:50 2005 +0000
+++ b/sys/net/if.h Sun Mar 20 02:51:33 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.h,v 1.104 2005/03/18 11:11:50 yamt Exp $ */
+/* $NetBSD: if.h,v 1.105 2005/03/20 02:51:33 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -331,6 +331,11 @@
#define IFF_LINK2 0x4000 /* per link layer defined bit */
#define IFF_MULTICAST 0x8000 /* supports multicast */
+#define IFFBITS \
+ "\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\6NOTRAILERS" \
+ "\7RUNNING\10NOARP\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX" \
+ "\15LINK0\16LINK1\17LINK2\20MULTICAST"
+
/* flags set internally only: */
#define IFF_CANTCHANGE \
(IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|\
@@ -354,6 +359,10 @@
#define IFCAP_CSUM_UDPv4_Rx 0x0040 /* can do IPv4/UDP (Rx only) */
#define IFCAP_TSOv4 0x0080 /* can do TCPv4 segmentation offload */
+#define IFCAPBITS \
+ "\020\1IP4CSUM\2TCP4CSUM\3UDP4CSUM\4TCP6CSUM\5UDP6CSUM\6TCP4CSUM_Rx" \
+ "\7UDP4CSUM_Rx\10TSO4"
+
/*
* Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
* input routines have queues of messages stored on ifqueue structures
Home |
Main Index |
Thread Index |
Old Index