match: Only print tp_src and tp_dst for TCP and UDP.
authorJustin Pettit <jpettit@nicira.com>
Fri, 22 Feb 2013 02:46:20 +0000 (18:46 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 22 Feb 2013 02:46:20 +0000 (18:46 -0800)
commit9a9a690cc0bc07bb2a0fa01221492cdab61673e3
tree993c60dd8cd58ac7b9351085255dbcd6c43e9cad
parent09a0d2e7c5d080343a304b79697829a53d69db3d
match: Only print tp_src and tp_dst for TCP and UDP.

When printing a match, we would print "tp_src" and "tp_dst" if the
packet wasn't ICMPv4 or ICMPv6.  Unfortunately, this doesn't cover ARP.
This changes the check to only print those keys if the network protocol
is TCP or UDP.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
lib/match.c