
Chapter XIV. UDP Segmentation Offload and Pacing
Chelsio T5/T4 Unified Wire For Linux Page 209
Here:
sockfd : The file descriptor of the UDP socket
&fs / &cl : Pointer to the framesize and class variables
sizeof(fs) / sizeof(cl) : The size of the variables
v. Now, compile the application.
4.1.1. UDP offload functionality for RTP data
In case of RTP data, the video server application sends the initial sequence number and the
RTP payload. The USO engine segments the payload data, increments the sequence number
and sends out the data.
In order to use the UDP offload functionality for RTP data, make the following additions to the
steps mentioned above:
1. In step (ii), declare and initialize a new variable in the application:
int rtp_header_size=16;
Here, rtp_header_size is the RTP header size in bytes that the application sends.
2. In step (iii), define a new macro, UDP_RTPHEADERLEN used for setting RTP header
length with the value 292.
# define UDP_RTPHEADERLEN 292
3. In step (iv), define a new socket option:
setsockopt (sockfd,17,UDP_RTPHEADERLEN,&rtp_header_size,
sizeof(rtp_header_size));
Here,
&rtp_header_size : pointer to the RTP header length variable
sizeof(rtp_header_size) : the size of the RTP header length variable
Kommentare zu diesen Handbüchern