EtherLib/pckt_assembler.h

19 lines
399 B
C

#ifndef ETHERLIB_PCKT_ASSEMBLER_H
#define ETHERLIB_PCKT_ASSEMBLER_H
#include "packet.h"
struct EthInterface_;
#define ETH_FRAME_MIN_SIZE (60)
/**
* Assemble packet.
* @param raw raw packet
* @param cooked packet information and headers
* @return 0 on success OR -1 on failure
*/
int pckt_assemble(RawPckt *raw, Pckt *cooked, struct EthInterface_ *intf);
#endif //ETHERLIB_PCKT_ASSEMBLER_H