cc3200: Add IPPROTO_SEC to be able to create secure sockets.
This commit is contained in:
parent
b1f68685ec
commit
f7a26472af
@ -430,6 +430,7 @@ STATIC const mp_map_elem_t mp_module_usocket_globals_table[] = {
|
|||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_SOCK_DGRAM), MP_OBJ_NEW_SMALL_INT(SOCK_DGRAM) },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_SOCK_DGRAM), MP_OBJ_NEW_SMALL_INT(SOCK_DGRAM) },
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_SOCK_RAW), MP_OBJ_NEW_SMALL_INT(SOCK_RAW) },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_SOCK_RAW), MP_OBJ_NEW_SMALL_INT(SOCK_RAW) },
|
||||||
|
|
||||||
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_SEC), MP_OBJ_NEW_SMALL_INT(SL_SEC_SOCKET) },
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_TCP), MP_OBJ_NEW_SMALL_INT(IPPROTO_TCP) },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_TCP), MP_OBJ_NEW_SMALL_INT(IPPROTO_TCP) },
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_UDP), MP_OBJ_NEW_SMALL_INT(IPPROTO_UDP) },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_UDP), MP_OBJ_NEW_SMALL_INT(IPPROTO_UDP) },
|
||||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_RAW), MP_OBJ_NEW_SMALL_INT(IPPROTO_RAW) },
|
{ MP_OBJ_NEW_QSTR(MP_QSTR_IPPROTO_RAW), MP_OBJ_NEW_SMALL_INT(IPPROTO_RAW) },
|
||||||
|
@ -224,6 +224,7 @@ Q(AF_INET6)
|
|||||||
Q(SOCK_STREAM)
|
Q(SOCK_STREAM)
|
||||||
Q(SOCK_DGRAM)
|
Q(SOCK_DGRAM)
|
||||||
Q(SOCK_RAW)
|
Q(SOCK_RAW)
|
||||||
|
Q(IPPROTO_SEC)
|
||||||
Q(IPPROTO_TCP)
|
Q(IPPROTO_TCP)
|
||||||
Q(IPPROTO_UDP)
|
Q(IPPROTO_UDP)
|
||||||
Q(IPPROTO_RAW)
|
Q(IPPROTO_RAW)
|
||||||
|
Loading…
Reference in New Issue
Block a user