![]() |
Network Wizard for VHDL Test Benches
|
Functions | |
| t_slv_arr | f_tcpv4_create_pkt ( ipv4_header: in t_ipv4_header tcp_header: in t_tcp_header payload: in t_slv_arr add_payload: in boolean get_length: in boolean false ) |
| t_slv_arr | f_tcpv4_create_pkt ( ipv4_header: in t_ipv4_header tcp_header: in t_tcp_header payload: in t_slv_arr ) |
| Create TCP for IPv4 packet. | |
| natural | f_tcpv4_create_pkt_len ( ipv4_header: in t_ipv4_header tcp_header: in t_tcp_header payload: in t_slv_arr ) |
| Return length of TCP packet. | |
| t_slv_arr | f_tcpv4_create_pkt ( ipv4_header: in t_ipv4_header , tcp_header: in t_tcp_header ) |
| Create TCP for IPv4 packet. | |
| natural | f_tcpv4_create_pkt_len ( ipv4_header: in t_ipv4_header , tcp_header: in t_tcp_header ) |
| Return length of TCP packet. | |
| t_tcp_header | f_tcpv4_get_header ( tcp_pkt: in t_slv_arr ) |
| Get TCP header. | |
| t_slv_arr | f_tcpv4_get_payload ( tcp_pkt: in t_slv_arr , get_length: in boolean false ) |
| t_slv_arr | f_tcpv4_get_payload ( tcp_pkt: in t_slv_arr ) |
| Get TCP payload. | |
| natural | f_tcpv4_get_payload_len ( tcp_pkt: in t_slv_arr ) |
| Get TCP payload length. | |
| boolean | f_tcpv4_chksum_ok ( ipv4_header: in t_ipv4_header , tcp_pkt: in t_slv_arr ) |
| Check TCP checksum. | |
|
Function |
Create TCP for IPv4 packet.
| ipv4_header | IPv4 header (required for checksum calculation) |
| udp_header | TCP header |
| payload | TCP payload |
Create TCPv4 packet. Payload must be 8bit data array. A pseudo-header is generated from the IPv4 header which is included in the checksum calculation.
Example use
|
Function |
Return length of TCP packet.
| ipv4_header | IPv4 header (required for checksum calculation) |
| tcp_header | TCP header |
| payload | TCP payload |
Return the length of the created TCP packet.
Example use
|
Function |
Create TCP for IPv4 packet.
| ipv4_header | IPv4 header (required for checksum calculation) |
| udp_header | TCP header |
Create TCPv4 packet without payload.
Example use
|
Function |
Return length of TCP packet.
| ipv4_header | IPv4 header (required for checksum calculation) |
| tcp_header | TCP header |
Return the length of the created TCP packet (no payload).
Example use
|
Function |
Get TCP header.
| tcp_pkt | TCP packet (8bit) |
Extract TCP header from TCP packet.
Example use
|
Function |
Get TCP payload.
| tcp_pkt | TCP packet (8bit) |
Extract TCP payload from TCP packet.
Example use
|
Function |
Get TCP payload length.
| tcp_pkt | TCP packet (8bit) |
Get TCP payload length from TCP packet.
Example use
|
Function |
Check TCP checksum.
| ipv4_header | IPv4 header |
| tcp_pkt | TCP packet (8bit) |
Check checksum of TCP packet. The IPv4 header is required for the pseudo-header fields.
Example use