summaryrefslogtreecommitdiff
path: root/usr/src/lib/libdhcpagent/common
diff options
context:
space:
mode:
authorAndy Fiddaman <omnios@citrus-it.co.uk>2019-08-22 14:59:11 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2019-10-24 20:12:56 +0000
commit78a2e113edb6fe0a0382b403b55d92e8f0bba78f (patch)
treeb87dece407956c78f19382fe823691d6d71c415c /usr/src/lib/libdhcpagent/common
parenta2e92fdb91a6e5451ecb5488b74ee1e95a4bafd0 (diff)
downloadillumos-joyent-78a2e113edb6fe0a0382b403b55d92e8f0bba78f.tar.gz
9531 Want netstat -u to show PIDs associated with sockets
11707 provide 64-bit libdhcpagent 11708 netstat should be smatch and CERRWARN clean Portions contributed by: Mohamed A. Khalfella <khalfella@gmail.com> Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Dominik Hassler <hadfl@omniosce.org> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/lib/libdhcpagent/common')
-rw-r--r--usr/src/lib/libdhcpagent/common/dhcpagent_ipc.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/usr/src/lib/libdhcpagent/common/dhcpagent_ipc.h b/usr/src/lib/libdhcpagent/common/dhcpagent_ipc.h
index be2da33666..beed5b1ffc 100644
--- a/usr/src/lib/libdhcpagent/common/dhcpagent_ipc.h
+++ b/usr/src/lib/libdhcpagent/common/dhcpagent_ipc.h
@@ -24,6 +24,7 @@
*/
/*
* Copyright (c) 2013, 2015 by Delphix. All rights reserved.
+ * Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
*/
#ifndef _DHCPAGENT_IPC_H
@@ -92,7 +93,7 @@ typedef enum {
typedef enum {
DHCP_DROP, DHCP_EXTEND, DHCP_PING, DHCP_RELEASE,
- DHCP_START, DHCP_STATUS, DHCP_INFORM, DHCP_GET_TAG,
+ DHCP_START, DHCP_STATUS, DHCP_INFORM, DHCP_GET_TAG,
DHCP_NIPC, /* number of supported requests */
DHCP_PRIMARY = 0x100,
DHCP_V6 = 0x200
@@ -219,10 +220,16 @@ typedef struct dhcp_status {
char if_name[LIFNAMSIZ];
DHCPSTATE if_state; /* state of interface; see above */
- time_t if_began; /* time lease began (absolute) */
- time_t if_t1; /* renewing time (absolute) */
- time_t if_t2; /* rebinding time (absolute) */
- time_t if_lease; /* lease expiration time (absolute) */
+ /*
+ * We use int64_t here so that the structure is the same in both
+ * 32 and 64-bit, since it is passed via IPC.
+ * Once everything that uses this is 64-bit, these could be changed
+ * to time_t.
+ */
+ int64_t if_began; /* time lease began (absolute) */
+ int64_t if_t1; /* renewing time (absolute) */
+ int64_t if_t2; /* rebinding time (absolute) */
+ int64_t if_lease; /* lease expiration time (absolute) */
uint16_t if_dflags; /* DHCP flags on this if; see above */