Function rs2_get_gateway

Function Documentation

void rs2_get_gateway(const rs2_device *device, rs2_ip_address configured_gateway, rs2_ip_address actual_gateway, rs2_error **error)

Get gateway address

Parameters:
  • device[in] RealSense device

  • configured_gateway[out] Configured gateway address to populate

  • actual_gateway[out] Actual gateway address to populate. Might be different from configured_gateway if DHCP is enabled

  • error[out] If non-null, receives any error that occurs during this call, otherwise, errors are ignored