| /lib/liblwip/src/include/lwip/ |
| D | def.h | 99 u16_t lwip_htons(u16_t x); 100 u16_t lwip_ntohs(u16_t x);
|
| D | api.h | 131 typedef void (* netconn_callback)(struct netconn *, enum netconn_evt, u16_t len); 222 u16_t *port, u8_t local); 226 err_t netconn_bind(struct netconn *conn, ip_addr_t *addr, u16_t port); 227 err_t netconn_connect(struct netconn *conn, ip_addr_t *addr, u16_t port); 236 ip_addr_t *addr, u16_t port);
|
| D | api_msg.h | 79 u16_t port; 84 u16_t *port;
|
| /lib/liblwip/src/core/ |
| D | memp.c | 129 const u16_t memp_sizes[MEMP_MAX] = { 137 static const u16_t memp_num[MEMP_MAX] = { 217 memp_overflow_check_element_overflow(struct memp *p, u16_t memp_type) in memp_overflow_check_element_overflow() 219 u16_t k; in memp_overflow_check_element_overflow() 250 memp_overflow_check_element_underflow(struct memp *p, u16_t memp_type) in memp_overflow_check_element_underflow() 252 u16_t k; in memp_overflow_check_element_underflow() 283 u16_t i, j; in memp_overflow_check_all() 310 u16_t i, j; in memp_overflow_init() 341 u16_t i, j; in memp_init()
|
| D | udp.c | 76 static u16_t udp_port = UDP_LOCAL_PORT_RANGE_START; 98 static u16_t 101 u16_t n = 0; in udp_new_port() 157 u16_t src, dest; 297 u16_t chklen = ntohs(udphdr->len); 465 u8_t have_chksum, u16_t chksum) 492 ip_addr_t *dst_ip, u16_t dst_port) 501 u16_t dst_port, u8_t have_chksum, u16_t chksum) 550 ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) 559 u16_t dst_port, struct netif *netif, u8_t have_chksum, [all …]
|
| D | dhcp.c | 160 static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port); 176 static void dhcp_option_short(struct dhcp *dhcp, u16_t value); 201 (void*)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp_handle_nak() 229 u16_t msecs; in dhcp_check() 256 (void*)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp_handle_offer() 287 u16_t msecs; in dhcp_select() 289 …elect(netif=%p) %c%c%"U16_F"\n", (void*)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp_select() 636 …start(netif=%p) %c%c%"U16_F"\n", (void*)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp_start() 836 u16_t msecs; in dhcp_decline() 876 u16_t msecs; in dhcp_discover() [all …]
|
| D | tcp_in.c | 67 static u16_t tcplen; 654 …LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"U16_F"\n", (u16_t)pcb->snd_queuel… in tcp_process() 687 u16_t old_cwnd; in tcp_process() 826 cseg->len = (u16_t)(next->tcphdr->seqno - seqno); in tcp_oos_insert_segment() 857 u16_t new_tot_len; in tcp_receive() 861 u16_t ooseq_qlen; in tcp_receive() 941 if ((u16_t)(pcb->cwnd + pcb->mss) > pcb->cwnd) { in tcp_receive() 975 pcb->acked = (u16_t)(ackno - pcb->lastack); in tcp_receive() 987 if ((u16_t)(pcb->cwnd + pcb->mss) > pcb->cwnd) { in tcp_receive() 992 u16_t new_cwnd = (pcb->cwnd + pcb->mss * pcb->mss / pcb->cwnd); in tcp_receive() [all …]
|
| D | tcp.c | 89 static u16_t tcp_port = TCP_LOCAL_PORT_RANGE_START; 124 static u16_t tcp_new_port(void); 433 tcp_bind(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port) in tcp_bind() 596 pcb->rcv_ann_wnd = (u16_t)new_rcv_ann_wnd; in tcp_update_rcv_ann_wnd() 611 tcp_recved(struct tcp_pcb *pcb, u16_t len) in tcp_recved() 646 static u16_t 650 u16_t n = 0; in tcp_new_port() 684 tcp_connect(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port, in tcp_connect() 689 u16_t old_local_port; in tcp_connect() 791 u16_t eff_wnd; in tcp_slowtmr() [all …]
|
| /lib/liblwip/src/include/ipv4/lwip/ |
| D | icmp.h | 82 PACK_STRUCT_FIELD(u16_t chksum); 83 PACK_STRUCT_FIELD(u16_t id); 84 PACK_STRUCT_FIELD(u16_t seqno);
|
| D | ip.h | 122 PACK_STRUCT_FIELD(u16_t _len); 124 PACK_STRUCT_FIELD(u16_t _id); 126 PACK_STRUCT_FIELD(u16_t _offset); 136 PACK_STRUCT_FIELD(u16_t _chksum); 189 u16_t optlen);
|
| D | ip_addr.h | 76 PACK_STRUCT_FIELD(u16_t addrw[2]); 226 #define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr)) 227 #define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr)) 228 #define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr)) 229 #define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))
|
| D | ip_frag.h | 58 u16_t datagram_len;
|
| /lib/liblwip/test/unit/tcp/ |
| D | tcp_helper.c | 42 u16_t src_port, u16_t dst_port, void* data, size_t data_len, in tcp_create_segment_wnd() 43 u32_t seqno, u32_t ackno, u8_t headerflags, u16_t wnd) in tcp_create_segment_wnd() 48 u16_t pbuf_len = (u16_t)(sizeof(struct ip_hdr) + sizeof(struct tcp_hdr) + data_len); in tcp_create_segment_wnd() 106 u16_t src_port, u16_t dst_port, void* data, size_t data_len, in tcp_create_segment() 131 u32_t seqno_offset, u32_t ackno_offset, u8_t headerflags, u16_t wnd) in tcp_create_rx_segment_wnd() 140 ip_addr_t* remote_ip, u16_t local_port, u16_t remote_port) in tcp_set_state()
|
| D | test_tcp.c | 81 u16_t data_len; in START_TEST() 82 u16_t remote_port = 0x100, local_port = 0x101; in START_TEST() 137 u16_t remote_port = 0x100, local_port = 0x101; in START_TEST() 318 u16_t remote_port = 0x100, local_port = 0x101; in START_TEST() 322 u16_t i, sent_total = 0; in START_TEST() 415 u16_t remote_port = 0x100, local_port = 0x101; in START_TEST() 419 u16_t i, sent_total = 0; in START_TEST() 505 u16_t remote_port = 0x100, local_port = 0x101; in test_tcp_tx_full_window_lost() 507 u16_t sent_total, i; in test_tcp_tx_full_window_lost() 542 u16_t initial_data_len = (TCP_WND - TCP_MSS) % TCP_MSS; in test_tcp_tx_full_window_lost() [all …]
|
| /lib/liblwip/src/core/ipv4/ |
| D | ip_frag.c | 94 PACK_STRUCT_FIELD(u16_t start); 95 PACK_STRUCT_FIELD(u16_t end); 109 static u16_t ip_reass_pbufcount; 132 LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n",(u16_t)r->timer)); in ip_reass_tmr() 160 u16_t pbufs_freed = 0; in ip_reass_free_complete_datagram() 335 u16_t offset,len; in ip_reass_chain_frag_into_datagram_and_validate() 482 u16_t offset, len; in ip_reass() 679 u16_t nfb; in ip_frag() 680 u16_t left, cop; in ip_frag() 681 u16_t mtu = netif->mtu; in ip_frag() [all …]
|
| D | autoip.c | 219 (u16_t)(netif->autoip->tried_llipaddr), ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), in autoip_create_addr() 262 (void*)netif, netif->name[0], netif->name[1], (u16_t)netif->num, in autoip_bind() 303 netif->name[1], (u16_t)netif->num)); in autoip_start() 348 autoip->ttw = (u16_t)(LWIP_AUTOIP_RAND(netif) % (PROBE_WAIT * AUTOIP_TICKS_PER_SECOND)); in autoip_start_probing() 405 (u16_t)(netif->autoip->state), netif->autoip->ttw)); in autoip_tmr() 426 netif->autoip->ttw = (u16_t)((LWIP_AUTOIP_RAND(netif) % in autoip_tmr()
|
| /lib/liblwip/src/core/snmp/ |
| D | mib2.c | 80 static void system_get_value(struct obj_def *od, u16_t len, void *value); 81 static u8_t system_set_test(struct obj_def *od, u16_t len, void *value); 82 static void system_set_value(struct obj_def *od, u16_t len, void *value); 84 static void interfaces_get_value(struct obj_def *od, u16_t len, void *value); 86 static void ifentry_get_value(struct obj_def *od, u16_t len, void *value); 88 static u8_t ifentry_set_test (struct obj_def *od, u16_t len, void *value); 89 static void ifentry_set_value (struct obj_def *od, u16_t len, void *value); 92 static void atentry_get_value(struct obj_def *od, u16_t len, void *value); 94 static void ip_get_value(struct obj_def *od, u16_t len, void *value); 95 static u8_t ip_set_test(struct obj_def *od, u16_t len, void *value); [all …]
|
| D | msg_in.c | 61 static void snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port); 62 static err_t snmp_pdu_header_check(struct pbuf *p, u16_t ofs, u16_t pdu_len, u16_t *ofs_ret, struct… 63 static err_t snmp_pdu_dec_varbindlist(struct pbuf *p, u16_t ofs, u16_t *ofs_ret, struct snmp_msg_ps… 164 …LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_msg_get_event: msg_ps->state==%"U16_F"\n",(u16_t)msg_ps->state)… in snmp_msg_get_event() 395 …LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_msg_getnext_event: msg_ps->state==%"U16_F"\n",(u16_t)msg_ps->st… in snmp_msg_getnext_event() 540 …LWIP_DEBUGF(SNMP_MSG_DEBUG, ("snmp_msg_set_event: msg_ps->state==%"U16_F"\n",(u16_t)msg_ps->state)… in snmp_msg_set_event() 822 snmp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, ip_addr_t *addr, u16_t port) in snmp_recv() 827 u16_t payload_len = p->tot_len; in snmp_recv() 828 u16_t payload_ofs = 0; in snmp_recv() 829 u16_t varbind_ofs = 0; in snmp_recv() [all …]
|
| D | mib_structs.c | 119 u16_t i; in snmp_netiftoifindex() 464 u16_t i; in snmp_search_tree() 559 u16_t i, len; in snmp_search_tree() 627 LWIP_DEBUGF(SNMP_MIB_DEBUG,("search failed node_type %"U16_F" unkown\n",(u16_t)node_type)); in snmp_search_tree() 697 u16_t i; in snmp_expand_tree() 941 u16_t i, len; in snmp_expand_tree() 1066 LWIP_DEBUGF(SNMP_MIB_DEBUG,("expand failed node_type %"U16_F" unkown\n",(u16_t)node_type)); in snmp_expand_tree()
|
| /lib/liblwip/src/include/ipv6/lwip/ |
| D | ip.h | 74 u16_t so_options; \ 92 u16_t flow2; 93 u16_t len; /* payload length */
|
| /lib/liblwip/src/api/ |
| D | netbuf.c | 107 netbuf_alloc(struct netbuf *buf, u16_t size) in netbuf_alloc() 150 netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size) in netbuf_ref() 193 netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len) in netbuf_data()
|
| D | sockets.c | 70 u16_t lastoffset; 76 u16_t sendevent; 78 u16_t errevent; 175 static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len); 317 u16_t port; in lwip_accept() 409 u16_t local_port; in lwip_bind() 493 u16_t remote_port; in lwip_connect() 563 u16_t buflen, copylen; in lwip_recvfrom() 566 u16_t port; in lwip_recvfrom() 643 copylen = (u16_t)len; in lwip_recvfrom() [all …]
|
| /lib/liblwip/src/netif/ppp/ |
| D | ppp_oe.c | 287 u16_t tag, len; in pppoe_dispatch_disc_pkt() 288 u16_t session, plen; in pppoe_dispatch_disc_pkt() 293 u16_t ac_cookie_len; in pppoe_dispatch_disc_pkt() 341 pb->tot_len = pb->len = (u16_t)off + plen; /* ignore trailing garbage */ in pppoe_dispatch_disc_pkt() 395 u16_t error_len = LWIP_MIN(len, sizeof(pppoe_error_tmp)-1); in pppoe_dispatch_disc_pkt() 537 (u16_t)ph->code, session); in pppoe_dispatch_disc_pkt() 539 printf("pppoe: unknown code (0x%"X16_F") session = 0x%"X16_F"\n", (u16_t)ph->code, session); in pppoe_dispatch_disc_pkt() 563 u16_t session, plen; in pppoe_data_input() 640 u16_t etype; in pppoe_output() 697 pb = pbuf_alloc(PBUF_LINK, (u16_t)(sizeof(struct eth_hdr) + PPPOE_HEADERLEN + len), PBUF_RAM); in pppoe_send_padi() [all …]
|
| D | auth.c | 571 auth_peer_fail(int unit, u16_t protocol) in auth_peer_fail() 588 auth_peer_success(int unit, u16_t protocol, char *name, int namelen) in auth_peer_success() 627 auth_withpeer_fail(int unit, u16_t protocol) in auth_withpeer_fail() 651 auth_withpeer_success(int unit, u16_t protocol) in auth_withpeer_success() 686 np_up(int unit, u16_t proto) in np_up() 716 np_down(int unit, u16_t proto) in np_down() 731 np_finished(int unit, u16_t proto) in np_finished()
|
| /lib/liblwip/src/netif/ |
| D | slipif.c | 98 u16_t i, recved; 119 u16_t i; in slipif_output() 128 …LWIP_DEBUGF(SLIP_DEBUG, ("slipif_output(%"U16_F"): sending %"U16_F" bytes\n", (u16_t)netif->num, p… in slipif_output() 323 LWIP_DEBUGF(SLIP_DEBUG, ("slipif_init: netif->num=%"U16_F"\n", (u16_t)netif->num)); in slipif_init()
|