summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/icmp6-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-03-08 07:52:18 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-03-18 14:52:29 +0100
commitca114462177263aba4577c9628ae75612ada3762 (patch)
treeea47b800947e69661462bd8185bcf46c0e6fee60 /src/libsystemd-network/icmp6-util.h
parentndisc-option: add a way to specify invalid or unsupported options (diff)
downloadsystemd-ca114462177263aba4577c9628ae75612ada3762.tar.xz
systemd-ca114462177263aba4577c9628ae75612ada3762.zip
ndisc-option: introduce ndisc_send()
This will be used when sending Router Solicitation and Advertisement.
Diffstat (limited to 'src/libsystemd-network/icmp6-util.h')
-rw-r--r--src/libsystemd-network/icmp6-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-network/icmp6-util.h b/src/libsystemd-network/icmp6-util.h
index 72db688b0b..9c3ac463e7 100644
--- a/src/libsystemd-network/icmp6-util.h
+++ b/src/libsystemd-network/icmp6-util.h
@@ -6,7 +6,9 @@
***/
#include <net/ethernet.h>
+#include <netinet/in.h>
#include <stdbool.h>
+#include <sys/uio.h>
#include "time-util.h"
@@ -19,6 +21,7 @@
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } } }
int icmp6_bind(int ifindex, bool is_router);
+int icmp6_send(int fd, const struct sockaddr_in6 *dst, const struct iovec *iov, size_t n_iov);
int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr);
int icmp6_receive(
int fd,