mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-14 20:25:08 +02:00
Fix fast roaming when local IP address has changed
This commit is contained in:
parent
ecebe8a755
commit
4c188ac861
1 changed files with 10 additions and 0 deletions
10
src/send.c
10
src/send.c
|
@ -122,6 +122,16 @@ static void send_type(fastd_context_t *ctx, const fastd_socket_t *sock, const fa
|
|||
ret = sendmsg(sock->fd, &msg, 0);
|
||||
} while (ret < 0 && errno == EINTR);
|
||||
|
||||
if (ret < 0 && errno == EINVAL && msg.msg_controllen) {
|
||||
pr_debug2(ctx, "sendmsg failed, trying again without pktinfo");
|
||||
msg.msg_control = NULL;
|
||||
msg.msg_controllen = 0;
|
||||
|
||||
do {
|
||||
ret = sendmsg(sock->fd, &msg, 0);
|
||||
} while (ret < 0 && errno == EINTR);
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
switch (errno) {
|
||||
case EAGAIN:
|
||||
|
|
Loading…
Add table
Reference in a new issue