OpenOCD
|
Device discovery (TCP/IP). More...
Go to the source code of this file.
Functions | |
static bool | compare_devices (const void *a, const void *b) |
static struct jaylink_device * | find_device (struct list *list, const struct jaylink_device *dev) |
static bool | parse_adv_message (struct jaylink_device *dev, const uint8_t *buffer) |
static struct jaylink_device * | probe_device (struct jaylink_context *ctx, struct sockaddr_in *addr, const uint8_t *buffer) |
Device discovery (TCP/IP).
Definition in file discovery_tcp.c.
|
static |
Definition at line 57 of file discovery_tcp.c.
References jaylink_device::hw_version, jaylink_device::iface, jaylink_device::ipv4_address, JAYLINK_HIF_TCP, jaylink_device::mac_address, jaylink_hardware_version::major, jaylink_hardware_version::minor, jaylink_device::nickname, jaylink_device::product_name, jaylink_hardware_version::revision, jaylink_device::serial_number, and jaylink_hardware_version::type.
Referenced by find_device().
|
static |
Definition at line 100 of file discovery_tcp.c.
References compare_devices(), list::data, list_find_custom(), and NULL.
Referenced by probe_device().
|
static |
Definition at line 113 of file discovery_tcp.c.
References buffer_get_u32(), jaylink_device::has_hw_version, jaylink_device::has_mac_address, jaylink_device::has_nickname, jaylink_device::has_product_name, jaylink_device::has_serial_number, jaylink_device::hw_version, jaylink_device::ipv4_address, JAYLINK_NICKNAME_MAX_LENGTH, JAYLINK_PRODUCT_NAME_MAX_LENGTH, jaylink_device::mac_address, jaylink_hardware_version::major, jaylink_hardware_version::minor, jaylink_device::nickname, jaylink_device::product_name, jaylink_hardware_version::revision, jaylink_device::serial_number, and jaylink_hardware_version::type.
Referenced by probe_device().
|
static |
Definition at line 153 of file discovery_tcp.c.
References device_allocate(), jaylink_context::devs, jaylink_context::discovered_devs, find_device(), jaylink_device::has_hw_version, jaylink_device::has_mac_address, jaylink_device::has_nickname, jaylink_device::has_product_name, jaylink_device::has_serial_number, jaylink_device::hw_version, jaylink_device::iface, jaylink_device::ipv4_address, JAYLINK_HIF_TCP, jaylink_ref_device(), log_dbg(), log_warn(), jaylink_device::mac_address, jaylink_device::nickname, NULL, parse_adv_message(), jaylink_device::product_name, and jaylink_device::serial_number.
Referenced by discovery_tcp_scan().