[ovs-git] [ovn-org/ovn] 2104f6: lex: Allow unmasked bits in value/mask tokens.

Dumitru Ceara noreply at github.com
Wed Jun 24 10:42:37 UTC 2020

  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: 2104f67aacd62f62a31f4e23a6720aeeaa751154
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2020-06-24 (Wed, 24 Jun 2020)

  Changed paths:
    M lib/lex.c
    M tests/ovn.at

  Log Message:
  lex: Allow unmasked bits in value/mask tokens.

It's quite restrictive to not accept ACLs/policies that match on a CIDR
that has non-zero host bits. Right now this generates a lexer error that
can only be detected in the logs.

There's no real harm in automatically zero-ing the unmasked bits.

Reported-at: https://bugzilla.redhat.com/1812820
Reported-by: Ying Xu <yinxu at redhat.com>
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Acked-by: Mark Michelson <mmichels at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

More information about the git mailing list