]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
940367a0 TG |
2 | #pragma once |
3 | ||
4 | /*** | |
810adae9 | 5 | Copyright © 2014-2015 Intel Corporation. All rights reserved. |
940367a0 TG |
6 | ***/ |
7 | ||
8 | #include <net/ethernet.h> | |
9 | ||
88d5a3db PF |
10 | #include "time-util.h" |
11 | ||
e2e81228 PF |
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 | ||
1a6c9136 YW |
20 | int icmp6_bind_router_solicitation(int ifindex); |
21 | int icmp6_bind_router_advertisement(int ifindex); | |
940367a0 | 22 | int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr); |
88d5a3db PF |
23 | int icmp6_receive(int fd, void *buffer, size_t size, struct in6_addr *dst, |
24 | triple_timestamp *timestamp); |