[ovs-dev] [PATCH 3/7] ofp-parse: Add "ipv4" and "ip4" shorthand notations.
Russell Bryant
rbryant at redhat.com
Tue Aug 25 19:38:23 UTC 2015
On 08/24/2015 09:12 PM, Justin Pettit wrote:
> 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 <jpettit at nicira.com>
> ---
> 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 },
>
Acked-by: Russell Bryant <rbryant at redhat.com>
--
Russell Bryant
More information about the dev
mailing list