ip2pkt

Function ip2pkt 

Source
pub fn ip2pkt(ip: &IpAddr) -> Vec<u8> 
Expand description

Converts IpAddr to sequence of bytes coded specially for the payload of package.

§Arguments

  • ip - the argument with IP address

§Returns

  • Vec is returned with encoded data