]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libsystemd-network/arp-util.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / libsystemd-network / arp-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
5c1d3fc9
UTL
2#pragma once
3
4/***
5 This file is part of systemd.
6
7 Copyright (C) 2014 Axis Communications AB. 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 <netinet/if_ether.h>
24
5c1d3fc9 25#include "socket-util.h"
71d35b6b 26#include "sparse-endian.h"
5c1d3fc9 27
996d1697 28int arp_network_bind_raw_socket(int index, be32_t address, const struct ether_addr *eth_mac);
5c1d3fc9 29
996d1697
TG
30int arp_send_probe(int fd, int ifindex,
31 be32_t pa, const struct ether_addr *ha);
32int arp_send_announcement(int fd, int ifindex,
33 be32_t pa, const struct ether_addr *ha);