summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/stellar/packet.h6
-rw-r--r--include/stellar/stellar.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/stellar/packet.h b/include/stellar/packet.h
index 2d760e9..d3132df 100644
--- a/include/stellar/packet.h
+++ b/include/stellar/packet.h
@@ -41,11 +41,11 @@ 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 *craft_tcp_packet(const struct packet *origin_pkt, uint32_t tcp_seq, uint32_t tcp_ack, uint8_t tcp_flags,
+struct packet *packet_build_tcp(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 *craft_udp_packet(const struct packet *origin_pkt, const char *udp_payload, uint16_t udp_payload_len);
-struct packet *craft_l3_packet(const struct packet *origin_pkt, uint8_t ip_proto, const char *l3_payload, uint16_t l3_payload_len);
+struct packet *packet_build_udp(const struct packet *origin_pkt, const char *udp_payload, uint16_t udp_payload_len);
+struct packet *packet_build_l3(const struct packet *origin_pkt, uint8_t ip_proto, const char *l3_payload, uint16_t l3_payload_len);
struct tcp_segment;
const char *tcp_segment_get_data(const struct tcp_segment *seg);
diff --git a/include/stellar/stellar.h b/include/stellar/stellar.h
index 9af384c..6007da4 100644
--- a/include/stellar/stellar.h
+++ b/include/stellar/stellar.h
@@ -52,7 +52,7 @@ void stellar_emit_datapath_telemetry(struct packet *pkt, const char * module, c
int stellar_get_worker_thread_num(struct stellar *st);
uint16_t stellar_get_current_thread_index();
// only send user crafted packet, can't send packet which come from network
-void stellar_send_crafted_packet(struct stellar *st, struct packet *pkt);
+void stellar_send_build_packet(struct stellar *st, struct packet *pkt);
int stellar_run(int argc, char **argv);
#ifdef __cplusplus