• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/third-party/libutp/

Lines Matching defs:packet

59 // if we receive 4 or more duplicate acks, we resend the packet

206 // these packet sizes are including the uTP header wich
294 ST_DATA = 0, // Data packet.
295 ST_FIN = 1, // Finalize the connection. This is the last packet.
296 ST_STATE = 2, // State packet. Used to transmit an ACK with no data.
571 // the oldest un-acked packet in the send queue is seq_nr - cur_window_packets
586 // Is a FIN packet in the reassembly buffer?
599 // the sequence number of the FIN packet. This field is only set
608 // This is the sequence number for the next packet to be sent.
613 // This is the sequence number of the next packet we're allowed to
615 // once per packet. We can resend the packet with this sequence number
616 // or any later packet (with a higher sequence number).
637 // this connection. If this is more than one packet
639 // to the packet size
659 // When the window size is set to zero, start this timer. It will send a new packet every 30secs.
673 // extension bytes from SYN packet
825 // time stamp this packet with local time, the stamp goes into
826 // the header of every packet at the 8th byte for 8 bytes :
827 // two integers, check packet.h for more
849 // if this packet carries payload, just
918 // if the packet ack_nr + 1 has not yet
926 LOG_UTPV("0x%08x: EACK packet [%u]", this, ack_nr + i + 2);
1010 // send the packet. Don't enforce quota when closing
1012 // at slow rates (max window < packet size)
1046 // return true if it's OK to stuff another packet into the
1047 // outgoing queue. Since we may be using packet pacing, we
1048 // might not actually send the packet right away to affect the
1050 // packet is that cur_window_packets is increased.
1063 // subtract one to save space for the FIN packet
1066 // if sending another packet would not make the window exceed
1070 // if the window size is less than a packet, and we have enough
1071 // quota to send a packet, we can write, even though it would
1104 // don't send the last packet if we have one packet in-flight
1105 // and the current packet is still smaller than packet_size.
1145 // if there's any room left in the last packet in the window
1148 // Use the previous unsent packet
1158 // Create the packet to send.
1260 // In case the new send quota made it possible to send another packet
1263 // if we don't use packet pacing, the writable event is triggered
1321 // every packet should be considered lost
1342 // Re-send the packet.
1396 // 0: the packet was acked.
1397 // 1: it means that the packet had already been acked
1398 // 2: the packet has not been sent yet
1403 // the packet has already been acked (or not sent)
1421 // if we never re-sent the packet, update the RTT estimate
1446 // if need_resend is set, this packet has already
1515 // reordered and arrives after a packet that ACKs up past
1544 // received an ack for this packet previously (in another EACK
1548 // if this packet is acked, it counts towards the duplicate ack counter
1562 // the selective ack should never ACK the packet we're waiting for to decrement cur_window_packets
1587 // resending, the first packet we should resend
1604 // this may be an old (re-ordered) packet, and some of the
1645 // connection to use sub-packet size window sizes
1663 // as for large negative numbers, this direction is already capped at the min packet size further down
1681 // if it was more than 300 milliseconds since we tried to send a packet
1756 // Process an incoming packet
1757 // syn is true if this is the first packet received. It will cut off parsing
1759 size_t UTP_ProcessIncoming(UTPSocket *conn, const byte *packet, size_t len, bool syn = false)
1767 const PacketFormat *pf = (PacketFormat*)packet;
1768 const PacketFormatV1 *pf1 = (PacketFormatV1*)packet;
1769 const byte *packet_end = packet + len;
1801 // Unpack UTP packet options
1805 LOG_UTPV("0x%08x: Invalid packet size (less than header size)", conn);
1812 // Verify that the packet is valid.
1854 // packet this is. ack_nr is the last acked, seq_nr is the
1856 // expected packet".
1875 // if we get the same ack_nr as in the last packet
1897 // the rtt of the packet. If it does, clamp it.
2010 // means that this packet acked all the remaining packets that
2024 // if ack_status is 0, the packet was acked.
2025 // if acl_stauts is 1, it means that the packet had already been acked
2026 // if it's 2, the packet has not been sent yet
2044 // selective ack (EACK). Keep decreasing the window packet size
2045 // until we hit a packet that is still waiting to be acked
2077 // if the fast_resend_seq_nr is not pointing to the oldest outstanding packet, it suggests that we've already
2078 // resent the packet that timed out, and we should leave the fast-timeout mode.
2082 // resend the oldest packet and increment fast_resend_seq_nr
2119 // This is a state packet only.
2130 // Is this a finalize packet?
2145 // Getting an in-order packet?
2156 // Check if the next packet has been received too, but waiting
2208 // Getting an out of order packet.
2209 // The packet needs to be remembered and rearranged later.
2211 // if we have received a FIN packet, and the EOF-sequence number
2212 // is lower than the sequence number of the packet we just received
2215 LOG_UTPV("0x%08x: Got an invalid packet sequence number, past EOF "
2225 LOG_UTPV("0x%08x: Got an invalid packet sequence number, too far off "
2232 // check if the packet is already in here, so that
2233 // we don't end up looking at an older packet (since
2237 // Has this packet already been received? (i.e. a duplicate)
2246 // Allocate memory to fit the packet that needs to re-ordered
2362 // we need to fit one packet in the window
2426 // 'initial' is the number of data bytes to send in the connect packet.
2468 // Create the connect packet.
2666 // Want the whole packet so we have connection ID
2684 LOG_UTPV("0x%08x: icmp packet causing socket destruction", conn);
2693 LOG_UTPV("0x%08x: icmp packet causing error on socket:%d", conn, err);
2726 // Send an outgoing packet.
2735 LOG_UTPV("0x%08x: Sending packet. seq_nr:%u ack_nr:%u wnd:%u/%u/%u rcv_win:%u size:%u quota:%d cur_window_packets:%u",