Home
last modified time | relevance | path

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

123

/external/syslinux/core/lwip/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.h87 u16_t tot_len;
90 u16_t len;
103 u16_t ref;
122 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type);
124 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
126 u16_t payload_mem_len);
128 void pbuf_realloc(struct pbuf *p, u16_t size);
137 u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
138 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
141 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.h88 u16_t len);
165 u16_t local_port
176 u16_t remote_port;
192 u16_t rcv_wnd; /* receiver window available */
193 u16_t rcv_ann_wnd; /* receiver window to announce */
203 u16_t mss; /* maximum segment size */
218 u16_t cwnd;
219 u16_t ssthresh;
223 u16_t snd_wnd; /* sender window */
228 u16_t acked;
[all …]
Dtcp_impl.h159 PACK_STRUCT_FIELD(u16_t src);
160 PACK_STRUCT_FIELD(u16_t dest);
163 PACK_STRUCT_FIELD(u16_t _hdrlen_rsvd_flags);
164 PACK_STRUCT_FIELD(u16_t wnd);
165 PACK_STRUCT_FIELD(u16_t chksum);
166 PACK_STRUCT_FIELD(u16_t urgp);
179 …phdr)->_hdrlen_rsvd_flags = (((phdr)->_hdrlen_rsvd_flags & PP_HTONS((u16_t)(~(u16_t)(TCP_FLAGS))))…
281 u16_t len; /* the TCP length of this segment */
283 u16_t oversize_left; /* Extra bytes available at the end of the last
288 u16_t chksum;
[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);
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);
/external/syslinux/core/lwip/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 …]
Dip_frag.c94 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 …]
/external/syslinux/core/lwip/src/core/
Dpbuf.c185 pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) in pbuf_alloc()
188 u16_t offset; in pbuf_alloc()
265 q->tot_len = (u16_t)rem_len; in pbuf_alloc()
267 q->len = LWIP_MIN((u16_t)rem_len, PBUF_POOL_BUFSIZE_ALIGNED); in pbuf_alloc()
344 pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p, in pbuf_alloced_custom()
345 void *payload_mem, u16_t payload_mem_len) in pbuf_alloced_custom()
347 u16_t offset; in pbuf_alloced_custom()
407 pbuf_realloc(struct pbuf *p, u16_t new_len) in pbuf_realloc()
410 u16_t rem_len; /* remaining length */ in pbuf_realloc()
438 q->tot_len += (u16_t)grow; in pbuf_realloc()
[all …]
Dtcp_out.c92 tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, in tcp_output_alloc_header()
216 tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, in tcp_pbuf_prealloc()
217 u16_t *oversize, struct tcp_pcb *pcb, u8_t apiflags, in tcp_pbuf_prealloc()
221 u16_t alloc = length; in tcp_pbuf_prealloc()
269 tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, in tcp_seg_add_chksum()
291 tcp_write_checks(struct tcp_pcb *pcb, u16_t len) in tcp_write_checks()
312 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_write: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen)); in tcp_write_checks()
351 tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags) in tcp_write()
355 u16_t pos = 0; /* position in 'arg' data */ in tcp_write()
356 u16_t queuelen; in tcp_write()
[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()
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 …]
Dmemp.c129 const u16_t memp_sizes[MEMP_MAX] = {
137 static const u16_t memp_num[MEMP_MAX] = {
216 memp_overflow_check_element_overflow(struct memp *p, u16_t memp_type) in memp_overflow_check_element_overflow()
218 u16_t k; in memp_overflow_check_element_overflow()
249 memp_overflow_check_element_underflow(struct memp *p, u16_t memp_type) in memp_overflow_check_element_underflow()
251 u16_t k; in memp_overflow_check_element_underflow()
282 u16_t i, j; in memp_overflow_check_all()
309 u16_t i, j; in memp_overflow_init()
340 u16_t i, j; in memp_init()
/external/syslinux/core/lwip/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);
Dip.h118 PACK_STRUCT_FIELD(u16_t _v_hl_tos);
120 PACK_STRUCT_FIELD(u16_t _len);
122 PACK_STRUCT_FIELD(u16_t _id);
124 PACK_STRUCT_FIELD(u16_t _offset);
134 PACK_STRUCT_FIELD(u16_t _chksum);
186 u16_t optlen);
/external/syslinux/core/lwip/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()
226 u16_t i,tot_len; in snmp_send_trap()
264 u16_t ofs; in snmp_send_trap()
[all …]
Dmib2.c80 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 …]
/external/syslinux/core/lwip/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);
/external/syslinux/core/lwip/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);
204 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 */

123