#ifndef RERR_H #define RERR_H #include #include #include #include #include "aodv.h" #include "event_queue.h" #include "route_table.h" #include "utils.h" int link_break( u_int32_t brk_dst_ip); int recv_rerr(struct event_queue_entry *working_packet); struct rerrhdr* create_rerrhdr(u_int32_t tmp_ip, u_int32_t tmp_dst_seq); int append_unr_dst(struct rerrhdr *tmp_rerrhdr, u_int32_t tmp_ip,u_int32_t tmp_dst_seq); void free_rerrhdr(struct rerrhdr *tmp_rerrhdr); int send_rerr(struct rerrhdr *tmp_rerrhdr, u_int32_t sent_to); void route_expiry(struct route_table_entry *tmp_rtentry); void print_rerrhdr(struct rerrhdr *new_rerrhdr); int host_unr(u_int32_t brk_dst_ip); #endif