/third_party/lwip/src/core/ |
D | pbuf.c | 95 pbuf_skip_const(const struct pbuf *in, u16_t in_offset, u16_t *out_offset); 179 pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_… in pbuf_init_alloced_pbuf() 224 pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) in pbuf_alloc() 227 u16_t offset = (u16_t)layer; in pbuf_alloc() 237 u16_t rem_len; /* remaining length */ in pbuf_alloc() 242 u16_t qlen; in pbuf_alloc() 253 qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); in pbuf_alloc() 268 rem_len = (u16_t)(rem_len - qlen); in pbuf_alloc() 327 pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type) in pbuf_alloc_reference() 363 pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p, in pbuf_alloced_custom() [all …]
|
D | inet_chksum.c | 61 u16_t lwip_standard_chksum(const void *dataptr, int len); 79 u16_t 83 u16_t src; in lwip_standard_chksum() 113 return lwip_htons((u16_t)acc); in lwip_standard_chksum() 132 u16_t 136 const u16_t *ps; in lwip_standard_chksum() 137 u16_t t = 0; in lwip_standard_chksum() 148 ps = (const u16_t *)(const void *)pb; in lwip_standard_chksum() 172 return (u16_t)sum; in lwip_standard_chksum() 188 u16_t [all …]
|
/third_party/lwip/src/include/lwip/ |
D | pbuf.h | 200 u16_t tot_len; 203 u16_t len; 275 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type); 276 struct pbuf *pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type); 278 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, 280 u16_t payload_mem_len); 282 void pbuf_realloc(struct pbuf *p, u16_t size); 291 struct pbuf *pbuf_free_header(struct pbuf *q, u16_t size); 294 u16_t pbuf_clen(const struct pbuf *p); 299 err_t pbuf_copy_partial_pbuf(struct pbuf *p_to, const struct pbuf *p_from, u16_t copy_len, u16_t of… [all …]
|
D | inet_chksum.h | 74 u16_t inet_chksum(const void *dataptr, u16_t len); 75 u16_t inet_chksum_pbuf(struct pbuf *p); 77 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len); 81 u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 83 u16_t inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, 84 u16_t proto_len, u16_t chksum_len, const ip4_addr_t *src, const ip4_addr_t *dest); 88 u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 90 u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, 91 u16_t chksum_len, const ip6_addr_t *src, const ip6_addr_t *dest); 95 u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, [all …]
|
D | udp.h | 78 const ip_addr_t *addr, u16_t port); 91 u16_t local_port, remote_port; 106 u16_t chksum_len_rx, chksum_len_tx; 127 u16_t port); 130 u16_t port); 135 const ip_addr_t *dst_ip, u16_t dst_port, 138 const ip_addr_t *dst_ip, u16_t dst_port, 141 const ip_addr_t *dst_ip, u16_t dst_port); 146 const ip_addr_t *dst_ip, u16_t dst_port, 148 u16_t chksum); [all …]
|
D | def.h | 86 #define lwip_htons(x) ((u16_t)(x)) 87 #define lwip_ntohs(x) ((u16_t)(x)) 90 #define PP_HTONS(x) ((u16_t)(x)) 91 #define PP_NTOHS(x) ((u16_t)(x)) 96 u16_t lwip_htons(u16_t x); 108 #define PP_HTONS(x) ((u16_t)((((x) & (u16_t)0x00ffU) << 8) | (((x) & (u16_t)0xff00U) >> 8)))
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_msg.h | 67 u16_t varbind_count; 77 …rator_init(struct snmp_varbind_enumerator *enumerator, struct pbuf *p, u16_t offset, u16_t length); 86 u16_t source_port; 92 u16_t community_strlen; 132 u16_t inbound_varbind_offset; 133 u16_t inbound_varbind_len; 134 u16_t inbound_padding_len; 138 u16_t outbound_pdu_offset; 139 u16_t outbound_error_status_offset; 140 u16_t outbound_error_index_offset; [all …]
|
D | snmp_asn1.h | 78 u16_t value_len; /* encoded length of the value */ 85 err_t snmp_asn1_dec_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value); 86 err_t snmp_asn1_dec_s32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, s32_t *value); 87 err_t snmp_asn1_dec_oid(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *oid, u8_t *oid_len,… 88 …nmp_asn1_dec_raw(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u8_t *buf, u16_t *buf_len, u16_t… 92 void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed); 93 void snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed); 94 void snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed); 95 void snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed); 96 err_t snmp_asn1_enc_oid(struct snmp_pbuf_stream *pbuf_stream, const u32_t *oid, u16_t oid_len); [all …]
|
D | snmp_mib2_system.c | 62 static const u16_t *sysdescr_len = NULL; /* use strlen for determining len */ 67 static const u16_t *syscontact_len = NULL; /* use strlen for determining len */ 69 static u16_t *syscontact_wr_len = NULL; /* if writable, points to the same buffer as s… 70 static u16_t syscontact_bufsize = 0; /* 0=not writable */ 75 static const u16_t *sysname_len = NULL; /* use strlen for determining len */ 77 static u16_t *sysname_wr_len = NULL; /* if writable, points to the same buffer as s… 78 static u16_t sysname_bufsize = 0; /* 0=not writable */ 83 static const u16_t *syslocation_len = NULL; /* use strlen for determining len */ 85 static u16_t *syslocation_wr_len = NULL; /* if writable, points to the same buffer as … 86 static u16_t syslocation_bufsize = 0; /* 0=not writable */ [all …]
|
D | snmp_asn1.c | 133 snmp_asn1_enc_raw(struct snmp_pbuf_stream *pbuf_stream, const u8_t *raw, u16_t raw_len) in snmp_asn1_enc_raw() 151 snmp_asn1_enc_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, u32_t value) in snmp_asn1_enc_u32t() 183 snmp_asn1_enc_s32t(struct snmp_pbuf_stream *pbuf_stream, u16_t octets_needed, s32_t value) in snmp_asn1_enc_s32t() 206 snmp_asn1_enc_oid(struct snmp_pbuf_stream *pbuf_stream, const u32_t *oid, u16_t oid_len) in snmp_asn1_enc_oid() 253 snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed) in snmp_asn1_enc_length_cnt() 275 snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed) in snmp_asn1_enc_u32t_cnt() 299 snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed) in snmp_asn1_enc_s32t_cnt() 323 snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed) in snmp_asn1_enc_oid_cnt() 421 snmp_asn1_dec_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value) in snmp_asn1_dec_u32t() 459 snmp_asn1_dec_s32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, s32_t *value) in snmp_asn1_dec_s32t() [all …]
|
/third_party/lwip/src/apps/netbiosns/ |
D | netbiosns.c | 102 PACK_STRUCT_FIELD(u16_t trans_id); 103 PACK_STRUCT_FIELD(u16_t flags); 104 PACK_STRUCT_FIELD(u16_t questions); 105 PACK_STRUCT_FIELD(u16_t answerRRs); 106 PACK_STRUCT_FIELD(u16_t authorityRRs); 107 PACK_STRUCT_FIELD(u16_t additionalRRs); 122 PACK_STRUCT_FIELD(u16_t type); 123 PACK_STRUCT_FIELD(u16_t cls); 138 PACK_STRUCT_FIELD(u16_t type); 139 PACK_STRUCT_FIELD(u16_t cls); [all …]
|
/third_party/lwip/src/core/ipv4/ |
D | ip4_frag.c | 100 PACK_STRUCT_FIELD(u16_t start); 101 PACK_STRUCT_FIELD(u16_t end); 115 static u16_t ip_reass_pbufcount; 138 LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer)); in ip_reass_tmr() 166 u16_t pbufs_freed = 0; in ip_reass_free_complete_datagram() 167 u16_t clen; in ip_reass_free_complete_datagram() 189 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip_reass_free_complete_datagram() 205 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip_reass_free_complete_datagram() 211 ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed); in ip_reass_free_complete_datagram() 368 u16_t offset, len; in ip_reass_chain_frag_into_datagram_and_validate() [all …]
|
D | dhcp.c | 208 static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t … 217 …dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len); 219 static u16_t dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len); 221 static u16_t dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value); 222 static u16_t dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value); 223 static u16_t dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value); 225 static u16_t dhcp_option_hostname(u16_t options_out_len, u8_t *options, struct netif *netif); 228 static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out); 288 (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp_handle_nak() 313 u16_t msecs; in dhcp_check() [all …]
|
/third_party/lwip/src/core/ipv6/ |
D | dhcp6.c | 111 u16_t val_start; 112 u16_t val_length; 135 static void dhcp6_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t… 320 …less(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp6_enable_stateless() 350 …able(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); in dhcp6_disable() 378 u16_t opt_len_alloc, u16_t *options_out_len) in dhcp6_create_msg() 414 static u16_t 415 dhcp6_option_short(u16_t options_out_len, u8_t *options, u16_t value) in dhcp6_option_short() 422 static u16_t 423 dhcp6_option_optionrequest(u16_t options_out_len, u8_t *options, const u16_t *req_options, in dhcp6_option_optionrequest() [all …]
|
D | ip6_frag.c | 94 PACK_STRUCT_FIELD(u16_t start); 95 PACK_STRUCT_FIELD(u16_t end); 104 static u16_t ip6_reass_pbufcount; 171 u16_t pbufs_freed = 0; in ip6_reass_free_complete_datagram() 172 u16_t clen; in ip6_reass_free_complete_datagram() 204 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip6_reass_free_complete_datagram() 220 pbufs_freed = (u16_t)(pbufs_freed + clen); in ip6_reass_free_complete_datagram() 243 ip6_reass_pbufcount = (u16_t)(ip6_reass_pbufcount - pbufs_freed); in ip6_reass_free_complete_datagram() 297 u16_t offset, len, start, end; in ip6_reass() 299 u16_t clen; in ip6_reass() [all …]
|
/third_party/lwip/src/include/lwip/priv/ |
D | altcp_priv.h | 60 typedef void (*altcp_recved_fn)(struct altcp_pcb *conn, u16_t len); 61 typedef err_t (*altcp_bind_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port); 62 typedef err_t (*altcp_connect_fn)(struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altc… 70 typedef err_t (*altcp_write_fn)(struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apifla… 73 typedef u16_t (*altcp_mss_fn)(struct altcp_pcb *conn); 74 typedef u16_t (*altcp_sndbuf_fn)(struct altcp_pcb *conn); 75 typedef u16_t (*altcp_sndqueuelen_fn)(struct altcp_pcb *conn); 84 …rr_t (*altcp_get_tcp_addrinfo_fn)(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port); 86 typedef u16_t (*altcp_get_port_fn)(struct altcp_pcb *conn, int local); 129 void altcp_default_recved(struct altcp_pcb *conn, u16_t len); [all …]
|
/third_party/lwip/src/include/lwip/apps/ |
D | snmp_mib2.h | 63 void snmp_mib2_set_sysdescr(const u8_t* str, const u16_t* len); /* read-only be defintion */ 64 void snmp_mib2_set_syscontact(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize); 65 void snmp_mib2_set_syscontact_readonly(const u8_t *ocstr, const u16_t *ocstrlen); 66 void snmp_mib2_set_sysname(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize); 67 void snmp_mib2_set_sysname_readonly(const u8_t *ocstr, const u16_t *ocstrlen); 68 void snmp_mib2_set_syslocation(u8_t *ocstr, u16_t *ocstrlen, u16_t bufsize); 69 void snmp_mib2_set_syslocation_readonly(const u8_t *ocstr, const u16_t *ocstrlen);
|
D | mqtt_priv.h | 57 u16_t pkt_id; 59 u16_t timeout_diff; 64 u16_t put; 65 u16_t get; 73 u16_t cyclic_tick; 74 u16_t keep_alive; 75 u16_t server_watchdog; 77 u16_t pkt_id_seq; 79 u16_t inpub_pkt_id;
|
/third_party/lwip/src/apps/smtp/ |
D | smtp.c | 227 u16_t state; 237 u16_t timer; 244 u16_t from_len; 248 u16_t to_len; 252 u16_t subject_len; 256 u16_t body_len; 258 u16_t body_sent; 281 static u16_t smtp_server_port = SMTP_DEFAULT_PORT; 301 static err_t smtp_tcp_sent(void *arg, struct altcp_pcb *pcb, u16_t len); 309 static enum smtp_session_state smtp_prepare_mail(struct smtp_session *s, u16_t *tx_buf_len); [all …]
|
/third_party/lwip/src/apps/tftp/ |
D | tftp_server.c | 85 u16_t port; 88 u16_t blknum; 118 send_error(const ip_addr_t *addr, u16_t port, enum tftp_error code, const char *str) in send_error() 122 u16_t *payload; in send_error() 124 p = pbuf_alloc(PBUF_TRANSPORT, (u16_t)(TFTP_HEADER_LENGTH + str_length + 1), PBUF_RAM); in send_error() 129 payload = (u16_t *) p->payload; in send_error() 139 send_ack(u16_t blknum) in send_ack() 142 u16_t *payload; in send_ack() 148 payload = (u16_t *) p->payload; in send_ack() 176 u16_t *payload; in send_data() [all …]
|
/third_party/lwip/src/apps/mqtt/ |
D | mqtt.c | 169 static u16_t 201 mqtt_ringbuf_advance_get_idx(struct mqtt_ringbuf_t *rb, u16_t len) in mqtt_ringbuf_advance_get_idx() 212 static u16_t 219 return (u16_t)len; in mqtt_ringbuf_len() 238 u16_t ringbuf_lin_len = mqtt_ringbuf_linear_read_length(rb); in mqtt_output_send() 239 u16_t send_len = altcp_sndbuf(tpcb); in mqtt_output_send() 287 mqtt_create_request(struct mqtt_request_t *r_objs, size_t r_objs_len, u16_t pkt_id, mqtt_request_cb… in mqtt_create_request() 356 mqtt_take_request(struct mqtt_request_t **tail, u16_t pkt_id) in mqtt_take_request() 457 void mqtt_output_append_u16(struct mqtt_ringbuf_t *rb, u16_t value) in mqtt_output_append_u16() 464 mqtt_output_append_buf(struct mqtt_ringbuf_t *rb, const void *data, u16_t length) in mqtt_output_append_buf() [all …]
|
/third_party/lwip/src/include/netif/ppp/ |
D | pppol2tp.h | 174 u16_t remote_port; /* LNS port */ 183 u16_t tunnel_port; /* Tunnel port */ 184 u16_t our_ns; /* NS to peer */ 185 u16_t peer_nr; /* NR from peer */ 186 u16_t peer_ns; /* Expected NS from peer */ 187 u16_t source_tunnel_id; /* Tunnel ID assigned by peer */ 188 u16_t remote_tunnel_id; /* Tunnel ID assigned to peer */ 189 u16_t source_session_id; /* Session ID assigned by peer */ 190 u16_t remote_session_id; /* Session ID assigned to peer */ 200 struct netif *netif, const ip_addr_t *ipaddr, u16_t port,
|
/third_party/lwip/src/netif/ |
D | lowpan6.c | 86 u16_t datagram_size; 87 u16_t datagram_tag; 99 u16_t tx_datagram_tag; 101 u16_t ieee_802154_pan_id; 161 u16_t fc; in lowpan6_write_iee802154_header() 216 u16_t frame_control, addr_mode; in lowpan6_parse_iee802154_header() 217 u16_t datagram_offset; in lowpan6_parse_iee802154_header() 286 u16_t 287 lowpan6_calc_crc(const void* buf, u16_t len) in lowpan6_calc_crc() 290 u16_t i; in lowpan6_calc_crc() [all …]
|
/third_party/lwip/src/include/lwip/prot/ |
D | tcp.h | 57 PACK_STRUCT_FIELD(u16_t src); 58 PACK_STRUCT_FIELD(u16_t dest); 61 PACK_STRUCT_FIELD(u16_t _hdrlen_rsvd_flags); 62 PACK_STRUCT_FIELD(u16_t wnd); 63 PACK_STRUCT_FIELD(u16_t chksum); 64 PACK_STRUCT_FIELD(u16_t urgp); 85 #define TCPH_HDRLEN(phdr) ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) >> 12)) 91 …DRLEN_FLAGS_SET(phdr, len, flags) (phdr)->_hdrlen_rsvd_flags = (u16_t)(lwip_htons((u16_t)((len) <<…
|
/third_party/lwip/src/core/distributed_net/ |
D | distributed_net.c | 46 static u16_t g_local_tcp_server_port = 0; 48 static u16_t g_local_udp_server_port = 0; 53 static int try_connect_to_local_tcp_server(u16_t tcp_port) in try_connect_to_local_tcp_server() 90 u16_t get_local_tcp_server_port(void) in get_local_tcp_server_port() 93 u16_t ret = g_local_tcp_server_port; in get_local_tcp_server_port() 98 u16_t get_local_udp_server_port(void) in get_local_udp_server_port() 101 u16_t ret = g_local_udp_server_port; in get_local_udp_server_port() 114 int enable_distributed_net(u16_t tcp_port, u16_t udp_port) in enable_distributed_net()
|