summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-07-15 15:07:38 +0800
committerluwenpeng <[email protected]>2024-07-15 15:07:38 +0800
commit07ce636f64930f37e17941bc532f302e40ed754c (patch)
tree1f5dc00808a223483a6c3fe16e2633689cc2433a /include
parentd31cfd02fd6bde820343e71a5efd5d3df96a9b12 (diff)
test: add imitate_tcp_packet test case (TCP over GREv0: GRE enable checksum)
Diffstat (limited to 'include')
-rw-r--r--include/stellar/packet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stellar/packet.h b/include/stellar/packet.h
index d0b8814..f3e5713 100644
--- a/include/stellar/packet.h
+++ b/include/stellar/packet.h
@@ -41,10 +41,10 @@ uint16_t packet_get_payload_len(const struct packet *pkt);
* tcp_ack: the acknowledgment number of the new TCP packet (in host byte order)
* tcp_options_len: the length of the options (must be a multiple of 4)
*/
-struct packet *imitate_tcp_packet(const struct packet *origin_pkt, uint32_t tcp_seq, uint32_t tcp_ack, uint8_t tcp_flags,
+struct packet *craft_tcp_packet(const struct packet *origin_pkt, uint32_t tcp_seq, uint32_t tcp_ack, uint8_t tcp_flags,
const char *tcp_options, uint16_t tcp_options_len,
const char *tcp_payload, uint16_t tcp_payload_len);
-struct packet *imitate_udp_packet(const struct packet *origin_pkt, const char *udp_payload, uint16_t udp_payload_len);
+struct packet *craft_udp_packet(const struct packet *origin_pkt, const char *udp_payload, uint16_t udp_payload_len);
struct packet *craft_packet_from_scratch(const struct layer larers[], uint16_t layer_count, const char *payload, uint16_t payload_len);
#ifdef __cplusplus