Lines Matching refs:spacket

143   struct tftp_packet spacket;  member
454 setpacketevent(&state->spacket, TFTP_EVENT_WRQ); in tftp_send_first()
460 setpacketevent(&state->spacket, TFTP_EVENT_RRQ); in tftp_send_first()
476 msnprintf((char *)state->spacket.data + 2, in tftp_send_first()
490 (char *)state->spacket.data + sbytes, in tftp_send_first()
494 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
500 (char *)state->spacket.data + sbytes, in tftp_send_first()
504 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
510 (char *)state->spacket.data + sbytes, in tftp_send_first()
514 (char *)state->spacket.data + sbytes, buf); in tftp_send_first()
525 senddata = sendto(state->sockfd, (void *)state->spacket.data, in tftp_send_first()
608 setpacketevent(&state->spacket, TFTP_EVENT_ACK); in tftp_rx()
609 setpacketblock(&state->spacket, state->block); in tftp_rx()
610 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
633 setpacketevent(&state->spacket, TFTP_EVENT_ACK); in tftp_rx()
634 setpacketblock(&state->spacket, state->block); in tftp_rx()
635 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
661 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
673 setpacketevent(&state->spacket, TFTP_EVENT_ERROR); in tftp_rx()
674 setpacketblock(&state->spacket, state->block); in tftp_rx()
675 (void)sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
737 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
760 setpacketevent(&state->spacket, TFTP_EVENT_DATA); in tftp_tx()
761 setpacketblock(&state->spacket, state->block); in tftp_tx()
772 bufptr = (char *)state->spacket.data + 4; in tftp_tx()
782 sbytes = sendto(state->sockfd, (void *) state->spacket.data, in tftp_tx()
808 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
824 setpacketevent(&state->spacket, TFTP_EVENT_ERROR); in tftp_tx()
825 setpacketblock(&state->spacket, state->block); in tftp_tx()
826 (void)sendto(state->sockfd, (void *)state->spacket.data, 4, SEND_4TH_ARG, in tftp_tx()
950 Curl_safefree(state->spacket.data); in tftp_disconnect()
994 if(!state->spacket.data) { in tftp_connect()
995 state->spacket.data = calloc(1, need_blksize + 2 + 2); in tftp_connect()
997 if(!state->spacket.data) in tftp_connect()