]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/irdp.h
*: s/TRUE/true/, s/FALSE/false/
[mirror_frr.git] / zebra / irdp.h
index ea190b574df0896af22df60ae7f05f7b2e74fcfc..ff4ab8dfbd2ac9068147cc51359a53296b4c10bf 100644 (file)
@@ -28,8 +28,9 @@
 
 #include "lib/vty.h"
 
-#define TRUE 1
-#define FALSE 0
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /* ICMP Messages */
 #ifndef ICMP_ROUTERADVERT
 */
 
 struct irdp_interface {
+       bool started;
+
        unsigned long MaxAdvertInterval;
        unsigned long MinAdvertInterval;
        unsigned long Preference;
 
-       u_int32_t flags;
+       uint32_t flags;
 
 #define IF_ACTIVE               (1<<0) /* ICMP Active */
 #define IF_BROADCAST            (1<<1) /* 255.255.255.255 */
@@ -128,7 +131,7 @@ struct irdp_interface {
        struct interface *ifp;
        struct thread *t_advertise;
        unsigned long irdp_sent;
-       u_int16_t Lifetime;
+       uint16_t Lifetime;
 
        struct list *AdvPrefList;
 };
@@ -145,8 +148,11 @@ extern int irdp_send_thread(struct thread *t_advert);
 extern void irdp_advert_off(struct interface *ifp);
 extern void process_solicit(struct interface *ifp);
 extern int irdp_read_raw(struct thread *r);
-extern void send_packet(struct interface *ifp, struct stream *s, u_int32_t dst,
-                       struct prefix *p, u_int32_t ttl);
+extern void send_packet(struct interface *ifp, struct stream *s, uint32_t dst,
+                       struct prefix *p, uint32_t ttl);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* _IRDP_H */