Page MenuHomeFreeBSD

Correct loopback route for aliases IP addresses
AbandonedPublic

Authored by zlei on Jun 18 2021, 7:50 AM.
Referenced Files
Unknown Object (File)
Fri, Sep 19, 2:19 PM
Unknown Object (File)
Thu, Sep 18, 7:28 PM
Unknown Object (File)
Wed, Sep 17, 4:52 PM
Unknown Object (File)
Wed, Sep 17, 6:30 AM
Unknown Object (File)
Aug 10 2025, 1:49 AM
Unknown Object (File)
Aug 2 2025, 8:46 PM
Unknown Object (File)
Jun 24 2025, 3:08 PM
Unknown Object (File)
Jun 22 2025, 10:45 AM
Subscribers

Details

Reviewers
melifaro
Group Reviewers
network
Summary

A loopback route is required only when the logical interface is not a loopback.

PR: 256681

Test Plan

Create loopback, tun and tap clones, with IP address and IP aliases, verify the route table is expected.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

zlei requested review of this revision.Jun 18 2021, 7:50 AM
zlei created this revision.
sys/netinet/in.c
780

TODO: Need revision to reflect the change.

sys/netinet/in.c
938

Not sure if it is useful to routing daemons.

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

I believe this bug is also related: #255685

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

Can you please share the discussion? Thanks!

In D30811#693218, @zlei.huang_gmail.com wrote:

Can you please share the discussion? Thanks!

Unfortunately not. The mailing list archive is not accessible to me.

Abandoned since it works as intended.