diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-02-08 09:54:31 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-05-04 16:23:37 -0400 |
| commit | df19c76a535926b5607c2c72b94506da5d4c454e (patch) | |
| tree | 0de04bab2612461c3f6f29e39b1715f799d0b2b3 /ripd/rip_cli.c | |
| parent | bc79672d3ef80eac67abc5f1d96fc6e8e125d062 (diff) | |
lib: Abstract parsing of distribute lists
Abstract the parsing of distribute lists so that we
don't have as much cut-n-paste code.
This is a setup commit for future work. In effect
current distribute-list handling is all kinds of messed up
a) eigrp and babel both attempt to use distribute-lists, they just plain
don't work.
b) `distribute-list` is only sent to rip. `ipv6 distribute-list`
is sent to ripngd. If you use `distribute-list` under `router ripng`
it sends the command to rip but ripd is in the wrong mode and it
never works.
c) Should ripngd care about v4 and v6 specific distribute-lists?
This dichotomy was added for babel but babel has been broke
about this since day 1( see a ).
All in all we need to unwind this whole mess. Make distribute-list
commands specific to the daemons( so that we can be in the right
sub-mode ). But the parsing is going to be the same across all
daemons. So let's provide that functionality in `lib/distribute.c`
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ripd/rip_cli.c')
0 files changed, 0 insertions, 0 deletions
