aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <jaylink-dev@marcschink.de>2018-02-05 13:32:01 +0100
committerMarc Schink <jaylink-dev@marcschink.de>2018-02-05 13:32:01 +0100
commitb195837f4a9316d1d5569ae90ec20b7fb52938b8 (patch)
tree469c3d0207d78b94e29f882a73220d43051abd72
parent8645845c1abebd004e991ba9a7f808f4fd0c608b (diff)
downloadlibjaylink-b195837f4a9316d1d5569ae90ec20b7fb52938b8.zip
libjaylink-b195837f4a9316d1d5569ae90ec20b7fb52938b8.tar.gz
libjaylink-b195837f4a9316d1d5569ae90ec20b7fb52938b8.tar.bz2
Add constants for IPv4 device information
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
-rw-r--r--libjaylink/libjaylink.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/libjaylink/libjaylink.h b/libjaylink/libjaylink.h
index 223aa84..a542c05 100644
--- a/libjaylink/libjaylink.h
+++ b/libjaylink/libjaylink.h
@@ -169,7 +169,38 @@ enum jaylink_hardware_info {
/** Current consumption of the target in mA. */
JAYLINK_HW_INFO_ITARGET = (1 << 2),
/** Peak current consumption of the target in mA. */
- JAYLINK_HW_INFO_ITARGET_PEAK = (1 << 3)
+ JAYLINK_HW_INFO_ITARGET_PEAK = (1 << 3),
+ /**
+ * Device's IPv4 address in network byte order.
+ *
+ * If the address is 0.0.0.0 and DHCP is enabled, no address is
+ * assigned (yet).
+ *
+ * @note The value is valid only if the device is configured in DHCP
+ * mode.
+ */
+ JAYLINK_HW_INFO_IPV4_ADDRESS = (1 << 16),
+ /**
+ * IPv4 netmask in network byte order.
+ *
+ * @note The value is valid only if the device is configured in DHCP
+ * mode.
+ */
+ JAYLINK_HW_INFO_IPV4_NETMASK = (1 << 17),
+ /**
+ * Gateway IPv4 address in network byte order.
+ *
+ * @note The value is valid only if the device is configured in DHCP
+ * mode.
+ */
+ JAYLINK_HW_INFO_IPV4_GATEWAY = (1 << 18),
+ /**
+ * DNS server IPv4 address in network byte order.
+ *
+ * @note The value is valid only if the device is configured in DHCP
+ * mode.
+ */
+ JAYLINK_HW_INFO_IPV4_DNS = (1 << 19)
};
/** Device counters. */