]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
940367a0 TG |
2 | #pragma once |
3 | ||
4 | /*** | |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright (C) 2014-2015 Intel Corporation. All rights reserved. | |
8 | ||
9 | systemd is free software; you can redistribute it and/or modify it | |
10 | under the terms of the GNU Lesser General Public License as published by | |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
12 | (at your option) any later version. | |
13 | ||
14 | systemd is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 | Lesser General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU Lesser General Public License | |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
21 | ***/ | |
22 | ||
23 | #include <net/ethernet.h> | |
24 | ||
88d5a3db PF |
25 | #include "time-util.h" |
26 | ||
e2e81228 PF |
27 | #define IN6ADDR_ALL_ROUTERS_MULTICAST_INIT \ |
28 | { { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ | |
29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 } } } | |
30 | ||
31 | #define IN6ADDR_ALL_NODES_MULTICAST_INIT \ | |
32 | { { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ | |
33 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } } } | |
34 | ||
940367a0 | 35 | int icmp6_bind_router_solicitation(int index); |
6142bb37 | 36 | int icmp6_bind_router_advertisement(int index); |
940367a0 | 37 | int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr); |
88d5a3db PF |
38 | int icmp6_receive(int fd, void *buffer, size_t size, struct in6_addr *dst, |
39 | triple_timestamp *timestamp); |