mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 20:24:26 +01:00
Modified IP, ARP, ICMP and EthernetII's clone_packet.
This commit is contained in:
@@ -334,13 +334,7 @@ namespace Tins {
|
||||
uint8_t ar_tha[6]; /* target hardware address */
|
||||
uint32_t ar_tip; /* target IP address */
|
||||
} __attribute__((__packed__));
|
||||
|
||||
/** \brief Creates an instance of ARP using an arphdr pointer.
|
||||
*
|
||||
* \param arp_ptr The pointer to the arphdr.
|
||||
*/
|
||||
ARP(const arphdr *arp_ptr);
|
||||
|
||||
|
||||
void copy_fields(const ARP *other);
|
||||
void write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *parent);
|
||||
|
||||
|
||||
@@ -209,12 +209,6 @@ namespace Tins {
|
||||
uint16_t payload_type;
|
||||
} __attribute__((__packed__));
|
||||
|
||||
/** \brief Creates an instance of EthernetII using an ethhdr pointer.
|
||||
*
|
||||
* \param eth_ptr The pointer to the ethhdr.
|
||||
*/
|
||||
EthernetII(const ethhdr *eth_ptr);
|
||||
|
||||
void copy_fields(const EthernetII *other);
|
||||
void write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *parent);
|
||||
|
||||
|
||||
@@ -309,12 +309,6 @@ namespace Tins {
|
||||
} un;
|
||||
} __attribute__((__packed__));
|
||||
|
||||
/** \brief Creates an instance of ICMP from a icmphdr pointer.
|
||||
*
|
||||
* \param ptr The icmphdr to clone.
|
||||
*/
|
||||
ICMP(const icmphdr *ptr);
|
||||
|
||||
void copy_fields(const ICMP *other);
|
||||
|
||||
/** \brief Serialices this ICMP PDU.
|
||||
|
||||
@@ -419,12 +419,6 @@ namespace Tins {
|
||||
uint8_t* write(uint8_t* buffer);
|
||||
|
||||
} __attribute__((__packed__));
|
||||
|
||||
/** \brief Creates an instance of IP from an iphdr pointer.
|
||||
*
|
||||
* \param ptr The ip header pointer.
|
||||
*/
|
||||
IP(const iphdr *ptr);
|
||||
|
||||
void copy_fields(const IP *other);
|
||||
void init_ip_fields();
|
||||
|
||||
Reference in New Issue
Block a user