]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/ioctl.h
add cplusplus guards to all zebra headers
[mirror_frr.git] / zebra / ioctl.h
index 02f8e6b880127cbe375da1eafd7e68b9cc220c9f..67ffd45a0818adec7e5dceaa9916e2b92bc55c70 100644 (file)
 #ifndef _ZEBRA_IOCTL_H
 #define _ZEBRA_IOCTL_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Prototypes. */
 extern void ifreq_set_name(struct ifreq *, struct interface *);
-extern int if_ioctl(u_long, caddr_t);
+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);
@@ -40,7 +45,7 @@ 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 int if_ioctl_ipv6(unsigned long, caddr_t);
 extern struct connected *if_lookup_linklocal(struct interface *);
 
 #define AF_IOCTL(af, request, buffer)                                          \
@@ -52,4 +57,8 @@ extern struct connected *if_lookup_linklocal(struct interface *);
 
 #endif /* SOLARIS_IPV6 */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _ZEBRA_IOCTL_H */