Let's not leak details from src/shared and src/libsystemd into src/basic, even though you can't actually do anything useful with just forward declarations from src/shared. The sd-forward.h header is put in src/libsystemd/sd-common as we don't have a directory for shared internal headers for libsystemd yet. Let's also rename forward.h to basic-forward.h to keep things self-explanatory.
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
/***
|
|
Copyright © 2014-2015 Intel Corporation. All rights reserved.
|
|
***/
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include "sd-forward.h"
|
|
|
|
#define IN6_ADDR_ALL_ROUTERS_MULTICAST \
|
|
((const struct in6_addr) { { { \
|
|
0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, \
|
|
} } } )
|
|
|
|
#define IN6_ADDR_ALL_NODES_MULTICAST \
|
|
((const struct in6_addr) { { { \
|
|
0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, \
|
|
} } } )
|
|
|
|
int icmp6_bind(int ifindex, bool is_router);
|
|
int icmp6_send(int fd, const struct in6_addr *dst, const struct iovec *iov, size_t n_iov);
|
|
int icmp6_receive(
|
|
int fd,
|
|
void *buffer,
|
|
size_t size,
|
|
struct in6_addr *ret_sender,
|
|
triple_timestamp *ret_timestamp);
|