23 static proto::Packet
format(std::unique_ptr<Tins::Packet> pkt,
27 static void add_raw(proto::Packet *pkt, Tins::RawPDU *raw_pdu,
29 static void add_arp(proto::Packet *pkt, Tins::ARP *arp_pdu);
30 static void add_ip(proto::Packet *pkt, Tins::IP *ip_pdu,
bool with_payload);
31 static void add_ipv6(proto::Packet *pkt, Tins::IPv6 *ipv6_pdu,
33 static proto::ICMP *format_ICMP(Tins::ICMP *icmp_pdu);
34 static proto::ICMPv6 *format_ICMPv6(Tins::ICMPv6 *icmpv6_pdu);
35 static proto::DNS *format_DNS(Tins::DNS *dns_pdu);
36 static proto::DHCP *format_DHCP(Tins::DHCP *dhcp_pdu);
37 static proto::DHCPv6 *format_DHCPv6(Tins::DHCPv6 *dhcpv6_pdu);
38 static proto::TCP *format_TCP(Tins::TCP *tcp_pdu);
39 static proto::UDP *format_UDP(Tins::UDP *udp_pdu);