* [PATCH 09/17] netconfig: Add l_netconfig_get_{dhcp6,icmp6}_client
@ 2022-05-13 22:47 Andrew Zaborowski
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Zaborowski @ 2022-05-13 22:47 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 6c5795e..4af2fe7 100644
--- a/ell/netconfig.c
+++ b/ell/netconfig.c
@@ -1304,6 +1304,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 cf11c67..69100a2 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] 3+ messages in thread
* Re: [PATCH 09/17] netconfig: Add l_netconfig_get_{dhcp6, icmp6}_client
@ 2022-05-18 19:01 Denis Kenzior
0 siblings, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2022-05-18 19:01 UTC (permalink / raw)
To: ell
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
Hi Andrew,
On 5/13/22 17:47, Andrew Zaborowski wrote:
> ---
> ell/ell.sym | 2 ++
> ell/netconfig.c | 18 ++++++++++++++++++
> ell/netconfig.h | 4 ++++
> 3 files changed, 24 insertions(+)
>
Applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 09/17] netconfig: Add l_netconfig_get_{dhcp6,icmp6}_client
@ 2022-05-13 14:55 Andrew Zaborowski
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Zaborowski @ 2022-05-13 14:55 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 e915a12..8bb000e 100644
--- a/ell/netconfig.c
+++ b/ell/netconfig.c
@@ -1299,6 +1299,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 cf11c67..69100a2 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] 3+ messages in thread
end of thread, other threads:[~2022-05-18 19:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 22:47 [PATCH 09/17] netconfig: Add l_netconfig_get_{dhcp6,icmp6}_client Andrew Zaborowski
-- strict thread matches above, loose matches on Subject: below --
2022-05-18 19:01 [PATCH 09/17] netconfig: Add l_netconfig_get_{dhcp6, icmp6}_client Denis Kenzior
2022-05-13 14:55 [PATCH 09/17] netconfig: Add l_netconfig_get_{dhcp6,icmp6}_client Andrew Zaborowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).