2 * Copyright (c) 2007-2013, ETH Zurich.
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
10 #ifndef NET_INTERFACES_FLAGS_H_
11 #define NET_INTERFACES_FLAGS_H_
13 #define NETIF_TXFLAG_IPCHECKSUM (1 << 0)
14 #define NETIF_TXFLAG_TCPCHECKSUM (1 << 1)
15 #define NETIF_TXFLAG_UDPCHECKSUM (1 << 2)
16 #define NETIF_TXFLAG_TCPHDRLEN_SHIFT (3)
17 #define NETIF_TXFLAG_TCPHDRLEN_MASK (0xf << NETIF_TXFLAG_TCPHDRLEN_SHIFT)
19 #define NETIF_TXFLAG (1 << 31)
20 #define NETIF_TXFLAG_LAST (1 << 30)
21 #define NETIF_TXFLAG_FIRST (1 << 29)
24 #define NETIF_RXFLAG (1 << 28)
25 #define NETIF_RXFLAG_TYPE_IPV4 (1 << 0)
26 #define NETIF_RXFLAG_TYPE_UDP (1 << 1)
27 #define NETIF_RXFLAG_TYPE_TCP (1 << 2)
29 #define NETIF_RXFLAG_IPCHECKSUM (1 << 3)
30 #define NETIF_RXFLAG_IPCHECKSUM_GOOD (1 << 4)
31 #define NETIF_RXFLAG_L4CHECKSUM (1 << 5)
32 #define NETIF_RXFLAG_L4CHECKSUM_GOOD (1 << 6)
34 #endif // ndef NET_INTERFACES_FLAGS_H_