Function gnunet_sys::GNUNET_TUN_initialize_ipv4_header[][src]

pub unsafe extern "C" fn GNUNET_TUN_initialize_ipv4_header(
    ip: *mut GNUNET_TUN_IPv4Header,
    protocol: u8,
    payload_length: u16,
    src: *const in_addr,
    dst: *const in_addr
)

Initialize an IPv4 header.

@param ip header to initialize @param protocol protocol to use (i.e. IPPROTO_UDP) @param payload_length number of bytes of payload that follow (excluding IPv4 header) @param src source IP address to use @param dst destination IP address to use