FreeBSD Bugzilla – Attachment 248813 Details for
Bug 277349
The net.inet.ip.source_address_validation should ignore CARP IP in backup state
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to not treat BACKUP address as a local
in_localip.diff (text/plain), 794 bytes, created by
Gleb Smirnoff
on 2024-02-28 15:41:52 UTC
(
hide
)
Description:
patch to not treat BACKUP address as a local
Filename:
MIME Type:
Creator:
Gleb Smirnoff
Created:
2024-02-28 15:41:52 UTC
Size:
794 bytes
patch
obsolete
>diff --git a/sys/netinet/in.c b/sys/netinet/in.c >index 1c6e87485ace..7da378e5ed62 100644 >--- a/sys/netinet/in.c >+++ b/sys/netinet/in.c >@@ -158,7 +158,9 @@ in_localip(struct in_addr in) > NET_EPOCH_ASSERT(); > > CK_LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) >- if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr) >+ if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr && >+ (ia->ia_ifa.ifa_carp == NULL || >+ carp_master_p(&ia->ia_ifa))) > return (true); > > return (false); >@@ -176,6 +178,8 @@ in_localip_fib(struct in_addr in, uint16_t fib) > > CK_LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) > if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr && >+ (ia->ia_ifa.ifa_carp == NULL || >+ carp_master_p(&ia->ia_ifa)) && > ia->ia_ifa.ifa_ifp->if_fib == fib) > return (true); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277349
: 248813