net/i40e/base: fix function name in comments
[dpdk.git] / examples / ipsec-secgw / ipsec-secgw.h
index 572a930..96e22de 100644 (file)
        ((uint64_t)(a) & 0xff))
 #endif
 
+#define uint32_t_to_char(ip, a, b, c, d) do {\
+               *a = (uint8_t)(ip >> 24 & 0xff);\
+               *b = (uint8_t)(ip >> 16 & 0xff);\
+               *c = (uint8_t)(ip >> 8 & 0xff);\
+               *d = (uint8_t)(ip & 0xff);\
+       } while (0)
+
 #define ETHADDR(a, b, c, d, e, f) (__BYTES_TO_UINT64(a, b, c, d, e, f, 0, 0))
 
+#define IPSEC_NAT_T_PORT 4500
+#define MBUF_PTYPE_TUNNEL_ESP_IN_UDP (RTE_PTYPE_TUNNEL_ESP | RTE_PTYPE_L4_UDP)
+
 struct traffic_type {
        const uint8_t *data[MAX_PKT_BURST * 2];
        struct rte_mbuf *pkts[MAX_PKT_BURST * 2];