Home
last modified time | relevance | path

Searched refs:blknum (Results 1 – 4 of 4) sorted by relevance

/AliOS-Things-master/components/lwip/lwip2.0.0/apps/tftp/
A Dtftp_server.c77 u16_t blknum; member
87 void tftp_send_ack(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port, u16_t blknum);
143 payload[1] = lwip_htons(tftp_state.blknum); in send_data()
215 tftp_state.blknum = 1; in recv()
245 u16_t blknum; in recv() local
259 blknum = lwip_ntohs(sbuf[1]); in recv()
268 tftp_send_ack(tftp_state.upcb, &tftp_state.addr, tftp_state.port, blknum); in recv()
279 u16_t blknum; in recv() local
294 blknum = lwip_ntohs(sbuf[1]); in recv()
295 if (blknum != tftp_state.blknum) { in recv()
[all …]
A Dtftp_client.c42 void tftp_send_ack(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port, u16_t blknum);
105 uint16_t blknum, blklen; in recv() local
109 blknum = PP_NTOHS(sbuf[1]); in recv()
111 if (blknum < pstate->seq_expect) { in recv()
114 tftp_send_ack(pstate->upcb, &pstate->addr, port, blknum); in recv()
115 pstate->seq_last = blknum; in recv()
119 if (blknum > pstate->seq_expect) { in recv()
121 ("received error block '%d', len='%u'\n", blknum, blklen )); in recv()
142 pstate->seq_last = blknum; in recv()
145 tftp_send_ack(pstate->upcb, &pstate->addr, port, blknum); in recv()
A Dtftp_common.c84 tftp_send_ack(struct udp_pcb *pcb, const ip_addr_t *addr, u16_t port, u16_t blknum) in tftp_send_ack() argument
96 payload[1] = lwip_htons(blknum); in tftp_send_ack()
/AliOS-Things-master/hardware/board/haas100/drivers/
A Dch395_cmd.c1142 int32_t ch395_sock_set_recv_buf(uint8_t sock, uint8_t startblk, uint8_t blknum) in ch395_sock_set_recv_buf() argument
1147 if (sock >= MAX_SURPPORT_SOCK_NUM || startblk >= MAX_BUF_NUM || blknum >= MAX_BUF_NUM) { in ch395_sock_set_recv_buf()
1148 LOGE(TAG, "Invalid input sock %d, startblk %d, blknum %d", sock, startblk, blknum); in ch395_sock_set_recv_buf()
1155 data[3] = blknum; in ch395_sock_set_recv_buf()
1159 LOGE(TAG, "Fail to write sock %d startblk %d blknum %d", sock, startblk, blknum); in ch395_sock_set_recv_buf()
1166 int32_t ch395_sock_set_send_buf(uint8_t sock, uint8_t startblk, uint8_t blknum) in ch395_sock_set_send_buf() argument
1171 if (sock >= MAX_SURPPORT_SOCK_NUM || startblk >= MAX_BUF_NUM || blknum >= MAX_BUF_NUM) { in ch395_sock_set_send_buf()
1172 LOGE(TAG, "Invalid input sock %d, startblk %d, blknum %d", sock, startblk, blknum); in ch395_sock_set_send_buf()
1179 data[3] = blknum; in ch395_sock_set_send_buf()
1183 LOGE(TAG, "Fail to write sock %d startblk %d blknum %d", sock, startblk, blknum); in ch395_sock_set_send_buf()

Completed in 7 milliseconds