Home
last modified time | relevance | path

Searched refs:len (Results 51 – 75 of 105) sorted by relevance

12345

/lib/liblwip/src/core/
Ddhcp.c1310 u8_t len; in dhcp_option_hostname() local
1316 len = LWIP_MIN(namelen, available); in dhcp_option_hostname()
1317 dhcp_option(dhcp, DHCP_OPTION_HOSTNAME, len); in dhcp_option_hostname()
1318 while (len--) { in dhcp_option_hostname()
1351 if (p->len < DHCP_SNAME_OFS) { in dhcp_parse_reply()
1368 while((q != NULL) && (options_idx >= q->len)) { in dhcp_parse_reply()
1369 options_idx -= q->len; in dhcp_parse_reply()
1370 options_idx_max -= q->len; in dhcp_parse_reply()
1382 u8_t len; in dhcp_parse_reply() local
1387 if (offset + 1 < q->len) { in dhcp_parse_reply()
[all …]
/lib/liblwip/src/api/
Dapi_lib.c345 u16_t len; in netconn_recv_data() local
386 msg.msg.msg.r.len = ((struct pbuf *)buf)->tot_len; in netconn_recv_data()
388 msg.msg.msg.r.len = 1; in netconn_recv_data()
401 len = ((struct pbuf *)buf)->tot_len; in netconn_recv_data()
410 len = netbuf_len((struct netbuf *)buf); in netconn_recv_data()
415 SYS_ARCH_DEC(conn->recv_avail, len); in netconn_recv_data()
418 API_EVENT(conn, NETCONN_EVT_RCVMINUS, len); in netconn_recv_data()
420 LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv_data: received %p, len=%"U16_F"\n", buf, len)); in netconn_recv_data()
528 msg.msg.msg.r.len = length; in netconn_recved()
622 msg.msg.msg.w.len = size; in netconn_write_partly()
[all …]
/lib/liblwip/src/netif/ppp/
Dvj.c219 if (hlen > pb->len) { in vj_compress_tcp()
242 if (hlen > pb->len) { in vj_compress_tcp()
436 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
438 > nb->len in vj_uncompress_uncomp()
441 IPH_PROTO(ip), hlen, nb->len)); in vj_uncompress_uncomp()
561 if (n0->len < vjlen) { in vj_uncompress_tcp()
567 n0->len, vjlen)); in vj_uncompress_tcp()
599 np = pbuf_alloc(PBUF_RAW, n0->len + cs->cs_hlen, PBUF_POOL); in vj_uncompress_tcp()
613 MEMCPY(q->payload, bufptr, q->len); in vj_uncompress_tcp()
614 bufptr += q->len; in vj_uncompress_tcp()
[all …]
Dauth.c1077 int len; in get_secret() local
1090 len = (int)strlen(ppp_settings.passwd); in get_secret()
1091 if (len > MAXSECRETLEN) { in get_secret()
1093 len = MAXSECRETLEN; in get_secret()
1096 BCOPY(ppp_settings.passwd, secret, len); in get_secret()
1097 *secret_len = len; in get_secret()
1101 int ret = 0, len; in get_secret()
1117 len = strlen(secbuf); in get_secret()
1118 if (len > MAXSECRETLEN) { in get_secret()
1120 len = MAXSECRETLEN; in get_secret()
[all …]
Dppp_impl.h243 void (*input) (int unit, u_char *pkt, int len);
256 int (*printpkt) (u_char *pkt, int len,
260 void (*datainput) (int unit, u_char *pkt, int len);
270 int (*active_pkt) (u_char *pkt, int len);
/lib/liblwip/src/core/ipv4/
Dip_frag.c335 u16_t offset,len; in ip_reass_chain_frag_into_datagram_and_validate() local
341 len = ntohs(IPH_LEN(fraghdr)) - IPH_HL(fraghdr) * 4; in ip_reass_chain_frag_into_datagram_and_validate()
352 iprh->end = offset + len; in ip_reass_chain_frag_into_datagram_and_validate()
482 u16_t offset, len; in ip_reass() local
498 len = ntohs(IPH_LEN(fraghdr)) - IPH_HL(fraghdr) * 4; in ip_reass()
560 ipr->datagram_len = offset + len; in ip_reass()
702 rambuf->tot_len = rambuf->len = mtu; in ip_frag()
743 (rambuf->len == rambuf->tot_len) && (rambuf->next == NULL)); in ip_frag()
764 (p->len >= (IP_HLEN))); in ip_frag()
770 p->len -= poff; in ip_frag()
[all …]
Dip_addr.c285 int len = 0; in ipaddr_ntoa_r() local
299 if (len++ >= buflen) { in ipaddr_ntoa_r()
304 if (len++ >= buflen) { in ipaddr_ntoa_r()
Dicmp.c162 (r->len >= hlen + sizeof(struct icmp_echo_hdr))); in icmp_input()
307 (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); in icmp_send_response()
328 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
/sys/include/
Dthread.h143 int Copy_In(uintptr_t fromuser, void *tokernel, uintptr_t len);
144 int Copy_Out(void *fromkernel, uintptr_t touser, uintptr_t len);
145 int Copy_StrIn(uintptr_t fromuser, void *tokernel, uintptr_t len);
146 int Copy_StrOut(void *fromkernel, uintptr_t touser, uintptr_t len);
Dloader.h8 bool Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len);
Dmbuf.h17 uint32_t len; member
/sys/kern/
Dslab.c66 uintptr_t len = XMem_GetLength(slab->xmem); in SlabExtend() local
75 if (!XMem_Allocate(slab->xmem, len + inc)) { in SlabExtend()
84 SlabElement *elem = (SlabElement *)(base + len + i * realObjSz); in SlabExtend()
Dsyscall.c178 Syscall_MMap(uint64_t addr, uint64_t len, uint64_t prot) in Syscall_MMap() argument
183 status = PMap_AllocMap(cur->space, addr, len, PTE_W); in Syscall_MMap()
194 Syscall_MUnmap(uint64_t addr, uint64_t len) in Syscall_MUnmap() argument
199 for (p = 0; p < len; p += PGSIZE) in Syscall_MUnmap()
204 PMap_Unmap(cur->space, addr, len /= PGSIZE); in Syscall_MUnmap()
211 Syscall_MProtect(uint64_t addr, uint64_t len, uint64_t prot) in Syscall_MProtect() argument
358 Syscall_ReadDir(uint64_t fd, char *user_buf, size_t len, uintptr_t user_off) in Syscall_ReadDir() argument
381 rstatus = VFS_ReadDir(handle->vnode, user_buf, len, &offset); in Syscall_ReadDir()
Dmalloc.c47 Malloc_Alloc(Heap *heap, uint64_t len) in Malloc_Alloc() argument
/sys/dev/
De1000.c97 volatile uint16_t len; // Length member
112 volatile uint16_t len; // Length member
328 uint16_t len = dev->rxDesc[dev->rxTail].len; in E1000_Dequeue() local
332 memcpy((void *)mbuf->vaddr, data, len); in E1000_Dequeue()
366 memcpy(data, (void *)mbuf->vaddr, mbuf->len); in E1000_Enqueue()
367 dev->txDesc[dev->txTail].len = mbuf->len; in E1000_Enqueue()
Dahci.c254 AHCI_IssueCommand(AHCI *ahci, int port, SGArray *sga, void *cfis, int len) in AHCI_IssueCommand() argument
262 memcpy((void *)&ct->cfis[0], cfis, len); in AHCI_IssueCommand()
266 for (i = 0; i < sga->len; i++) in AHCI_IssueCommand()
276 cl->cmds[0].prdtl = sga->len; in AHCI_IssueCommand()
277 cl->cmds[0].flag = len >> 2; in AHCI_IssueCommand()
313 sga.len = 1; in AHCI_IdentifyPort()
/lib/liblwip/src/netif/
Dslipif.c136 for (i = 0; i < q->len; i++) { in slipif_output()
245 if (priv->i >= priv->p->len) { in slipif_rxbyte()
248 if (priv->p->next != NULL && priv->p->next->len > 0) { in slipif_rxbyte()
418 while ((q->len != q->tot_len) && (q->next != NULL)) { in slipif_process_rxqueue()
497 slipif_received_bytes(struct netif *netif, u8_t *data, u8_t len) in slipif_received_bytes() argument
504 for (i = 0; i < len; i++, rxdata++) { in slipif_received_bytes()
/lib/liblwip/src/include/lwip/
Dtcp_impl.h87 ((tpcb)->unsent->len >= (tpcb)->mss))) || \
177 #define TCPH_HDRLEN_SET(phdr, len) (phdr)->_hdrlen_rsvd_flags = htons(((len) << 12) | TCPH_FLAGS(ph… argument
179 #define TCPH_HDRLEN_FLAGS_SET(phdr, len, flags) (phdr)->_hdrlen_rsvd_flags = htons(((len) << 12) | … argument
184 #define TCP_TCPLEN(seg) ((seg)->len + ((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0))
280 u16_t len; /* the TCP length of this segment */ member
Dapi_msg.h90 size_t len; member
98 u32_t len; member
Dtcp.h87 u16_t len);
341 void tcp_recved (struct tcp_pcb *pcb, u16_t len);
358 err_t tcp_write (struct tcp_pcb *pcb, const void *dataptr, u16_t len,
Dsnmp.h96 u8_t len; member
101 void snmp_set_sysdesr(u8_t* str, u8_t* len);
234 #define snmp_set_sysdesr(str, len) argument
Dopt.h84 #define MEMCPY(dst,src,len) memcpy(dst,src,len) argument
92 #define SMEMCPY(dst,src,len) memcpy(dst,src,len) argument
/lib/liblwip/src/core/ipv6/
Dip6.c210 pbuf_realloc(p, IP_HLEN + ntohs(iphdr->len)); in ip_input()
268 LWIP_DEBUGF(IP_DEBUG, ("len %"U16_F" tot_len %"U16_F"\n", p->len, p->tot_len)); in ip_output_if()
275 LWIP_DEBUGF(IP_DEBUG, ("len %"U16_F" tot_len %"U16_F"\n", p->len, p->tot_len)); in ip_output_if()
284 iphdr->len = htons(p->tot_len - IP_HLEN); in ip_output_if()
366 ntohs(iphdr->len), in ip_debug_print()
/lib/liblwip/src/include/netif/
Dslipif.h73 void slipif_received_bytes(struct netif *netif, u8_t *data, u8_t len);
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c53 EXPECT_RETNULL(p->len >= (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
56 EXPECT_RETNULL(p->len > (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
60 memset(q->payload, 0, q->len); in tcp_create_segment_wnd()
188 for(i = 0; i < q->len; i++) { in test_tcp_counters_check_rxdata()

12345