]> git.proxmox.com Git - mirror_frr.git/blob - zebra/ioctl.h
Merge pull request #13235 from Orange-OpenSource/link-state
[mirror_frr.git] / zebra / ioctl.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Common ioctl functions.
4 * Copyright (C) 1998 Kunihiro Ishiguro
5 */
6
7 #ifndef _ZEBRA_IOCTL_H
8 #define _ZEBRA_IOCTL_H
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /* Prototypes. */
15 extern void ifreq_set_name(struct ifreq *, struct interface *);
16 extern int if_ioctl(unsigned long, caddr_t);
17 extern int vrf_if_ioctl(unsigned long request, caddr_t buffer, vrf_id_t vrf_id);
18
19 extern int if_set_flags(struct interface *, uint64_t);
20 extern int if_unset_flags(struct interface *, uint64_t);
21 extern void if_get_flags(struct interface *);
22
23 extern void if_get_metric(struct interface *);
24 extern void if_get_mtu(struct interface *);
25
26 #define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer)
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif /* _ZEBRA_IOCTL_H */