refactor: rename packet_craft.cpp/h to packet_builder.cpp/h
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user