From: Jarno Rajahalme Date: Tue, 29 Apr 2014 00:31:25 +0000 (-0700) Subject: lib/odp-util: Remove extra parenthesis from sctp key output. X-Git-Tag: sliver-openvswitch-2.2.90-1~3^2~54 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=61abba807febc0954acc0d23aeb75b081ad9d77a lib/odp-util: Remove extra parenthesis from sctp key output. Signed-off-by: Jarno Rajahalme Reviewed-by: YAMAMOTO Takashi --- diff --git a/lib/odp-util.c b/lib/odp-util.c index 8e95c9e96..af464a040 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1319,7 +1319,7 @@ format_odp_key_attr(const struct nlattr *a, const struct nlattr *ma, } else { const struct ovs_key_sctp *sctp_key = nl_attr_get(a); - ds_put_format(ds, "(src=%"PRIu16",dst=%"PRIu16")", + ds_put_format(ds, "src=%"PRIu16",dst=%"PRIu16, ntohs(sctp_key->sctp_src), ntohs(sctp_key->sctp_dst)); } break; diff --git a/tests/odp.at b/tests/odp.at index 34bc18713..26f561f46 100644 --- a/tests/odp.at +++ b/tests/odp.at @@ -242,6 +242,7 @@ set(eth_type(0x1234)) set(ipv4(src=35.8.2.41,dst=172.16.0.20,proto=5,tos=0x80,ttl=128,frag=no)) set(tcp(src=80,dst=8080)) set(udp(src=81,dst=6632)) +set(sctp(src=82,dst=6633)) set(icmp(type=1,code=2)) set(ipv6(src=::1,dst=::2,label=0,proto=10,tclass=0x70,hlimit=128,frag=no)) set(icmpv6(type=1,code=2))