Go to the source code of this file.
Functions | |
static void | handle_error_status (int status, const char *message) |
static uint64_t | create_padding_packet_dyn3 (struct NtNetBuf_s &buffer, uint64_t max_packet_size, uint64_t remaining_segment_space) |
static uint64_t | get_max_packet_size (uint8_t port) |
int | main (int, char **) |
Data Structures | |
struct | Dyn3_checksum_overlay |
Variables | |
static constexpr uint8_t | Test_packet [] |
Function Documentation
|
static |
Handles and prints NT error messages, and the terminates the program.
Definition at line 99 of file transmit_segment_dyn_descr_example.cpp.
Referenced by get_max_packet_size(), and main().
|
static |
Calculate the size of a segment padding packet, and add it to the net buffer. Returns the size of the padding packet added (incl. descriptor size).
Definition at line 113 of file transmit_segment_dyn_descr_example.cpp.
Referenced by main().
|
static |
Use the NT info stream to get the maximum size of a TX packet.
Definition at line 154 of file transmit_segment_dyn_descr_example.cpp.
Referenced by main().
int main | ( | int | , |
char ** | |||
) |
Definition at line 177 of file transmit_segment_dyn_descr_example.cpp.
Variable Documentation
|
static |
IPv4 UDP packet. No FCS included. Size: 96 byte.
Definition at line 69 of file transmit_segment_dyn_descr_example.cpp.
Referenced by main().