2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2015-10-16 18:09:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/***
|
2018-06-12 17:15:23 +02:00
|
|
|
Copyright © 2014-2015 Intel Corporation. All rights reserved.
|
2015-10-16 18:09:10 +02:00
|
|
|
***/
|
|
|
|
|
|
|
|
#include <net/ethernet.h>
|
|
|
|
|
2017-05-12 15:48:38 +02:00
|
|
|
#include "time-util.h"
|
|
|
|
|
2017-05-12 15:48:36 +02:00
|
|
|
#define IN6ADDR_ALL_ROUTERS_MULTICAST_INIT \
|
|
|
|
{ { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 } } }
|
|
|
|
|
|
|
|
#define IN6ADDR_ALL_NODES_MULTICAST_INIT \
|
|
|
|
{ { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } } }
|
|
|
|
|
2020-07-02 08:49:19 +02:00
|
|
|
int icmp6_bind_router_solicitation(int ifindex);
|
|
|
|
int icmp6_bind_router_advertisement(int ifindex);
|
2015-10-16 18:09:10 +02:00
|
|
|
int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr);
|
2017-05-12 15:48:38 +02:00
|
|
|
int icmp6_receive(int fd, void *buffer, size_t size, struct in6_addr *dst,
|
|
|
|
triple_timestamp *timestamp);
|