leaps_inet_cfg_get
This call is available only on the ethernet gateway. It gets the current local network interface configuration. Refer to leaps_inet_cfg_set for the payload layout and field descriptions.
(none)
is_static: ‘0’ | ‘1’ (‘0’ = DHCP, ‘1’ = static IP)
use_wifi: ‘0’ | ‘1’ (‘0’ = Ethernet, ‘1’ = WiFi)
addr: IPv4 address as little-endian uint32 (valid when is_static = ‘1’)
netmask: IPv4 netmask as little-endian uint32 (valid when is_static = ‘1’)
gw: IPv4 gateway as little-endian uint32 (valid when is_static = ‘1’)
Example
TLV Request |
|
|---|---|
Type |
Length |
0x99 |
0x00 |
Type 0x99 (153 dec) means command leaps_inet_cfg_get
TLV response |
|||||
|---|---|---|---|---|---|
Type |
Length |
Value |
Type |
Length |
Value |
byte 0: flags (is_static, use_wifi)
bytes 1–3: reserved
bytes 4–7: addr (LE)
bytes 8–11: netmask (LE)
bytes 12–15: gw (LE)
|
|||||
0x40 |
0x01 |
0x00 |
0x7B |
0x10 |
0x01 0x00 0x00 0x00 0x0A 0x01 0xA8 0xC0 0x00 0xFF 0xFF 0xFF 0x01 0x01 0xA8 0xC0 |
Type 0x40 means status code
Type 0x7B (123 dec) means local network configuration (same layout as leaps_inet_cfg_set input)