comparison src/if-sun.c @ 5557:e65d193a1960 draft

Linux: Support wireless IP roaming This is achieved by checking that the interface is wireless, IFF_UP and IFF_LOWER_UP are present, but IFF_RUNNING is missing. This gives exactly the same support as modern NetBSD when carrier loss is detected, but without the address verifications when the carrier comes back as that needs to be handled in the kernel. While IP setup is maintained, other configuration data is discarded. Note that this should be improved in the future. Thanks to Boris Krasnovskiy <borkra@gmail.com> for helping with this.
author Roy Marples <roy@marples.name>
date Sat, 12 Dec 2020 13:12:26 +0000
parents 8e2b8ce8c972
children
comparison
equal deleted inserted replaced
5556:99bfd2eb77ab 5557:e65d193a1960
243 if (kcp != NULL) 243 if (kcp != NULL)
244 kstat_close(kcp); 244 kstat_close(kcp);
245 return LINK_UNKNOWN; 245 return LINK_UNKNOWN;
246 } 246 }
247 247
248 bool
249 if_roaming(__unused struct interface *ifp)
250 {
251
252 return false;
253 }
254
248 int 255 int
249 if_mtu_os(const struct interface *ifp) 256 if_mtu_os(const struct interface *ifp)
250 { 257 {
251 dlpi_handle_t dh; 258 dlpi_handle_t dh;
252 dlpi_info_t dlinfo; 259 dlpi_info_t dlinfo;