EtherLib/pckt_assembler.h
Wiesner András ab8d45932f Timestamping and bunch of bugfix and optimization
- Timestamping management added
- Errors due to reading uninitialized data in ARP fixed
- EthInterface reworked, incoming packet notification and payload readout separated (through which fixing concurrent access problems)
- RX and TX offloads added
- Capability to add a packet sieve layer without prior registration of specific packet class added (this makes it possible to register arbitrary EtherType connection blocks, for example)
2023-04-27 09:38:26 +02:00

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 (64)
/**
* 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