[PACKET_IO]format api style
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
struct stellar_packet;
|
||||
#include <stddef.h>
|
||||
|
||||
struct stellar_packet;
|
||||
|
||||
/**
|
||||
* @brief get stellar_packet's ctrlzone
|
||||
* @note ctrlzone's memory is 64 bytes, do not exceed it
|
||||
*/
|
||||
char *get_stellar_packet_ctrlzone(struct stellar_packet *p, size_t *ctrlzone_len);
|
||||
|
||||
/**
|
||||
* @brief get stellar_packet's data pointer
|
||||
*/
|
||||
char *get_stellar_packet_data(struct stellar_packet *p, size_t *data_len);
|
||||
@@ -39,6 +39,7 @@ typedef enum {
|
||||
ST_ERR_PCAP_SET_PROMISC,
|
||||
ST_ERR_PCAP_SET_TIMEOUT,
|
||||
ST_ERR_PCAP_ACTIVATE_HANDLE,
|
||||
ST_ERR_PIO_CONFIG,
|
||||
ST_ERR_FOPEN,
|
||||
ST_ERR_BPF,
|
||||
ST_ERR_MAX
|
||||
|
||||
Reference in New Issue
Block a user