]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libsystemd-network/arp-util.h
basic/include: replace _Static_assert() with static_assert()
[thirdparty/systemd.git] / src / libsystemd-network / arp-util.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
5c1d3fc9
UTL
2#pragma once
3
4/***
810adae9 5 Copyright © 2014 Axis Communications AB. All rights reserved.
5c1d3fc9
UTL
6***/
7
5cdf13c7 8#include "forward.h"
5c1d3fc9 9
e2c7c38b
YW
10int arp_update_filter(int fd, const struct in_addr *a, const struct ether_addr *mac);
11int arp_network_bind_raw_socket(int ifindex, const struct in_addr *a, const struct ether_addr *mac);
5c1d3fc9 12
e1a3915b
YW
13int arp_send_packet(
14 int fd,
15 int ifindex,
ecad63f8 16 const struct in_addr *pa,
e1a3915b
YW
17 const struct ether_addr *ha,
18 bool announce);
19static inline int arp_send_probe(
20 int fd,
21 int ifindex,
ecad63f8 22 const struct in_addr *pa,
e1a3915b
YW
23 const struct ether_addr *ha) {
24 return arp_send_packet(fd, ifindex, pa, ha, false);
25}
26static inline int arp_send_announcement(
27 int fd,
28 int ifindex,
ecad63f8 29 const struct in_addr *pa,
e1a3915b
YW
30 const struct ether_addr *ha) {
31 return arp_send_packet(fd, ifindex, pa, ha, true);
32}