git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
virtio: suport multiple MAC addresses
[dpdk.git]
/
app
/
test-pmd
/
icmpecho.c
diff --git
a/app/test-pmd/icmpecho.c
b/app/test-pmd/icmpecho.c
index
774924e
..
08ea01d
100644
(file)
--- a/
app/test-pmd/icmpecho.c
+++ b/
app/test-pmd/icmpecho.c
@@
-88,7
+88,7
@@
arp_op_name(uint16_t arp_op)
}
static const char *
}
static const char *
-ip_proto_name(uint
8
_t ip_proto)
+ip_proto_name(uint
16
_t ip_proto)
{
static const char * ip_proto_names[] = {
"IP6HOPOPTS", /**< IP6 hop-by-hop options */
{
static const char * ip_proto_names[] = {
"IP6HOPOPTS", /**< IP6 hop-by-hop options */
@@
-221,12
+221,16
@@
ip_proto_name(uint8_t ip_proto)
if (ip_proto < sizeof(ip_proto_names) / sizeof(ip_proto_names[0]))
return ip_proto_names[ip_proto];
switch (ip_proto) {
if (ip_proto < sizeof(ip_proto_names) / sizeof(ip_proto_names[0]))
return ip_proto_names[ip_proto];
switch (ip_proto) {
+#ifdef IPPROTO_PGM
case IPPROTO_PGM: /**< PGM */
return "PGM";
case IPPROTO_PGM: /**< PGM */
return "PGM";
+#endif
case IPPROTO_SCTP: /**< Stream Control Transport Protocol */
return "SCTP";
case IPPROTO_SCTP: /**< Stream Control Transport Protocol */
return "SCTP";
+#ifdef IPPROTO_DIVERT
case IPPROTO_DIVERT: /**< divert pseudo-protocol */
return "DIVERT";
case IPPROTO_DIVERT: /**< divert pseudo-protocol */
return "DIVERT";
+#endif
case IPPROTO_RAW: /**< raw IP packet */
return "RAW";
default:
case IPPROTO_RAW: /**< raw IP packet */
return "RAW";
default: