Home
last modified time | relevance | path

Searched refs:u16_t (Results 1 – 25 of 74) sorted by relevance

123

/lib/liblwip/src/include/lwip/
Dsnmp_asn1.h77 err_t snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type);
78 err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length);
79 err_t snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value);
80 err_t snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value);
81 err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid);
82 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw);
84 void snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed);
85 void snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed);
86 void snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed);
87 void snmp_asn1_enc_oid_cnt(u8_t ident_len, s32_t *ident, u16_t *octets_needed);
[all …]
Dpbuf.h93 u16_t tot_len;
96 u16_t len;
109 u16_t ref;
146 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type);
148 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
150 u16_t payload_mem_len);
152 void pbuf_realloc(struct pbuf *p, u16_t size);
161 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
162 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
165 err_t pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr,
[all …]
Dsnmp_structs.h81 u16_t v_len;
112 void (*get_value)(struct obj_def *od, u16_t len, void *value);
114 u8_t (*set_test)(struct obj_def *od, u16_t len, void *value);
116 void (*set_value)(struct obj_def *od, u16_t len, void *value);
120 u16_t maxlength;
132 void (*get_value)(struct obj_def *od, u16_t len, void *value);
133 u8_t (*set_test)(struct obj_def *od, u16_t len, void *value);
134 void (*set_value)(struct obj_def *od, u16_t len, void *value);
137 u16_t maxlength;
150 void (*get_value)(struct obj_def *od, u16_t len, void *value);
[all …]
Dsnmp_msg.h105 u16_t seqlen;
107 u16_t olen;
109 u16_t vlen;
121 u16_t seqlen;
143 u16_t erridxlen;
145 u16_t errstatlen;
147 u16_t ridlen;
149 u16_t pdulen;
151 u16_t comlen;
153 u16_t verlen;
[all …]
Dudp.h56 PACK_STRUCT_FIELD(u16_t src);
57 PACK_STRUCT_FIELD(u16_t dest); /* src/dest UDP ports */
58 PACK_STRUCT_FIELD(u16_t len);
59 PACK_STRUCT_FIELD(u16_t chksum);
88 ip_addr_t *addr, u16_t port);
101 u16_t local_port, remote_port;
110 u16_t chksum_len_rx, chksum_len_tx;
126 u16_t port);
128 u16_t port);
133 ip_addr_t *dst_ip, u16_t dst_port,
[all …]
Dtcp.h87 u16_t len);
164 u16_t local_port
175 u16_t remote_port;
197 u16_t rcv_wnd; /* receiver window available */
198 u16_t rcv_ann_wnd; /* receiver window to announce */
204 u16_t mss; /* maximum segment size */
219 u16_t cwnd;
220 u16_t ssthresh;
227 u16_t snd_wnd; /* sender window */
228 u16_t snd_wnd_max; /* the maximum sender window announced by the remote host */
[all …]
Dnetbuf.h51 u16_t port;
56 u16_t toport_chksum;
66 void * netbuf_alloc (struct netbuf *buf, u16_t size);
69 const void *dataptr, u16_t size);
74 void **dataptr, u16_t *len);
Dtcp_impl.h160 PACK_STRUCT_FIELD(u16_t src);
161 PACK_STRUCT_FIELD(u16_t dest);
164 PACK_STRUCT_FIELD(u16_t _hdrlen_rsvd_flags);
165 PACK_STRUCT_FIELD(u16_t wnd);
166 PACK_STRUCT_FIELD(u16_t chksum);
167 PACK_STRUCT_FIELD(u16_t urgp);
178 …phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS((u16_t)(~(u16_t)(TCP_FLAGS))))…
280 u16_t len; /* the TCP length of this segment */
282 u16_t oversize_left; /* Extra bytes available at the end of the last
287 u16_t chksum;
[all …]
Ddhcp.h48 u16_t options_out_len; /* outgoing msg options length */
49 u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */
50 u16_t t1_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */
51 u16_t t2_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */
81 PACK_STRUCT_FIELD(u16_t secs);
82 PACK_STRUCT_FIELD(u16_t flags);
/lib/liblwip/src/core/ipv4/
Dinet_chksum.c80 static u16_t
81 lwip_standard_chksum(void *dataptr, u16_t len) in lwip_standard_chksum()
84 u16_t src; in lwip_standard_chksum()
114 return htons((u16_t)acc); in lwip_standard_chksum()
134 static u16_t
138 u16_t *ps, t = 0; in lwip_standard_chksum()
149 ps = (u16_t *)(void *)pb; in lwip_standard_chksum()
173 return (u16_t)sum; in lwip_standard_chksum()
190 static u16_t
194 u16_t *ps, t = 0; in lwip_standard_chksum()
[all …]
/lib/liblwip/src/include/ipv4/lwip/
Dinet_chksum.h73 u16_t inet_chksum(void *dataptr, u16_t len);
74 u16_t inet_chksum_pbuf(struct pbuf *p);
75 u16_t inet_chksum_pseudo(struct pbuf *p,
77 u8_t proto, u16_t proto_len);
78 u16_t inet_chksum_pseudo_partial(struct pbuf *p,
80 u8_t proto, u16_t proto_len, u16_t chksum_len);
82 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len);
/lib/liblwip/src/core/ipv6/
Dinet6.c55 chksum(void *dataptr, u16_t len) in chksum()
57 u16_t *sdataptr = dataptr; in chksum()
67 acc += htons((u16_t)(*(u8_t *)dataptr) << 8); in chksum()
79 u16_t
106 acc += ((u16_t *)src->addr)[i] & 0xffff; in inet_chksum_pseudo()
107 acc += ((u16_t *)dest->addr)[i] & 0xffff; in inet_chksum_pseudo()
112 acc += (u16_t)htons((u16_t)proto); in inet_chksum_pseudo()
113 acc += ((u16_t *)&proto_len)[0] & 0xffff; in inet_chksum_pseudo()
114 acc += ((u16_t *)&proto_len)[1] & 0xffff; in inet_chksum_pseudo()
128 u16_t
[all …]
/lib/liblwip/src/include/ipv6/lwip/
Dinet.h43 u16_t inet_chksum(void *data, u16_t len);
44 u16_t inet_chksum_pbuf(struct pbuf *p);
45 u16_t inet_chksum_pseudo(struct pbuf *p,
55 u16_t htons(u16_t n);
56 u16_t ntohs(u16_t n);
Dicmp.h74 u16_t chksum;
75 u16_t id;
76 u16_t seqno;
82 u16_t chksum;
89 u16_t chksum;
/lib/liblwip/src/netif/ppp/
Dauth.h73 void np_up (int, u16_t);
76 void np_down (int, u16_t);
79 void np_finished (int, u16_t);
82 void auth_peer_fail (int, u16_t);
85 void auth_peer_success (int, u16_t, char *, int);
88 void auth_withpeer_fail (int, u16_t);
91 void auth_withpeer_success (int, u16_t);
/lib/liblwip/src/core/
Dpbuf.c207 pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) in pbuf_alloc()
210 u16_t offset; in pbuf_alloc()
287 q->tot_len = (u16_t)rem_len; in pbuf_alloc()
289 q->len = LWIP_MIN((u16_t)rem_len, PBUF_POOL_BUFSIZE_ALIGNED); in pbuf_alloc()
367 pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p, in pbuf_alloced_custom()
368 void *payload_mem, u16_t payload_mem_len) in pbuf_alloced_custom()
370 u16_t offset; in pbuf_alloced_custom()
430 pbuf_realloc(struct pbuf *p, u16_t new_len) in pbuf_realloc()
433 u16_t rem_len; /* remaining length */ in pbuf_realloc()
461 q->tot_len += (u16_t)grow; in pbuf_realloc()
[all …]
Ddef.c63 u16_t
64 lwip_htons(u16_t n) in lwip_htons()
75 u16_t
76 lwip_ntohs(u16_t n) in lwip_ntohs()
Dtcp_out.c94 tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, in tcp_output_alloc_header()
219 tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, in tcp_pbuf_prealloc()
220 u16_t *oversize, struct tcp_pcb *pcb, u8_t apiflags, in tcp_pbuf_prealloc()
224 u16_t alloc = length; in tcp_pbuf_prealloc()
272 tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, in tcp_seg_add_chksum()
294 tcp_write_checks(struct tcp_pcb *pcb, u16_t len) in tcp_write_checks()
315 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen)); in tcp_write_checks()
354 tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) in tcp_write()
358 u16_t pos = 0; /* position in 'arg' data */ in tcp_write()
359 u16_t queuelen; in tcp_write()
[all …]
Ddns.c131 PACK_STRUCT_FIELD(u16_t id);
134 PACK_STRUCT_FIELD(u16_t numquestions);
135 PACK_STRUCT_FIELD(u16_t numanswers);
136 PACK_STRUCT_FIELD(u16_t numauthrr);
137 PACK_STRUCT_FIELD(u16_t numextrarr);
150 u16_t type;
151 u16_t cls;
160 u16_t type;
161 u16_t cls;
163 u16_t len;
[all …]
/lib/liblwip/src/core/snmp/
Dasn1_enc.c50 snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed) in snmp_asn1_enc_length_cnt()
77 snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed) in snmp_asn1_enc_u32t_cnt()
110 snmp_asn1_enc_s32t_cnt(s32_t value, u16_t *octets_needed) in snmp_asn1_enc_s32t_cnt()
142 snmp_asn1_enc_oid_cnt(u8_t ident_len, s32_t *ident, u16_t *octets_needed) in snmp_asn1_enc_oid_cnt()
181 snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type) in snmp_asn1_enc_type()
183 u16_t plen, base; in snmp_asn1_enc_type()
213 snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length) in snmp_asn1_enc_length()
215 u16_t plen, base; in snmp_asn1_enc_length()
308 snmp_asn1_enc_u32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, u32_t value) in snmp_asn1_enc_u32t()
310 u16_t plen, base; in snmp_asn1_enc_u32t()
[all …]
Dasn1_dec.c52 snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type) in snmp_asn1_dec_type()
54 u16_t plen, base; in snmp_asn1_dec_type()
85 snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length) in snmp_asn1_dec_length()
87 u16_t plen, base; in snmp_asn1_dec_length()
240 snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value) in snmp_asn1_dec_u32t()
242 u16_t plen, base; in snmp_asn1_dec_u32t()
333 snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value) in snmp_asn1_dec_s32t()
335 u16_t plen, base; in snmp_asn1_dec_s32t()
429 snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid) in snmp_asn1_dec_oid()
431 u16_t plen, base; in snmp_asn1_dec_oid()
[all …]
Dmsg_out.c67 static u16_t snmp_resp_header_sum(struct snmp_msg_pstat *m_stat, u16_t vb_len);
68 static u16_t snmp_trap_header_sum(struct snmp_msg_trap *m_trap, u16_t vb_len);
69 static u16_t snmp_varbind_list_sum(struct snmp_varbind_root *root);
71 static u16_t snmp_resp_header_enc(struct snmp_msg_pstat *m_stat, struct pbuf *p);
72 static u16_t snmp_trap_header_enc(struct snmp_msg_trap *m_trap, struct pbuf *p);
73 static u16_t snmp_varbind_list_enc(struct snmp_varbind_root *root, struct pbuf *p, u16_t ofs);
117 u16_t tot_len; in snmp_send_response()
142 u16_t ofs; in snmp_send_response()
219 u16_t i,tot_len; in snmp_send_trap()
257 u16_t ofs; in snmp_send_trap()
[all …]
/lib/liblwip/src/include/netif/
Detharp.h78 PACK_STRUCT_FIELD(u16_t type);
97 PACK_STRUCT_FIELD(u16_t prio_vid);
98 PACK_STRUCT_FIELD(u16_t tpid);
116 PACK_STRUCT_FIELD(u16_t hwtype);
117 PACK_STRUCT_FIELD(u16_t proto);
120 PACK_STRUCT_FIELD(u16_t opcode);
205 const u16_t opcode);
Dppp_oe.h86 PACK_STRUCT_FIELD(u16_t session);
87 PACK_STRUCT_FIELD(u16_t plen);
99 PACK_STRUCT_FIELD(u16_t tag);
100 PACK_STRUCT_FIELD(u16_t len);
155 u16_t sc_session; /* PPPoE session id */
/lib/liblwip/test/unit/tcp/
Dtcp_helper.h33 u16_t src_port, u16_t dst_port, void* data, size_t data_len,
38 u32_t seqno_offset, u32_t ackno_offset, u8_t headerflags, u16_t wnd);
40 ip_addr_t* remote_ip, u16_t local_port, u16_t remote_port);

123