making netflags explicit unsigned long.
#ifndef NET_INTERFACES_FLAGS_H_
#define NET_INTERFACES_FLAGS_H_
-#define NETIF_TXFLAG_IPCHECKSUM (1 << 0)
-#define NETIF_TXFLAG_TCPCHECKSUM (1 << 1)
-#define NETIF_TXFLAG_UDPCHECKSUM (1 << 2)
-#define NETIF_TXFLAG_TCPHDRLEN_SHIFT (3)
-#define NETIF_TXFLAG_TCPHDRLEN_MASK (0xf << NETIF_TXFLAG_TCPHDRLEN_SHIFT)
-
-#define NETIF_TXFLAG (1 << 31)
-#define NETIF_TXFLAG_LAST (1 << 30)
-#define NETIF_TXFLAG_FIRST (1 << 29)
-
-
-#define NETIF_RXFLAG (1 << 28)
-#define NETIF_RXFLAG_TYPE_IPV4 (1 << 0)
-#define NETIF_RXFLAG_TYPE_UDP (1 << 1)
-#define NETIF_RXFLAG_TYPE_TCP (1 << 2)
-
-#define NETIF_RXFLAG_IPCHECKSUM (1 << 3)
-#define NETIF_RXFLAG_IPCHECKSUM_GOOD (1 << 4)
-#define NETIF_RXFLAG_L4CHECKSUM (1 << 5)
-#define NETIF_RXFLAG_L4CHECKSUM_GOOD (1 << 6)
+#define NETIF_TXFLAG_IPCHECKSUM (1UL << 0)
+#define NETIF_TXFLAG_TCPCHECKSUM (1UL << 1)
+#define NETIF_TXFLAG_UDPCHECKSUM (1UL << 2)
+#define NETIF_TXFLAG_TCPHDRLEN_SHIFT (3UL)
+#define NETIF_TXFLAG_TCPHDRLEN_MASK (0xfUL << NETIF_TXFLAG_TCPHDRLEN_SHIFT)
+
+#define NETIF_TXFLAG (1UL << 31)
+#define NETIF_TXFLAG_LAST (1UL << 30)
+#define NETIF_TXFLAG_FIRST (1UL << 29)
+
+
+#define NETIF_RXFLAG (1UL << 28)
+#define NETIF_RXFLAG_TYPE_IPV4 (1UL << 0)
+#define NETIF_RXFLAG_TYPE_UDP (1UL << 1)
+#define NETIF_RXFLAG_TYPE_TCP (1UL << 2)
+
+#define NETIF_RXFLAG_IPCHECKSUM (1UL << 3)
+#define NETIF_RXFLAG_IPCHECKSUM_GOOD (1UL << 4)
+#define NETIF_RXFLAG_L4CHECKSUM (1UL << 5)
+#define NETIF_RXFLAG_L4CHECKSUM_GOOD (1UL << 6)
#endif // ndef NET_INTERFACES_FLAGS_H_
