00001 #ifndef RERR_H 00002 #define RERR_H 00003 00004 #include <linux/module.h> 00005 #include <linux/kernel.h> 00006 #include <linux/skbuff.h> 00007 #include <linux/in.h> 00008 00009 #include "aodv.h" 00010 #include "event_queue.h" 00011 #include "route_table.h" 00012 #include "utils.h" 00013 00014 int link_break( u_int32_t brk_dst_ip); 00015 int recv_rerr(struct event_queue_entry *working_packet); 00016 struct rerrhdr* create_rerrhdr(u_int32_t tmp_ip, u_int32_t tmp_dst_seq); 00017 int append_unr_dst(struct rerrhdr *tmp_rerrhdr, u_int32_t tmp_ip,u_int32_t tmp_dst_seq); 00018 void free_rerrhdr(struct rerrhdr *tmp_rerrhdr); 00019 int send_rerr(struct rerrhdr *tmp_rerrhdr, u_int32_t sent_to); 00020 void route_expiry(struct route_table_entry *tmp_rtentry); 00021 void print_rerrhdr(struct rerrhdr *new_rerrhdr); 00022 int host_unr(u_int32_t brk_dst_ip); 00023 00024 #endif 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041