Commit 8dbdac8c authored by Damien George's avatar Damien George

extmod/modlwip: Fix setting of IP option SOF_BROADCAST.

Follow up to 25b89cbe.
Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 3637252b
......@@ -1382,9 +1382,9 @@ STATIC mp_obj_t lwip_socket_setsockopt(size_t n_args, const mp_obj_t *args) {
mp_int_t val = mp_obj_get_int(args[3]);
// Options are common for UDP and TCP pcb's.
if (val) {
ip_set_option(socket->pcb.tcp, SOF_REUSEADDR);
ip_set_option(socket->pcb.tcp, opt);
} else {
ip_reset_option(socket->pcb.tcp, SOF_REUSEADDR);
ip_reset_option(socket->pcb.tcp, opt);
}
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment