The branch stable/13 has been updated by eugen:

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

commit d3ce1a1b3780bc88475f23c5005d814e1826f46a
Author:     Eugene Grosbein <[email protected]>
AuthorDate: 2024-04-01 03:31:51 +0000
Commit:     Eugene Grosbein <[email protected]>
CommitDate: 2024-04-09 10:22:38 +0000

    MFC: if_bridge: use IF_MINMTU
    
    Replace incorrect constant 576 with IF_MINMTU to check for minimum MTU.
    This unbreaks bridging tap interfaces with small mtu.
    
    MFC after:      1 week
---
 sys/net/if_bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 8982dc61aec5..662b425bc89e 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -945,7 +945,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
                break;
 
        case SIOCSIFMTU:
-               if (ifr->ifr_mtu < 576) {
+               if (ifr->ifr_mtu < IF_MINMTU) {
                        error = EINVAL;
                        break;
                }

Reply via email to