-/* bottom 16 bits reserved for hardware checksum */
-#define IF_HWASSIST_CSUM_IP 0x0001 /* will csum IP */
-#define IF_HWASSIST_CSUM_TCP 0x0002 /* will csum TCP */
-#define IF_HWASSIST_CSUM_UDP 0x0004 /* will csum UDP */
-#define IF_HWASSIST_CSUM_IP_FRAGS 0x0008 /* will csum IP fragments */
-#define IF_HWASSIST_CSUM_FRAGMENT 0x0010 /* will do IP fragmentation */
-#define IF_HWASSIST_CSUM_TCP_SUM16 0x1000 /* simple TCP Sum16 computation */
+/* All of the following IF_HWASSIST_* flags are defined
+ * in kpi_inteface.h as IFNET_* flags. These are redefined
+ * here as constants to avoid failures to build user level
+ * programs that can not include kpi_interface.h. It is
+ * important to keep this in sync with the definitions in
+ * kpi_interface.h. The corresponding constant for each
+ * definition is mentioned in the comment.
+ *
+ * Bottom 16 bits reserved for hardware checksum
+ */
+#define IF_HWASSIST_CSUM_IP 0x0001 /* will csum IP, IFNET_CSUM_IP */
+#define IF_HWASSIST_CSUM_TCP 0x0002 /* will csum TCP, IFNET_CSUM_TCP */
+#define IF_HWASSIST_CSUM_UDP 0x0004 /* will csum UDP, IFNET_CSUM_UDP */
+#define IF_HWASSIST_CSUM_IP_FRAGS 0x0008 /* will csum IP fragments, IFNET_CSUM_FRAGMENT */
+#define IF_HWASSIST_CSUM_FRAGMENT 0x0010 /* will do IP fragmentation, IFNET_IP_FRAGMENT */
+#define IF_HWASSIST_CSUM_TCP_SUM16 0x1000 /* simple TCP Sum16 computation, IFNET_CSUM_SUM16 */