Lines Matching refs:spacket
143 tftp_packet_t spacket; member
474 setpacketevent(&state->spacket, TFTP_EVENT_WRQ); in tftp_send_first()
476 (char *)state->spacket.data+4; in tftp_send_first()
482 setpacketevent(&state->spacket, TFTP_EVENT_RRQ); in tftp_send_first()
492 snprintf((char *)state->spacket.data+2, in tftp_send_first()
505 (char *)state->spacket.data+sbytes, in tftp_send_first()
508 (char *)state->spacket.data+sbytes, buf); in tftp_send_first()
512 (char *)state->spacket.data+sbytes, in tftp_send_first()
515 (char *)state->spacket.data+sbytes, buf ); in tftp_send_first()
520 (char *)state->spacket.data+sbytes, in tftp_send_first()
523 (char *)state->spacket.data+sbytes, buf ); in tftp_send_first()
527 senddata = sendto(state->sockfd, (void *)state->spacket.data, in tftp_send_first()
607 setpacketevent(&state->spacket, TFTP_EVENT_ACK); in tftp_rx()
608 setpacketblock(&state->spacket, state->block); in tftp_rx()
609 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
632 setpacketevent(&state->spacket, TFTP_EVENT_ACK); in tftp_rx()
633 setpacketblock(&state->spacket, state->block); in tftp_rx()
634 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
660 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
672 setpacketevent(&state->spacket, TFTP_EVENT_ERROR); in tftp_rx()
673 setpacketblock(&state->spacket, state->block); in tftp_rx()
674 (void)sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
733 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
755 setpacketevent(&state->spacket, TFTP_EVENT_DATA); in tftp_tx()
756 setpacketblock(&state->spacket, state->block); in tftp_tx()
766 sbytes = sendto(state->sockfd, (void *) state->spacket.data, in tftp_tx()
792 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_tx()
808 setpacketevent(&state->spacket, TFTP_EVENT_ERROR); in tftp_tx()
809 setpacketblock(&state->spacket, state->block); in tftp_tx()
810 (void)sendto(state->sockfd, (void *)state->spacket.data, 4, SEND_4TH_ARG, in tftp_tx()
932 Curl_safefree(state->spacket.data); in tftp_disconnect()
971 if(!state->spacket.data) { in tftp_connect()
972 state->spacket.data = calloc(1, blksize + 2 + 2); in tftp_connect()
974 if(!state->spacket.data) in tftp_connect()