checksum_example.cpp
Go to the documentation of this file.
149 CHECKSUM_LAYER4_GOOD_TCP_ZERO_UDP = 4, // Insert GOOD checksum in TCP header and a value of ZERO in UDP header
150 CHECKSUM_LAYER4_GOOD_TCP_ZERO_UDP_IPV4 = 5, // Insert GOOD checksum in TCP header and a value of ZERO in UDP header when IP is IPv4
151 CHECKSUM_LAYER4_GOOD_TCP_UDP_ZERO_UDP_TUNNEL = 6, // Insert GOOD checksum in TCP/UDP header and a value of ZERO in UDP header when part of a tunnel
152 CHECKSUM_LAYER4_GOOD_TCP_UDP_ZERO_UDP_IPV4_TUNNEL = 7, // Insert GOOD checksum in TCP/UDP header and a value of ZERO in UDP header when IP is IPv4 and part of a tunnel
230 status = NT_NetTxOpenAttrSetDescriptorPosFrameType(&attr, true, 128); // Bit position of Dyn3_checksum_overlay.frame_type
232 status = NT_NetTxOpenAttrSetDescriptorPosChecksumCmd(&attr, true, 132); // Bit position of Dyn3_checksum_overlay.checksum_cmd
244 status = NT_NetTxGet(net_tx_stream, &net_buffer, tx_port, sizeof(Test_packet) + fcs_size, NT_NETTX_PACKET_OPTION_DYN, 100);