[dpdk-dev] bytes order of ip header in dpdk 2.1

2015-11-18 Thread Moon-Sang Lee
sorry, my code has a bug with regarding to byte order in convert_ip_to_string(). On Wed, Nov 18, 2015 at 5:47 PM, Moon-Sang Lee wrote: > > Once receiving a packet by rte_eth_rx_burst(), I printed IP header as > below. > It seems that length(uint16_t) is in big endian, but ip addresses are in >

[dpdk-dev] bytes order of ip header in dpdk 2.1

2015-11-18 Thread Moon-Sang Lee
Once receiving a packet by rte_eth_rx_burst(), I printed IP header as below. It seems that length(uint16_t) is in big endian, but ip addresses are in little endian. I'm confused and appreciate any comment. ### print_ipv4_header src = 11.0.168.192, dst = 2.173.248.143, length = 60, ttl = 64, proto