Add support for:
BGP
ISIS
OSPF
RIP
EIGRP
Routing protocols to iproute2.
Signed-off-by: Donald Sharp
---
v2: Update to latest version of code.
etc/iproute2/rt_protos | 5 +
lib/rt_names.c | 5 +
2 files changed, 10 insertions(+)
diff --git a/etc/iproute2/rt_protos b/etc
The linux kernel recently accepted some new RTPROT values for some
fairly standard routing protocols. This commit brings in support
for iproute2 to handle these new values.
v2 - Update to latest version of master which has rtnetlink.h code and drop
of work already done.
Donald Sharp (1
Add support for:
BGP
ISIS
OSPF
RIP
EIGRP
Routing protocols to iproute2.
Signed-off-by: Donald Sharp
---
etc/iproute2/rt_protos| 5 +
include/linux/rtnetlink.h | 5 +
lib/rt_names.c| 5 +
3 files changed, 15 insertions(+)
diff --git a/etc/iproute2/rt_protos b/etc
The linux kernel recently accepted some new RTPROT values for some
fairly standard routing protocols. This commit brings in support
for iproute2 to handle these new values.
Additionally clean up some long standing cruft in etc/iproute2/rt_protos
Donald Sharp (2):
iproute2: Add support
These values are not being used nor maintained, so remove.
Signed-off-by: Donald Sharp
---
etc/iproute2/rt_protos | 13 -
1 file changed, 13 deletions(-)
diff --git a/etc/iproute2/rt_protos b/etc/iproute2/rt_protos
index 3ffe8a6c..a965ad16 100644
--- a/etc/iproute2/rt_protos
+++ b
This patch is intended for net-next.
thanks!
donald
On Wed, May 30, 2018 at 8:27 AM, Donald Sharp
wrote:
> FRRouting installs routes into the kernel associated with
> the originating protocol. Add these values to the well
> known values in rtnetlink.h.
>
> Signed-off-b
FRRouting installs routes into the kernel associated with
the originating protocol. Add these values to the well
known values in rtnetlink.h.
Signed-off-by: Donald Sharp
---
v2: Fixed whitespace issues
include/uapi/linux/rtnetlink.h | 5 +
1 file changed, 5 insertions(+)
diff --git
FRRouting installs routes into the kernel associated with
the originating protocol. Add these values to the well
known values in rtnetlink.h.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/uapi/linux/rtnetlink.h | 5 +
1 file changed, 5 insertions(+)
diff
Allow the specification of a protocol when the user
adds/modifies/deletes a rule.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/ip/iprule.c b/ip/iprule.c
index 8120520e..6fdc9b5e 100644
--- a/ip/iprule.c
' no parameters and doc changes
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/uapi/linux/fib_rules.h | 1 +
ip/iprule.c| 173
use the correct
one.
Additionally copy over the modified fib_rules.h file
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/uapi/linux/fib_rules.h | 1 +
ip/iprule.c| 128 +
2 files changed, 68 insertions(
Modify 'ip rule' command to notice when the kernel passes
to us the originating protocol.
Add code to allow the `ip rule flush protocol XXX`
command to be accepted and properly handled.
Modify the documentation to reflect these code changes.
Signed-off-by: Donald Sharp <
use the correct
one.
Additionally copy over the modified fib_rules.h file
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/uapi/linux/fib_rules.h | 1 +
ip/iprule.c| 128 +
2 files changed, 68 insertions(
Modify 'ip rule' command to notice when the kernel passes
to us the originating protocol.
Add code to allow the `ip rule flush protocol XXX`
command to be accepted and properly handled.
Modify the documentation to reflect these code changes.
Signed-off-by: Donald Sharp <
Allow the specification of a protocol when the user
adds/modifies/deletes a rule.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/ip/iprule.c b/ip/iprule.c
index 17df9e9b..796da3b3 100644
--- a/ip/iprule.c
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 manipulation.
v2: Rearrange and code changes as per David Ahern
v3: Fix some missed RTN_XXX to appropriate FR_XX and doc changes
Donald Sharp (3):
ip: Use the `struct
and "???" was being printed.
Add code to properly display this data when requested.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
lib/utils.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/lib/utils.c b/lib/utils.c
index 24aeddd8..fe5841f6
returned 0 in notifications. To avoid incompatibility with
existing iproute2, send the protocol as a new attribute.
Fixes: cac56209a66 ("net: Allow a rule to track originating protocol")
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
drivers/net/vrf.c
and "???" was being printed.
Add code to properly display this data when requested.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
lib/utils.c | 18 ++
1 file changed, 18 insertions(+)
diff --git a/lib/utils.c b/lib/utils.c
index 24aeddd8..e01e18a7
Modify 'ip rule' command to notice when the kernel passes
to us the originating protocol.
Add code to allow the `ip rule flush protocol XXX`
command to be accepted and properly handled.
Modify the documentation to reflect these code changes.
Signed-off-by: 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.
v2: Rearrange and code changes as per David Ahern
Donald Sharp (3):
ip: Use the `struct fib_rule_hdr` for rules
ip: Display ip rule protocol used
ip
use the correct
one.
Additionally copy over the modified fib_rules.h file
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/uapi/linux/fib_rules.h | 2 +-
ip/iprule.c| 129 ++---
2 files changed, 69 insertions(
Allow the specification of a protocol when the user
adds/modifies/deletes a rule.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/ip/iprule.c b/ip/iprule.c
index 39008768..192fe215 100644
--- a/ip/iprule.c
Newer kernels are now accepting a protocol from the installing
program for who installed the rule. This change allows us
to see this change if it is being specified by the installing
program.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 4
1 file chan
Allow the specification of a protocol when the user
adds/modifies/deletes a rule.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/ip/iprule.c b/ip/iprule.c
index b3e7d92c..fd242fee 100644
--- a/ip/iprule.c
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 (4):
ip: Use the `struct fib_rule_hdr` for rules
ip: Display ip rule protocol used
ip: Allow rules to accept a specified protocol
ip: Add
Add code to allow the `ip rule flush protocol XXX`
command to be accepted and properly handled.
Additionally modify the documentation to be correct
with these changes.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c| 25 ++---
man/m
use the correct
one.
Additionally copy over the modified fib_rules.h file
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/uapi/linux/fib_rules.h | 2 +-
ip/iprule.c| 132 ++---
2 files changed, 72 insertions(
Add the ability for the kernel to track the originating protocol
for when new rules are added to the kernel.
---
v1->v2
-> Address comments by David Miller to collapse patches into 1.
Donald Sharp (1):
net: Allow a rule to track originating protocol
drivers/net/vrf.c
the vrf device to specify that the kernel is the originator
of the rule created for this device.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
drivers/net/vrf.c | 1 +
include/net/fib_rules.h| 3 ++-
include/uapi/linux/fib_rules.h | 2 +-
net/core/fib_r
Got it. I'll send an update.
donald
On Sat, Feb 17, 2018 at 6:35 PM, David Ahern <d...@cumulusnetworks.com> wrote:
> On 2/17/18 5:47 AM, Donald Sharp wrote:
>> Fix iprule.c to use the actual `struct fib_rule_hdr` and to
>> allow the end user to see and use the protoco
Allow the specification of a protocol when the user
adds/modifies/deletes a rule.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/ip/iprule.c b/ip/iprule.c
index 5703d6e4..8fc6ac48 100644
--- a/ip/iprule.c
use the correct
one.
Additionally copy over the modified fib_rules.h file
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/linux/fib_rules.h | 2 +-
ip/iprule.c | 105 --
2 files changed, 56 insertions(
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
Newer kernels are now accepting a protocol from the installing
program for who installed the rule. This change allows us
to see this change if it is being specified by the installing
program.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/iprule.c | 3 +++
1 file chan
-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
include/net/fib_rules.h| 3 ++-
include/uapi/linux/fib_rules.h | 2 +-
net/core/fib_rules.c | 7 ++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h
Allow the vrf device to specify that the kernel is the originator
of the rule created for this device.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
drivers/net/vrf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index 139c61
Add the ability for the kernel to track the originating protocol
for when new rules are added to the kernel.
Donald Sharp (2):
net: Allow a rule to track originating protocol
drivers: Modify vrf device to specify it's rule as RTPROT_KERNEL
drivers/net/vrf.c | 1 +
include/net
Two things:
1) Update examples to show usage of metric
2) Discuss reasoning for using such a high metric.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
Documentation/networking/vrf.txt | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/Documen
process.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
net/ipv4/ipmr.c | 63 -
1 file changed, 62 insertions(+), 1 deletion(-)
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index a1d521b..bb909f1 100644
--- a/net/ipv4/ipmr.c
the convention established by 'ip route show table 0'
for when to display
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
ip/ipmroute.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/ip/ipmroute.c b/ip/ipmroute.c
index 4d2d758..70f4c4f 100644
--- a/ip/ipmroute.c
+++ b/ip/ipmr
I would argue that this is just an unintended side effect of the
original implementation. Shuffling interface vif's seems like a good
way to churn a significant number of mroutes to me. If you want to
use a interface it probably is going to be already be configured with
it's own vif, and as such
to the correct incoming device for
a vrf scenario, before calling ip_mr_forward.
Fix this by resolving to the correct interface
and calling ip_mr_forward with the result.
Fixes: e58e41596811 ("net: Enable support for VRF with ipv4 multicast")
Signed-off-by: Donald Sharp <sha...@cumulusnetwork
I'll change it over to this way. No problem.
donald
On Fri, Jun 9, 2017 at 10:54 AM, David Ahern <dsah...@gmail.com> wrote:
> On 6/9/17 8:22 AM, Donald Sharp wrote:
>> @@ -988,7 +988,16 @@ static void ipmr_cache_resolve(struct net *net, struct
&
to the correct incoming device for
a vrf scenario, before calling ip_mr_forward.
Fix this by resolving to the correct interface
and calling ip_mr_forward with the result.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
v2: Fixed title
net/ipv4/ipmr.c | 27 ++-
to the correct incoming device for
a vrf scenario, before calling ip_mr_forward.
Fix this by resolving to the correct interface
and calling ip_mr_forward with the result.
Signed-off-by: Donald Sharp <sha...@cumulusnetworks.com>
---
net/ipv4/ipmr.c | 27 ++-
1 file changed, 18 inse
46 matches
Mail list logo