This will allow ovs-ofctl to accept them on input and provides some symmetry with the IPv6 versions. Documentation was not added, since output will always be "ip".
Signed-off-by: Justin Pettit <[email protected]> --- lib/ofp-parse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index ade664b..372d72f 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -179,6 +179,8 @@ parse_protocol(const char *name, const struct protocol **p_out) { static const struct protocol protocols[] = { { "ip", ETH_TYPE_IP, 0 }, + { "ipv4", ETH_TYPE_IP, 0 }, + { "ip4", ETH_TYPE_IP, 0 }, { "arp", ETH_TYPE_ARP, 0 }, { "icmp", ETH_TYPE_IP, IPPROTO_ICMP }, { "tcp", ETH_TYPE_IP, IPPROTO_TCP }, -- 1.7.5.4 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
