• Home
  • Raw
  • Download

Lines Matching refs:spacket

144   tftp_packet_t   spacket;  member
475 setpacketevent(&state->spacket, TFTP_EVENT_WRQ); in tftp_send_first()
477 (char *)state->spacket.data+4; in tftp_send_first()
483 setpacketevent(&state->spacket, TFTP_EVENT_RRQ); in tftp_send_first()
493 snprintf((char *)state->spacket.data+2, in tftp_send_first()
508 (char *)state->spacket.data+sbytes, in tftp_send_first()
511 (char *)state->spacket.data+sbytes, buf); in tftp_send_first()
515 (char *)state->spacket.data+sbytes, in tftp_send_first()
518 (char *)state->spacket.data+sbytes, buf); in tftp_send_first()
523 (char *)state->spacket.data+sbytes, in tftp_send_first()
526 (char *)state->spacket.data+sbytes, buf); in tftp_send_first()
531 senddata = sendto(state->sockfd, (void *)state->spacket.data, in tftp_send_first()
611 setpacketevent(&state->spacket, TFTP_EVENT_ACK); in tftp_rx()
612 setpacketblock(&state->spacket, state->block); in tftp_rx()
613 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
636 setpacketevent(&state->spacket, TFTP_EVENT_ACK); in tftp_rx()
637 setpacketblock(&state->spacket, state->block); in tftp_rx()
638 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
664 sbytes = sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
676 setpacketevent(&state->spacket, TFTP_EVENT_ERROR); in tftp_rx()
677 setpacketblock(&state->spacket, state->block); in tftp_rx()
678 (void)sendto(state->sockfd, (void *)state->spacket.data, in tftp_rx()
738 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 state->conn->data->req.upload_fromhere = (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()
948 Curl_safefree(state->spacket.data); in tftp_disconnect()
987 if(!state->spacket.data) { in tftp_connect()
988 state->spacket.data = calloc(1, blksize + 2 + 2); in tftp_connect()
990 if(!state->spacket.data) in tftp_connect()