diff options
author | Ted Lemon <source@isc.org> | 1999-09-09 23:28:26 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1999-09-09 23:28:26 +0000 |
commit | f5423ffabc85a9e1703a2005a10f8e5fdc0cbb77 (patch) | |
tree | 15f88c942f3e433c5f1fc214a3cfc28985d93fda /dhcpctl/remote.c | |
parent | 52f59a91163adb071289b53737cf2f7263885e69 (diff) | |
download | isc-dhcp-f5423ffabc85a9e1703a2005a10f8e5fdc0cbb77.tar.gz |
Add remote-handle to remote object.
Diffstat (limited to 'dhcpctl/remote.c')
-rw-r--r-- | dhcpctl/remote.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dhcpctl/remote.c b/dhcpctl/remote.c index b5e0a29b..aa95742e 100644 --- a/dhcpctl/remote.c +++ b/dhcpctl/remote.c @@ -184,8 +184,15 @@ isc_result_t dhcpctl_remote_set_value (omapi_object_t *h, omapi_data_string_t *name, omapi_typed_data_t *value) { + dhcpctl_remote_object_t *ro; if (h -> type != dhcpctl_remote_type) return ISC_R_INVALIDARG; + ro = (dhcpctl_remote_object_t *)h; + + if (!omapi_ds_strcmp (name, "remote-handle")) { + return omapi_get_int_value (&ro -> remote_handle, + value); + } if (h -> inner && h -> inner -> type -> set_value) return (*(h -> inner -> type -> set_value)) |