[Bug 264722] Incorrect source address used in non default fib

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Jun 2022 19:34:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264722

            Bug ID: 264722
           Summary: Incorrect source address used in non default fib
           Product: Base System
           Version: 12.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: paul.reynolds@redcom.com

Using a non-default fib, the source address used in ipv4 packets is 0.0.0.0.

Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            10.78.2.1          UGS        eth0
10.78.2.0/24       link#2             U          eth0
10.78.2.104        link#2             UHS         lo0
127.0.0.1          link#1             UH          lo0
172.17.1.0/24      link#3             U          eth1
172.17.1.2         link#3             UHS         lo0

Routing tables (fib: 1)

Internet:
Destination        Gateway            Flags     Netif Expire
default            10.78.2.1          UGS        eth0
10.78.2.0/24       08:00:27:3b:12:12  US         eth0
10.78.2.104        lo0                UHS         lo0
127.0.0.1          lo0                UHS         lo0
172.17.1.0/24      00:15:5d:02:30:0d  US         eth1
172.17.1.2         lo0                UHS         lo0

The following command works correctly:
setfib 0 ping 172.17.1.4

This command generates ICMP packets with 0.0.0.0 as the source IP:
setfib 1 ping 172.17.1.4

While I can't rule out setup issues, this used to work correctly in FreeBSD
12.2.

-- 
You are receiving this mail because:
You are the assignee for the bug.