Bruce Richardson 257dcd86c0 app/testpmd: fix out-of-range error on bsd
The definition value for IPPROTO_DIVERT protocol uses a value
which is out of range of the uint8_t type, giving clang compiler
errors on FreeBSD.

app/test-pmd/icmpecho.c:231:7: fatal error: overflow converting case value
        to switch condition type (258 to 2) [-Wswitch]
                case IPPROTO_DIVERT: /**< divert pseudo-protocol */

This is fixed by having the code to return the protocol name
use the uint16_t type for the protocol value input.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-12-01 16:44:40 +01:00
..
2014-11-27 13:09:55 +01:00
2014-11-27 18:24:57 +01:00
2014-06-11 00:29:34 +02:00
2014-11-26 19:35:55 +01:00
2014-08-26 17:52:33 +02:00
2014-06-11 00:29:34 +02:00
2014-06-11 00:29:34 +02:00
2014-07-01 16:25:35 +02:00
2014-11-26 19:35:55 +01:00
2014-11-27 16:21:11 +01:00
2014-11-27 16:21:11 +01:00
2014-11-26 19:35:55 +01:00