Packet:build_ipv6_packet (src, dst, nx_hdr, payload, h_limit, t_class, f_label, dsr)īuild an IPv6 packet. Packet:build_ip_packet (src, dst, payload, dsf, id, flags, off, ttl, proto)īuild an IPv4 packet.
Packet:build_icmpv6_header (icmpv6_type, icmpv6_code, icmpv6_payload, ip_bin_src, ip_bin_dst)īuild an ICMPv6 header. Packet:build_icmpv6_echo_request (id, sequence, data, mac_src, mac_dst, ip_bin_src, ip_bin_dst, tc, fl, hop_limit)īuild an ICMPv6 Echo Request frame. Packet:build_icmp_header (icmp_type, icmp_code, icmp_payload, ip_bin_src, ip_bin_dst)īuild an ICMP header. Packet:build_icmp_echo_request (id, seq, data, mac_src, mac_dst, ip_bin_src, ip_bin_dst, dsf)īuild an ICMP Echo Request frame. mactobin (str)Ĭonvert a MAC address string (like "00:23:ae:5d:3b:10") toĪ raw six-byte long. Generate the link-local IPv6 address from the MAC address. Frame:ether_parse (frame)Ĭalculate a standard Internet checksum. Source: Functions Frame:build_ether_frame (mac_dst, mac_src, ether_type, packet)īuild an Ethernet frame.