/AliOS-Things-master/components/linkkit/iot_coap/CoAPPacket/ |
A D | CoAPDeserialize_common.c | 57 unsigned short optlen = 0; in CoAPDeserialize_Option() local 61 optlen = (*ptr & 0x0F); in CoAPDeserialize_Option() 79 if (13 == optlen) { in CoAPDeserialize_Option() 80 optlen = 13 + *ptr; in CoAPDeserialize_Option() 82 } else if (14 == optlen) { in CoAPDeserialize_Option() 83 optlen = (*ptr << 8) + (*(ptr + 1)); in CoAPDeserialize_Option() 84 if (optlen + 269 < 269) { in CoAPDeserialize_Option() 87 optlen += 269; in CoAPDeserialize_Option() 90 option->len = optlen; in CoAPDeserialize_Option()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/api/ |
A D | sockets.c | 154 #define LWIP_SOCKOPT_CHECK_OPTLEN(optlen, opttype) do { if ((optlen) < sizeof(opttype)) { return EI… argument 156 LWIP_SOCKOPT_CHECK_OPTLEN(optlen, opttype); \ 159 LWIP_SOCKOPT_CHECK_OPTLEN(optlen, opttype); \ 2242 if ((NULL == optval) || (NULL == optlen)) { in lwip_getsockopt() 2267 LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen = *optlen; in lwip_getsockopt() 2286 *optlen = LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen; in lwip_getsockopt() 2318 &data->optlen); in lwip_getsockopt_callback() 2392 LWIP_SOCKOPT_CHECK_OPTLEN(*optlen, int); in lwip_getsockopt_impl() 2682 if (optlen > LWIP_SETGETSOCKOPT_MAXOPTLEN) { in lwip_setsockopt() 2692 LWIP_SETGETSOCKOPT_DATA_VAR_REF(data).optlen = optlen; in lwip_setsockopt() [all …]
|
/AliOS-Things-master/components/netmgr/net/include/sys/ |
A D | socket.h | 86 int net_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen); 87 int net_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen); 135 static inline int getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) in getsockopt() argument 137 return net_getsockopt(s, level, optname, optval, optlen); in getsockopt() 140 static inline int setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() argument 142 return net_setsockopt(s, level, optname, optval, optlen); in setsockopt() 216 #define setsockopt(s,level,optname,opval,optlen) net_setsockopt(s,level,optname,opval,optlen) argument 218 #define getsockopt(s,level,optname,opval,optlen) net_getsockopt(s,level,optname,opval,optlen) argument
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | tcp_out.c | 115 (p->len >= TCP_HLEN + optlen)); in tcp_output_alloc_header() 176 u8_t optlen = LWIP_TCP_OPT_LENGTH(optflags); in tcp_create_segment() local 187 seg->len = p->tot_len - optlen; in tcp_create_segment() 374 u8_t optlen = 0; in tcp_write() local 545 u16_t max_len = mss_local - optlen; in tcp_write() 754 u8_t optlen = 0; in tcp_enqueue_flags() local 795 optlen = LWIP_TCP_OPT_LENGTH(optflags); in tcp_enqueue_flags() 804 (p->len >= optlen)); in tcp_enqueue_flags() 893 optlen += 12; in tcp_get_num_sacks() 899 optlen += 8; in tcp_get_num_sacks() [all …]
|
A D | af_packet.c | 834 const void *optval, socklen_t optlen) in packet_setsockopt() argument 839 if(!optval || optlen < sizeof(int)) in packet_setsockopt() 885 int packet_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) in packet_getsockopt() argument
|
/AliOS-Things-master/components/netmgr/net/ |
A D | net_impl.c | 57 int net_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) in net_getsockopt() argument 60 return lwip_getsockopt(s, level, optname, optval, optlen); in net_getsockopt() 66 int net_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen) in net_setsockopt() argument 69 return lwip_setsockopt(s, level, optname, optval, optlen); in net_setsockopt()
|
/AliOS-Things-master/components/amp_adapter/include/ |
A D | aos_socket.h | 121 int aos_socket_setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); 135 int aos_socket_getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen);
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/ |
A D | sockets.h | 139 socklen_t optlen; member 490 int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen); 491 int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen); 524 #define setsockopt(s,level,optname,opval,optlen) lwip_setsockopt(s,level,optname,opval,optlen) argument 526 #define getsockopt(s,level,optname,opval,optlen) lwip_getsockopt(s,level,optname,opval,optlen) argument
|
A D | ip4.h | 85 u16_t optlen); 88 u16_t optlen);
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/ |
A D | ip4.h | 85 u16_t optlen); 88 u16_t optlen);
|
A D | sockets.h | 148 socklen_t optlen; member 556 int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen); 557 int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen);
|
A D | af_packet.h | 118 const void *optval, socklen_t optlen);
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/ |
A D | ip4.c | 774 u16_t optlen) argument 786 ip_options, optlen); 812 u16_t optlen) argument 830 if (optlen != 0) { 835 optlen_aligned = ((optlen + 3) & ~3); 844 MEMCPY(p->payload, ip_options, optlen); 845 if (optlen < optlen_aligned) { 847 memset(((char*)p->payload) + optlen, 0, optlen_aligned - optlen);
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | ccp.c | 1525 int optlen; in ccp_printpkt() local 1552 optlen = p[1]; in ccp_printpkt() 1553 if (optlen < 2 || optlen > len) in ccp_printpkt() 1556 len -= optlen; in ccp_printpkt() 1557 optend = p + optlen; in ccp_printpkt() 1561 if (optlen >= CILEN_MPPE) { in ccp_printpkt() 1583 if (optlen >= CILEN_DEFLATE) { in ccp_printpkt() 1597 if (optlen >= CILEN_BSD_COMPRESS) { in ccp_printpkt() 1606 if (optlen >= CILEN_PREDICTOR_1) { in ccp_printpkt() 1612 if (optlen >= CILEN_PREDICTOR_2) { in ccp_printpkt()
|
/AliOS-Things-master/components/lwip/ |
A D | README.md | 273 int getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen) 282 |optlen |指向option属性长度的指针| 286 int setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen) 295 |optlen |option属性的长度|
|