The branch main has been updated by ronald:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3a2d4a1017e57f19f5a101da15acbdd861d353ae

commit 3a2d4a1017e57f19f5a101da15acbdd861d353ae
Author:     Ronald Klop <ron...@freebsd.org>
AuthorDate: 2025-08-06 10:59:33 +0000
Commit:     Ronald Klop <ron...@freebsd.org>
CommitDate: 2025-08-06 11:07:14 +0000

    Change the default of net.link.epair.ether_gen_addr 0 -> 1.
    
    Now if_epair(4) uses ether_gen_addr(9) to generate a stable MAC.
    This feature was committed in 590493c1419092.
    
    Approved by:    kp
    MFC after:      never
    Relnotes:       yes
    Differential Revision:  https://reviews.freebsd.org/D51157
---
 UPDATING           | 6 ++++++
 sys/net/if_epair.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/UPDATING b/UPDATING
index 60c974198934..1e729624f1e9 100644
--- a/UPDATING
+++ b/UPDATING
@@ -27,6 +27,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
        world, or to merely disable the most expensive debugging functionality
        at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20250806:
+       if_epair(4) now uses ether_gen_addr(9) to generate a stable MAC
+       address.
+       To keep using the random address, set the loader tunable
+       net.link.epair.ether_gen_addr=0.
+
 20250804:
        bsdconfig (including sysrc(8)) has moved to the new bsdconfig
        package.  If you use pkgbase and wish to use bsdconfig, you should
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c
index 4d35584925a1..a213a84e17db 100644
--- a/sys/net/if_epair.c
+++ b/sys/net/if_epair.c
@@ -102,7 +102,7 @@ SYSCTL_DECL(_net_link);
 static SYSCTL_NODE(_net_link, OID_AUTO, epair, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
        "Pair of virtual cross-over connected Ethernet-like interfaces");
 
-static bool use_ether_gen_addr = false;
+static bool use_ether_gen_addr = true;
 SYSCTL_BOOL(_net_link_epair, OID_AUTO, ether_gen_addr, CTLFLAG_RWTUN,
        &use_ether_gen_addr, false,
        "Generate MAC with FreeBSD OUI using ether_gen_addr(9)");

Reply via email to