]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/libsystemd-network/ndisc-internal.h
network: bridge vlan without PVID (#5899)
[thirdparty/systemd.git] / src / libsystemd-network / ndisc-internal.h
CommitLineData
1e7a0e21
LP
1#pragma once
2
3/***
4 This file is part of systemd.
5
6 Copyright (C) 2014 Intel Corporation. All rights reserved.
7
8 systemd is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Lesser General Public License as published by
10 the Free Software Foundation; either version 2.1 of the License, or
11 (at your option) any later version.
12
13 systemd is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public License
19 along with systemd; If not, see <http://www.gnu.org/licenses/>.
20***/
21
22#include "log.h"
23
24#include "sd-ndisc.h"
25
26struct sd_ndisc {
27 unsigned n_ref;
28
29 int ifindex;
30 int fd;
31
32 sd_event *event;
33 int event_priority;
34
35 struct ether_addr mac_addr;
36 uint8_t hop_limit;
37 uint32_t mtu;
38
39 sd_event_source *recv_event_source;
40 sd_event_source *timeout_event_source;
41
42 unsigned nd_sent;
43
44 sd_ndisc_callback_t callback;
45 void *userdata;
46};
47
48#define log_ndisc_errno(error, fmt, ...) log_internal(LOG_DEBUG, error, __FILE__, __LINE__, __func__, "NDISC: " fmt, ##__VA_ARGS__)
49#define log_ndisc(fmt, ...) log_ndisc_errno(0, fmt, ##__VA_ARGS__)