X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fipv4_frag%2Fmain.c;h=88dc1f632a7cc78a626c1b48d7d2dfa15c8e7b23;hb=4c38e5532a07;hp=ff6001538dbfa91faa5d308b7ac3792dbbce9d8d;hpb=601e279df074a339334885a6f19de9f6db988755;p=dpdk.git diff --git a/examples/ipv4_frag/main.c b/examples/ipv4_frag/main.c index ff6001538d..88dc1f632a 100644 --- a/examples/ipv4_frag/main.c +++ b/examples/ipv4_frag/main.c @@ -74,6 +74,17 @@ #include "rte_ip_frag.h" #include "main.h" +/* + * Default byte size for the IPv4 Maximum Transfer Unit (MTU). + * This value includes the size of IPv4 header. + */ +#define IPV4_MTU_DEFAULT ETHER_MTU + +/* + * Default payload in bytes for the IPv4 packet. + */ +#define IPV4_DEFAULT_PAYLOAD (IPV4_MTU_DEFAULT - sizeof(struct ipv4_hdr)) + #define RTE_LOGTYPE_L3FWD RTE_LOGTYPE_USER1 #define MBUF_SIZE (2048 + sizeof(struct rte_mbuf) + RTE_PKTMBUF_HEADROOM)