]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/irdp.h
isisd: implement the 'lsp-too-large' notification
[mirror_frr.git] / zebra / irdp.h
index 01308b915b3f4a316e142a771d465fb42b3fd6c5..4800e75be378213f162e24f64eabf7e1231ed468 100644 (file)
 */
 
 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 +130,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;
 };
@@ -138,16 +140,15 @@ struct Adv {
        int pref;
 };
 
-extern void irdp_init(void);
+extern void irdp_if_init(void);
 extern int irdp_sock_init(void);
-extern void irdp_finish(void);
-extern void irdp_config_write(struct vty *, struct interface *);
+extern int irdp_config_write(struct vty *, struct interface *);
 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);
 
 
 #endif /* _IRDP_H */