Function get_ethernet_header

Source
pub fn get_ethernet_header(is_ipv6: bool, if_name: String) -> Vec<u8> 
Expand description

Returns the ethernet header to use for the outbound packets.

§Arguments

  • ‘is_ipv6’ - whether we are using IPv6 or not

  • ‘if_name’ - the name of the interface to use