diff options
| author | luwenpeng <[email protected]> | 2024-08-16 14:15:03 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-08-16 14:15:03 +0800 |
| commit | 4ee08c136a628ff475ff0f613e2359997f1de2c3 (patch) | |
| tree | 51a08702157257a473e1ba30c39c079a1485d46f /test/packet_inject | |
| parent | ebf1dad62c05571595fa03e3bb647afe1f29ad2f (diff) | |
refactor: rename packet_craft.cpp/h to packet_builder.cpp/h
Diffstat (limited to 'test/packet_inject')
| -rw-r--r-- | test/packet_inject/packet_inject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/packet_inject/packet_inject.cpp b/test/packet_inject/packet_inject.cpp index 6087cae..c9fb4e3 100644 --- a/test/packet_inject/packet_inject.cpp +++ b/test/packet_inject/packet_inject.cpp @@ -332,14 +332,14 @@ static void craft_and_send_udp_packet(struct stellar *st, struct session *sess, return; } - struct packet *craft_pkt = craft_udp_packet(origin_pkt, udp_payload, udp_payload_len); + struct packet *craft_pkt = packet_build_udp(origin_pkt, udp_payload, udp_payload_len); if (craft_pkt == NULL) { LOG_ERR("craft UDP packet failed\n"); return; } - stellar_send_crafted_packet(st, craft_pkt); + stellar_send_build_packet(st, craft_pkt); } static void craft_and_send_tcp_packet(struct stellar *st, struct session *sess, struct packet_exdata *pkt_exdata, @@ -393,14 +393,14 @@ static void craft_and_send_tcp_packet(struct stellar *st, struct session *sess, return; } - struct packet *craft_pkt = craft_tcp_packet(origin_pkt, tcp_seq, tcp_ack, tcp_flags, NULL, 0, tcp_payload, tcp_payload_len); + struct packet *craft_pkt = packet_build_tcp(origin_pkt, tcp_seq, tcp_ack, tcp_flags, NULL, 0, tcp_payload, tcp_payload_len); if (craft_pkt == NULL) { LOG_ERR("craft TCP packet failed\n"); return; } - stellar_send_crafted_packet(st, craft_pkt); + stellar_send_build_packet(st, craft_pkt); } /****************************************************************************** |
