Page MenuHomeFreeBSD
Feed Advanced Search

Aug 20 2021

melifaro accepted D30398: Route IPv4 packets via IPv6 next-hops.
Aug 20 2021, 9:39 PM · network
melifaro added reviewers for D30398: Route IPv4 packets via IPv6 next-hops: network, ae, olivier, hselasky.
Aug 20 2021, 9:38 PM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

Also: will you write a commit message, or do you prefer me doing it?

Aug 20 2021, 3:51 PM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

You also need to add a bit of family wrapping logic inside fill_nhop_from_info(), so we get a proper family for the nexthop.

Aug 20 2021, 3:36 PM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

.

Aug 20 2021, 3:29 PM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Pass correct AF to nd6_resolve()

Aug 20 2021, 3:26 PM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.
In D30398#712270, @zlei.huang_gmail.com wrote:

@melifaro Sorry for late response ;)

I removed the LLE part, it should be easy to apply D31379 .

It should be the other way round :-) e.g. D31379 is a pre-requisite.
Could you try to apply it first, build on top and test?

Aug 20 2021, 3:24 PM · network
melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

Also: will you write a commit message, or do you prefer me doing it?

Aug 20 2021, 8:09 AM · network
melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

You also need to add a bit of family wrapping logic inside fill_nhop_from_info(), so we get a proper family for the nexthop.

Aug 20 2021, 8:07 AM · network

Aug 18 2021

zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.
In D30398#712270, @zlei.huang_gmail.com wrote:

@melifaro Sorry for late response ;)

I removed the LLE part, it should be easy to apply D31379 .

It should be the other way round :-) e.g. D31379 is a pre-requisite.
Could you try to apply it first, build on top and test?

Aug 18 2021, 10:35 AM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Added feature(3) knob.

Aug 18 2021, 10:33 AM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Cleaned up some comments.

Aug 18 2021, 10:02 AM · network
melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.
In D30398#712270, @zlei.huang_gmail.com wrote:

@melifaro Sorry for late response ;)

I removed the LLE part, it should be easy to apply D31379 .

It should be the other way round :-) e.g. D31379 is a pre-requisite.
Could you try to apply it first, build on top and test?

Aug 18 2021, 8:19 AM · network
melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 18 2021, 8:18 AM · network
melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 18 2021, 7:56 AM · network
melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 18 2021, 7:51 AM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

.

Aug 18 2021, 7:38 AM · network
zlei added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 18 2021, 4:48 AM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

@melifaro Sorry for late response ;)

Aug 18 2021, 4:38 AM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Rebased on latest main branch

Aug 18 2021, 4:35 AM · network

Aug 9 2021

zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

I've updated the aforementioned D31379 to reflect the committed parts.
If you could update this review to use the new functionality (e.g. nd6_resolve() returning lle with the proper encap) , that would be awesome.

Aug 9 2021, 3:59 AM · network

Aug 8 2021

melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 8 2021, 9:43 AM · network

Aug 7 2021

melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 7 2021, 11:05 AM · network

Aug 6 2021

melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

I've updated the aforementioned D31379 to reflect the committed parts.
If you could update this review to use the new functionality (e.g. nd6_resolve() returning lle with the proper encap) , that would be awesome.

Aug 6 2021, 11:12 PM · network

Aug 2 2021

melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

I've added D31379 with the lltable support for IPvX over IPvY.
Basically, the diff creates per-family "child" lle entries attached to the main lle entry. The purpose of each child entry is to have an object with a proper encap, so it can be referenced just like standard lle.

Aug 2 2021, 8:34 PM · network

Aug 1 2021

melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Aug 1 2021, 2:48 PM · network

Jul 9 2021

zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Rework sending queued LLE packets.

Jul 9 2021, 4:29 PM · network

Jul 6 2021

melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

I have some WIP patch on making nd6_resolve() return LLEs with proper encap. Hope to publish it later this week.

Jul 6 2021, 8:58 AM · network

Jun 25 2021

melifaro added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Jun 25 2021, 10:00 PM · network
zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

LGTM, I guess the biggest remaining piece now is lle handling, especially sending queued LLE packets upon successful resolution.

Jun 25 2021, 10:57 AM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

LGTM, I guess the biggest remaining piece now is lle handling, especially sending queued LLE packets upon successful resolution.

Jun 25 2021, 10:49 AM · network

Jun 21 2021

donner added a comment to D30811: Correct loopback route for aliases IP addresses.
In D30811#693218, @zlei.huang_gmail.com wrote:

Can you please share the discussion? Thanks!

Jun 21 2021, 11:02 AM · network
zlei added a comment to D30811: Correct loopback route for aliases IP addresses.

I think I hit the issue that the useloopback was trying to resolve.

Jun 21 2021, 9:24 AM · network

Jun 19 2021

zlei added a comment to D30811: Correct loopback route for aliases IP addresses.

I'm surprised. There was a discussion about not redirecting /32 on interfaces to loopback. So we see the consequence.

Jun 19 2021, 12:58 PM · network

Jun 18 2021

kp added a comment to D30811: Correct loopback route for aliases IP addresses.

I believe this bug is also related: #255685

Jun 18 2021, 12:37 PM · network
donner added a comment to D30811: Correct loopback route for aliases IP addresses.

I'm surprised. There was a discussion about not redirecting /32 on interfaces to loopback. So we see the consequence.

Jun 18 2021, 10:34 AM · network
zlei added inline comments to D30811: Correct loopback route for aliases IP addresses.
Jun 18 2021, 8:07 AM · network
zlei updated the summary of D30811: Correct loopback route for aliases IP addresses.
Jun 18 2021, 8:02 AM · network
zlei updated the test plan for D30811: Correct loopback route for aliases IP addresses.
Jun 18 2021, 7:55 AM · network
zlei added inline comments to D30811: Correct loopback route for aliases IP addresses.
Jun 18 2021, 7:54 AM · network
zlei requested review of D30811: Correct loopback route for aliases IP addresses.
Jun 18 2021, 7:50 AM · network

Jun 15 2021

melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

LGTM, I guess the biggest remaining piece now is lle handling, especially sending queued LLE packets upon successful resolution.

Jun 15 2021, 9:12 AM · network
zlei added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Jun 15 2021, 7:38 AM · network
zlei added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Jun 15 2021, 7:32 AM · network
zlei added inline comments to D30398: Route IPv4 packets via IPv6 next-hops.
Jun 15 2021, 7:19 AM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.

Updated as @melifaro suggested.

Jun 15 2021, 7:00 AM · network

Jun 12 2021

melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.
In D30398#683204, @zlei.huang_gmail.com wrote:
  • inpcb LLE caching

If I remember correctly, there is LLE caching in route object, and inpcb caches the route.

  • slow path - sending packets when there is no LLE entry

Current implementation when there is no LLE entry sending packets is blocked, I wonder if we can re-queue them.

ether_resolve_addr() will consume an mbuf and add it to the sending queue of the particular lle we're looking to resolve.
Once lle is resolved we iterate through this queue and re-send these using if_output() (end of arp_check_update_lle() for IPv4). Here we need to distingush between IPv4 or IPv6 packets somehow - either by inspecting IP version field or having a separate queues for IPv4/IPv6. Personally I'd experiment with the former approach.

Jun 12 2021, 7:10 PM · network
melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

This version looks pretty neat, please see some comments inline.

Jun 12 2021, 6:36 PM · network

Jun 11 2021

zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

Reuse route.ro_dst to get the address family of outbound / forwarded packets.

Jun 11 2021, 11:35 AM · network
zlei updated the diff for D30398: Route IPv4 packets via IPv6 next-hops.
Jun 11 2021, 11:29 AM · network

May 24 2021

zlei added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

First of all, thanks for working on this! This is the important feature we need to have in base, preferably turned on by default.
I'd love to land this.

Glad to get your response !
I'm interested with scalable network, and recently exploring the CLOS network architecture described by RFC 7938. It need large number of IPs and configuration
and BGP unnumbered seems to rescue (RFC 5549).
Thanks your effort on FreeBSD's routing component, it is not too hard to implement such feature in the dataplane :)

I spent some time thinking about the potential implementation option some time ago. Let me try to summarise my thoughts below.

May 24 2021, 10:46 AM · network

May 22 2021

melifaro added a comment to D30398: Route IPv4 packets via IPv6 next-hops.

First of all, thanks for working on this! This is the important feature we need to have in base, preferably turned on by default.
I'd love to land this.

May 22 2021, 7:12 PM · network
zlei requested review of D30398: Route IPv4 packets via IPv6 next-hops.
May 22 2021, 9:38 AM · network

May 19 2021

zlei added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Thanks @donner :)

May 19 2021, 6:44 AM · network

May 18 2021

donner closed D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
May 18 2021, 9:01 PM · network
donner closed D26489: IP address parsing in netgraph eating too many characters.
May 18 2021, 8:40 PM · network

May 17 2021

zlei added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Hi, since I do not have access to the src repository, could someone check in the diff please ?

May 17 2021, 10:46 AM · network
donner accepted D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
May 17 2021, 10:43 AM · network
zlei added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Friendly ping @donner , there're changes since your first acceptance, do you have any objections?

May 17 2021, 9:53 AM · network

May 8 2021

donner added a comment to D26489: IP address parsing in netgraph eating too many characters.

Do you have a committer for this patch?

May 8 2021, 8:00 AM · network

May 1 2021

d.oriented_gmail.com added a member for network: d.oriented_gmail.com.
May 1 2021, 10:12 PM
karels accepted D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Re: avoiding ntohl(): that would be possible, but probably not within the scope of this change.

May 1 2021, 4:12 PM · network
melifaro added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
May 1 2021, 10:13 AM · network

Apr 30 2021

zlei added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 30 2021, 1:10 AM · network

Apr 27 2021

rgrimes accepted D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

I am accepting this without the IPSTAT_INC(ips_forward) issue being fixed, as it looks to me as if that is an existing and separate problem in the code. Probably a walk through should be done to see that ips_forward and ips_cantforward are all done correctly.

Apr 27 2021, 11:31 AM · network
zlei updated the diff for D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 27 2021, 3:53 AM · network
zlei added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

I would still like to see the "169.254.0.0/16" changed to IN_LINKLOCAL, purpose of macro is to locate this value one place and one place only, scattering this string in the code undoes that.

Apr 27 2021, 3:28 AM · network

Apr 26 2021

rgrimes added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

I would still like to see the "169.254.0.0/16" changed to IN_LINKLOCAL, purpose of macro is to locate this value one place and one place only, scattering this string in the code undoes that.

Apr 26 2021, 7:08 PM · network
zlei updated the diff for D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Update as @rgrimes suggested.

Apr 26 2021, 4:19 PM · network
rgrimes added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 2:26 PM · network
donner accepted D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

So we are currently handle all multicast packets from LL sources as locally handled streams regardless of the destination.
That might be correct, even if the local machine is processing the multicast destination itself. So it is able to receive such stream over the local link.

Apr 26 2021, 1:12 PM · network
zlei updated the diff for D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Then the condition belongs to line 740
if (V_ip_mrouter && !IN_LINKLOCAL{(ntohl(ip->ip_src.s_addr))) {

Apr 26 2021, 8:50 AM · network
donner requested changes to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 8:35 AM · network
zlei added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 7:48 AM · network
zlei added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 7:45 AM · network
zlei updated the summary of D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 7:38 AM · network
zlei updated the diff for D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Added full context.

Apr 26 2021, 7:22 AM · network
zlei added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

May you please add context to the diff?

Apr 26 2021, 7:14 AM · network
donner added inline comments to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 6:54 AM · network
donner added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

May you please add context to the diff?

Apr 26 2021, 6:47 AM · network
zlei updated the diff for D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

RFC 3927 2.7: Do not forward IPv4 packets with a Link-Local source address even if they have a multicast destination address.

Apr 26 2021, 6:32 AM · network
zlei added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Moving the code down fixes a couple of problems, but it introduces a new one: multicasts from link-locals can be forwarded if we are a multicast router. Maybe add a separate check in that section? We should still receive such multicasts.

Apr 26 2021, 6:01 AM · network
karels added a comment to D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.

Moving the code down fixes a couple of problems, but it introduces a new one: multicasts from link-locals can be forwarded if we are a multicast router. Maybe add a separate check in that section? We should still receive such multicasts.

Apr 26 2021, 4:57 AM · network
zlei updated the summary of D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 26 2021, 4:57 AM · network
zlei added a reviewer for D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses: network.
Apr 26 2021, 2:18 AM · network

Apr 25 2021

zlei requested review of D29968: Do not forward datagrams original from 169.254.0.0/16 link-local addresses.
Apr 25 2021, 9:38 AM · network

Apr 23 2021

wollman removed a member for network: wollman.
Apr 23 2021, 9:43 PM

Apr 20 2021

kfv_kfv.io added a member for network: kfv_kfv.io.
Apr 20 2021, 6:36 AM

Mar 28 2021

bdragon closed D29464: Fix panic when using BOOTP to resolve root path..
Mar 28 2021, 7:04 PM · network, PowerPC
melifaro accepted D29464: Fix panic when using BOOTP to resolve root path..
Mar 28 2021, 1:00 AM · network, PowerPC
bdragon requested review of D29464: Fix panic when using BOOTP to resolve root path..
Mar 28 2021, 12:33 AM · network, PowerPC

Mar 3 2021

herbert_mailbox.org added a watcher for network: herbert_mailbox.org.
Mar 3 2021, 2:28 PM

Feb 19 2021

rajeshasp added a watcher for network: rajeshasp.
Feb 19 2021, 6:33 AM

Feb 10 2021

jhb added inline comments to D24021: ipfw: Add me4 as to refer to an host's IPv4 address in add_src() and add_dst()..
Feb 10 2021, 8:56 PM · network

Jan 31 2021

mav closed D28428: cxgb(4): Remove assumption of physically contiguous mbufs..
Jan 31 2021, 5:56 PM · network
np accepted D28428: cxgb(4): Remove assumption of physically contiguous mbufs..
Jan 31 2021, 4:15 AM · network

Jan 30 2021

mmacy accepted D28428: cxgb(4): Remove assumption of physically contiguous mbufs..

LGTM

Jan 30 2021, 7:31 PM · network
mav requested review of D28428: cxgb(4): Remove assumption of physically contiguous mbufs..
Jan 30 2021, 3:53 PM · network

Jan 29 2021

donner added a comment to D25607: libalias: Use switch/case statements to compare IPv4 protocol type (TCP/UDP/ICMP).

While we are here, may you reformat the code to match style(9).
swicth and case does line up:

Jan 29 2021, 10:17 AM · network
philip added a comment to D25607: libalias: Use switch/case statements to compare IPv4 protocol type (TCP/UDP/ICMP).

I agree that this makes the code more readable.
The patch should be rebased though. There's a conflict in netinet/libalias/alias.c.

Jan 29 2021, 5:43 AM · network