Skip to contentSkip to conversation

Allow 'ip rule' command to use protocol

PATCH In review Donald Sharp 2 participants 3 messages Feb 17, 2018 – Feb 18, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Allow 'ip rule' command to use protocol

Fix iprule.c to use the actual struct fib_rule_hdr and to allow the end user to see and use the protocol keyword for rule manipulations.

Donald Sharp (3):
ip: Use the struct fib_rule_hdr for rules
ip: Display ip rule protocol used
ip: Allow rules to accept a specified protocol

 include/linux/fib_rules.h |   2 +-
 ip/iprule.c               | 114 ++++++++++++++++++++++++++--------------------
 2 files changed, 65 insertions(+), 51 deletions(-)
Signature · 1 line
2.14.3
#1 lore raw
Quoted 4 lines · Donald Sharp

Fix iprule.c to use the actual struct fib_rule_hdr and to allow the end user to see and use the protocol keyword for rule manipulations.

Quoted 9 lines

Donald Sharp (3):
ip: Use the struct fib_rule_hdr for rules
ip: Display ip rule protocol used
ip: Allow rules to accept a specified protocol

 include/linux/fib_rules.h |   2 +-
 ip/iprule.c               | 114 ++++++++++++++++++++++++++--------------------
 2 files changed, 65 insertions(+), 51 deletions(-)

you are missing a patch to add protocol to iprule_list_flush_or_save so 'ip ru flush proto NAME' flushes all rules with that protocol.

#2 lore raw

Got it. I'll send an update.

donald

Quoted 17 lines · David Ahern
Quoted 4 lines · Donald Sharp

Fix iprule.c to use the actual struct fib_rule_hdr and to allow the end user to see and use the protocol keyword for rule manipulations.

Quoted 9 lines

Donald Sharp (3):
ip: Use the struct fib_rule_hdr for rules
ip: Display ip rule protocol used
ip: Allow rules to accept a specified protocol

 include/linux/fib_rules.h |   2 +-
 ip/iprule.c               | 114 ++++++++++++++++++++++++++--------------------
 2 files changed, 65 insertions(+), 51 deletions(-)

you are missing a patch to add protocol to iprule_list_flush_or_save so 'ip ru flush proto NAME' flushes all rules with that protocol.