Lines 158-164
in_localip(struct in_addr in)
Link Here
|
158 |
NET_EPOCH_ASSERT(); |
158 |
NET_EPOCH_ASSERT(); |
159 |
|
159 |
|
160 |
CK_LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) |
160 |
CK_LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) |
161 |
if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr) |
161 |
if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr && |
|
|
162 |
(ia->ia_ifa.ifa_carp == NULL || |
163 |
carp_master_p(&ia->ia_ifa))) |
162 |
return (true); |
164 |
return (true); |
163 |
|
165 |
|
164 |
return (false); |
166 |
return (false); |
Lines 176-181
in_localip_fib(struct in_addr in, uint16_t fib)
Link Here
|
176 |
|
178 |
|
177 |
CK_LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) |
179 |
CK_LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) |
178 |
if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr && |
180 |
if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr && |
|
|
181 |
(ia->ia_ifa.ifa_carp == NULL || |
182 |
carp_master_p(&ia->ia_ifa)) && |
179 |
ia->ia_ifa.ifa_ifp->if_fib == fib) |
183 |
ia->ia_ifa.ifa_ifp->if_fib == fib) |
180 |
return (true); |
184 |
return (true); |
181 |
|
185 |
|