Commit bfce258b authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Make the netlink code slightly more generic.

1. Support sending netlink dump requests for protocols that do
   not use a base data structure but only attributes.
2. Remove some constants from iproute.py since they are
   already in netlink.py.
3. Add a no-op implementation of MaybeDebugCommand that can be
   overridden by subclasses.
4. Remove the family argument from _ParseAttributes, since it was
   unused.
5. Add a flags argument to MaybeDebugCommand, since decoding xfrm
   commands requires knowing whether the command was a dump or
   not.

Bug: 34812052
Test: existing tests pass
Change-Id: I6919795b01090ef626965ac7643a109ea17742a8
parent c8f04cf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment