?? rrep_ack.c
字號:
/* Kernel AODV v2.1National Institute of Standards and Technology Luke Klein-Berndt----------------------------------------------------- Version 2.1 new features: * Much more stable! * Added locks around important areas * Multihop Internet gatewaying now works * Multicast hack added * Many bug fixes!-----------------------------------------------------Originally based upon MadHoc code. I am notsure how much of it is left anymore, but MadHocproved to be a great starting point.MadHoc was written by - Fredrik Lilieblad,Oskar Mattsson, Petra Nylund, Dan Ouchterlonyand Anders Roxenhag Mail: mad-hoc@flyinglinux.netThis software is Open Source under the GNU General Public Licence.*/#include "rrep_ack.h"extern u_int64_t last_hello;extern u_int64_t avg_hello_response;void gen_rrep_ack( u_int32_t dst){ struct rrep_ack *tmp_ack; if ((tmp_ack = (struct rrep_ack*) kmalloc(sizeof (struct rrep_ack),GFP_ATOMIC)) == NULL) { #ifndef NO_ERROR printk("RREP_ACK: error with tmp_ack\n"); #endif } tmp_ack->type=4; send_message(dst,1, tmp_ack, sizeof(struct rrep_ack));}int recv_rrep_ack(struct event_queue_entry *working_packet){ return 1;}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -