pub fn new_echo_request(id: u16, seq: u16, payload: B) -> IcmpPacket<B> {
        let id  = id as u32;
        let seq = seq as u32;
        IcmpPacket {
            icmp_type: IcmpPacketType::Echo,
            code:      0,
            rest:      (id << 16) | seq,
            body:      payload
        }
    }
/// Create a new echo request.
Create a new echo request.
Create a new echo request .
pub fn new_echo_request(id: u16, seq: u16, payload: B) -> IcmpPacket<B> {
        let id  = id as u32;
        let seq = seq as u32;
        IcmpPacket {
            icmp_type: IcmpPacketType::Echo,
            code:      0,
            rest:      (id << 16) | seq,
            body:      payload
        }
    }
pub fn new_echo_request ( id : u16 , seq : u16 , payload : B ) -> IcmpPacket < B > { let id = id as u32 ; let seq = seq as u32 ; IcmpPacket { icmp_type : IcmpPacketType :: Echo , code : 0 , rest : ( id << 16 ) | seq , body : payload } }
Create a new echo request.
Create a new echo request .
id
u16
seq
u16
payload
B
id
u16
seq
u16
payload
B