X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=zebra%2Fioctl.h;h=2a8ea779092839c5b5308a8316e3c0b7967b683e;hb=6d53d7b1af1f45da8ab8c10add5efee81008ff25;hp=b11a90f193fbb4c9d43d268589d40078cbf4b315;hpb=b440fe5c82f73a4f34ebc59ac07e95f56e1193e0;p=mirror_frr.git diff --git a/zebra/ioctl.h b/zebra/ioctl.h index b11a90f19..2a8ea7790 100644 --- a/zebra/ioctl.h +++ b/zebra/ioctl.h @@ -23,30 +23,31 @@ #define _ZEBRA_IOCTL_H /* Prototypes. */ -extern void ifreq_set_name (struct ifreq *, struct interface *); -extern int if_ioctl (u_long, caddr_t); +extern void ifreq_set_name(struct ifreq *, struct interface *); +extern int if_ioctl(unsigned long, caddr_t); +extern int vrf_if_ioctl(unsigned long request, caddr_t buffer, vrf_id_t vrf_id); -extern int if_set_flags (struct interface *, uint64_t); -extern int if_unset_flags (struct interface *, uint64_t); -extern void if_get_flags (struct interface *); +extern int if_set_flags(struct interface *, uint64_t); +extern int if_unset_flags(struct interface *, uint64_t); +extern void if_get_flags(struct interface *); -extern int if_set_prefix (struct interface *, struct connected *); -extern int if_unset_prefix (struct interface *, struct connected *); +extern int if_set_prefix(struct interface *, struct connected *); +extern int if_unset_prefix(struct interface *, struct connected *); -extern void if_get_metric (struct interface *); -extern void if_get_mtu (struct interface *); +extern void if_get_metric(struct interface *); +extern void if_get_mtu(struct interface *); -extern int if_prefix_add_ipv6 (struct interface *, struct connected *); -extern int if_prefix_delete_ipv6 (struct interface *, struct connected *); +extern int if_prefix_add_ipv6(struct interface *, struct connected *); +extern int if_prefix_delete_ipv6(struct interface *, struct connected *); #ifdef SOLARIS_IPV6 -extern int if_ioctl_ipv6(u_long, caddr_t); -extern struct connected *if_lookup_linklocal( struct interface *); +extern int if_ioctl_ipv6(unsigned long, caddr_t); +extern struct connected *if_lookup_linklocal(struct interface *); -#define AF_IOCTL(af, request, buffer) \ - ((af) == AF_INET? if_ioctl(request, buffer) : \ - if_ioctl_ipv6(request, buffer)) -#else /* SOLARIS_IPV6 */ +#define AF_IOCTL(af, request, buffer) \ + ((af) == AF_INET ? if_ioctl(request, buffer) \ + : if_ioctl_ipv6(request, buffer)) +#else /* SOLARIS_IPV6 */ #define AF_IOCTL(af, request, buffer) if_ioctl(request, buffer)