]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/ipsec-secgw.c
ethdev: use constants for link state
[dpdk.git] / examples / ipsec-secgw / ipsec-secgw.c
index d6c9a5d7d7f876838621a3b2f29802af5fcb2c1c..00ab2d84e3c5b609334f2910fc9b187e1459806a 100644 (file)
@@ -36,6 +36,8 @@
 #include <stdint.h>
 #include <inttypes.h>
 #include <sys/types.h>
+#include <netinet/in.h>
+#include <netinet/ip.h>
 #include <string.h>
 #include <sys/queue.h>
 #include <stdarg.h>
@@ -945,7 +947,7 @@ check_all_ports_link_status(uint8_t port_num, uint32_t port_mask)
                                continue;
                        }
                        /* clear all_ports_up flag if any link down */
-                       if (link.link_status == 0) {
+                       if (link.link_status == ETH_LINK_DOWN) {
                                all_ports_up = 0;
                                break;
                        }