I'm researching the capabilities of the OpenFastPath stack.
I hit a problem where my packets get dropped and found that my rule for default route doesn't work.
The packets get dropped because ofp_get_next_hop can't find next hop when processing output packets.
I'm able to reproduce and show my problem with the following simplified snippet:
Destination Gateway Iface Flags
VRF: 0
0.0.0.0/0 10.20.30.1 fp0 net gateway
Next hop (nil) for 10.20.30.5 <----- Next hop is not found for this ip address
And just to make sure that the above snippet actually works. If I do this change in the above code
.dst = 0x001E140A, // 10.20.30.0
.masklen = 24,
then the code prints:
Destination Gateway Iface Flags
VRF: 0
10.20.30.0/24 10.20.30.1 fp0 net gateway
Next hop 0x7f5e106e936c for 10.20.30.5 <----- Next hop is found
So, my question is: What I'm doing wrong and how can I setup default route for all packets?
Hi there,
I'm researching the capabilities of the OpenFastPath stack. I hit a problem where my packets get dropped and found that my rule for default route doesn't work. The packets get dropped because
ofp_get_next_hop
can't find next hop when processing output packets. I'm able to reproduce and show my problem with the following simplified snippet:This code prints:
And just to make sure that the above snippet actually works. If I do this change in the above code
then the code prints:
So, my question is: What I'm doing wrong and how can I setup default route for all packets?
Thanks, Pavel.