pub unsafe extern "C" fn SOCU_GetNetworkOpt(
    level: c_int,
    optname: NetworkOpt,
    optval: *mut c_void,
    optlen: *mut socklen_t
) -> c_int
Expand description

Retrieves information from the network configuration. Similar to getsockopt().

§Arguments

  • level - Only value allowed seems to be SOL_CONFIG
  • optname - The option to be retrieved
  • optval - Will contain the output of the command
  • optlen - Size of the optval buffer, will be updated to hold the size of the output

§Returns

0 if successful. -1 if failed, and errno will be set accordingly. Can also return a system error code.