]> git.puffer.fish Git - matthieu/frr.git/commit
lib: refactory cisco access list net wildcard
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 26 Aug 2020 15:50:07 +0000 (12:50 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 26 Aug 2020 15:50:07 +0000 (12:50 -0300)
commit0ed507dda081856952065b5d9cb5862742b017f3
tree0be58d0f8eeda1a85d388de277398ba0ddbfe794
parent070783e69323b3c6401d9b6dff4ab8e74656d02d
lib: refactory cisco access list net wildcard

Wildcards bits have the opposite representation of a network mask,
example:

192.168.0.0/24 has the following netmask 255.255.0.0 and the wildcard
representation is 0.0.255.255.

To avoid future confusion lets put those definitions into a macro so we
know for sure which form to use.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
lib/filter.h
lib/filter_cli.c
lib/filter_nb.c