* [PATCH 06/11] netconfig: Add l_netconfig_get_{dhcp6,icmp6}_client
@ 2022-04-20 22:10 Andrew Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrew Zaborowski @ 2022-04-20 22:10 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 1911 bytes --]
---
ell/ell.sym | 2 ++
ell/netconfig.c | 18 ++++++++++++++++++
ell/netconfig.h | 4 ++++
3 files changed, 24 insertions(+)
diff --git a/ell/ell.sym b/ell/ell.sym
index 60dd257..0f9f884 100644
--- a/ell/ell.sym
+++ b/ell/ell.sym
@@ -749,6 +749,8 @@ global:
l_netconfig_start;
l_netconfig_stop;
l_netconfig_get_dhcp_client;
+ l_netconfig_get_dhcp6_client;
+ l_netconfig_get_icmp6_client;
l_netconfig_set_event_handler;
l_netconfig_apply_rtnl;
l_netconfig_get_addresses;
diff --git a/ell/netconfig.c b/ell/netconfig.c
index 3c1ad32..0419b0f 100644
--- a/ell/netconfig.c
+++ b/ell/netconfig.c
@@ -1004,6 +1004,24 @@ LIB_EXPORT struct l_dhcp_client *l_netconfig_get_dhcp_client(
return netconfig->dhcp_client;
}
+LIB_EXPORT struct l_dhcp6_client *l_netconfig_get_dhcp6_client(
+ struct l_netconfig *netconfig)
+{
+ if (unlikely(!netconfig))
+ return NULL;
+
+ return netconfig->dhcp6_client;
+}
+
+LIB_EXPORT struct l_icmp6_client *l_netconfig_get_icmp6_client(
+ struct l_netconfig *netconfig)
+{
+ if (unlikely(!netconfig))
+ return NULL;
+
+ return netconfig->icmp6_client;
+}
+
LIB_EXPORT void l_netconfig_set_event_handler(struct l_netconfig *netconfig,
l_netconfig_event_cb_t handler,
void *user_data,
diff --git a/ell/netconfig.h b/ell/netconfig.h
index f90ec81..a50a895 100644
--- a/ell/netconfig.h
+++ b/ell/netconfig.h
@@ -75,6 +75,10 @@ void l_netconfig_stop(struct l_netconfig *netconfig);
struct l_dhcp_client *l_netconfig_get_dhcp_client(
struct l_netconfig *netconfig);
+struct l_dhcp6_client *l_netconfig_get_dhcp6_client(
+ struct l_netconfig *netconfig);
+struct l_icmp6_client *l_netconfig_get_icmp6_client(
+ struct l_netconfig *netconfig);
void l_netconfig_set_event_handler(struct l_netconfig *netconfig,
l_netconfig_event_cb_t handler,
--
2.32.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-20 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 22:10 [PATCH 06/11] netconfig: Add l_netconfig_get_{dhcp6,icmp6}_client Andrew Zaborowski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.