leaps_peer_cfg_get

This call is available only on the ethernet gateway. It gets the current peer server configuration. Refer to leaps_peer_cfg_set for the payload layout and field descriptions.


Input
  • (none)

Output
  • Status Code

  • use_tls: ‘0’ | ‘1’ (‘0’ = TLS disabled, ‘1’ = TLS enabled)

  • mutual_auth: ‘0’ | ‘1’ (‘1’ = mutual TLS authentication)

  • use_mac_filter: ‘0’ | ‘1’ (‘1’ = MAC address filter enabled)

  • auth_check_CN: ‘0’ | ‘1’ (‘1’ = verify server CN in TLS certificate)

  • port: uint16 little-endian (server port number)

  • host: ASCII string (server hostname or IP, max 63 characters on wire, no null terminator)


Example

TLV Request

Type

Length

0x9B

0x00

Type 0x9B (155 dec) means command leaps_peer_cfg_get

TLV response

Type

Length

Value

Type

Length

Value

byte 0: flags
bytes 1–2: reserved
bytes 3–4: port (LE)
byte 5: host_len
bytes 6..(6+host_len-1): host

0x40

0x01

0x00

0x7C

0x16

0x01 0x00 0x00 0xB3 0x22 0x10 0x6D 0x71 0x74 0x74 0x2E 0x65 0x78 0x61 0x6D 0x70 0x6C 0x65 0x2E 0x63 0x6F 0x6D

Type 0x40 means status code

Type 0x7C (124 dec) means peer/server configuration (same layout as leaps_peer_cfg_set input)