]> git.droids-corp.org - dpdk.git/blobdiff - examples/ipsec-secgw/sa.c
net: add rte prefix to IP defines
[dpdk.git] / examples / ipsec-secgw / sa.c
index 8043ed54accc3f26062214f7497dc3ab765849e1..8a3d89497b841fcbdb23b086c0ba4e2299f5f265 100644 (file)
@@ -951,7 +951,7 @@ get_spi_proto(uint32_t spi, enum rte_security_ipsec_sa_direction dir)
                if (rc6 >= 0) {
                        RTE_LOG(ERR, IPSEC,
                                "%s: SPI %u used simultaeously by "
                if (rc6 >= 0) {
                        RTE_LOG(ERR, IPSEC,
                                "%s: SPI %u used simultaeously by "
-                               "IPv4(%d) and IPv6 (%d) SP rules\n",
+                               "RTE_IPv4(%d) and IPv6 (%d) SP rules\n",
                                __func__, spi, rc4, rc6);
                        return -EINVAL;
                } else
                                __func__, spi, rc4, rc6);
                        return -EINVAL;
                } else
@@ -1040,7 +1040,7 @@ ipsec_sa_init(struct ipsec_sa *lsa, struct rte_ipsec_sa *sa, uint32_t sa_size)
        struct rte_ipsec_sa_prm prm;
        struct rte_ipv4_hdr v4  = {
                .version_ihl = IPVERSION << 4 |
        struct rte_ipsec_sa_prm prm;
        struct rte_ipv4_hdr v4  = {
                .version_ihl = IPVERSION << 4 |
-                       sizeof(v4) / IPV4_IHL_MULTIPLIER,
+                       sizeof(v4) / RTE_IPV4_IHL_MULTIPLIER,
                .time_to_live = IPDEFTTL,
                .next_proto_id = IPPROTO_ESP,
                .src_addr = lsa->src.ip.ip4,
                .time_to_live = IPDEFTTL,
                .next_proto_id = IPPROTO_ESP,
                .src_addr = lsa->src.ip.ip4,