]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/libsystemd-network/icmp6-util.h
7003d8fbb71a2b8d414adeab5e0155a80b0af39e
[thirdparty/systemd.git] / src / libsystemd-network / icmp6-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright (C) 2014-2015 Intel Corporation. All rights reserved.
6 ***/
7
8 #include <net/ethernet.h>
9
10 #include "time-util.h"
11
12 #define IN6ADDR_ALL_ROUTERS_MULTICAST_INIT \
13 { { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
14 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 } } }
15
16 #define IN6ADDR_ALL_NODES_MULTICAST_INIT \
17 { { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
18 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } } }
19
20 int icmp6_bind_router_solicitation(int index);
21 int icmp6_bind_router_advertisement(int index);
22 int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr);
23 int icmp6_receive(int fd, void *buffer, size_t size, struct in6_addr *dst,
24 triple_timestamp *timestamp);