Skip to content

Commit 8dbdac8

Browse files
committed
extmod/modlwip: Fix setting of IP option SOF_BROADCAST.
Follow up to 25b89cb. Signed-off-by: Damien George <[email protected]>
1 parent 3637252 commit 8dbdac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extmod/modlwip.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1382,9 +1382,9 @@ STATIC mp_obj_t lwip_socket_setsockopt(size_t n_args, const mp_obj_t *args) {
13821382
mp_int_t val = mp_obj_get_int(args[3]);
13831383
// Options are common for UDP and TCP pcb's.
13841384
if (val) {
1385-
ip_set_option(socket->pcb.tcp, SOF_REUSEADDR);
1385+
ip_set_option(socket->pcb.tcp, opt);
13861386
} else {
1387-
ip_reset_option(socket->pcb.tcp, SOF_REUSEADDR);
1387+
ip_reset_option(socket->pcb.tcp, opt);
13881388
}
13891389
break;
13901390
}

0 commit comments

Comments
 (0)