📄 rrep_ack.c
字号:
/*************************************************************************** rrep_ack.c - description ------------------- begin : Tue Nov 18 2003 copyright : (C) 2003 by Luke Klein-Berndt email : kleinb@nist.gov ***************************************************************************/#include "rrep_ack.h"extern u_int64_t g_last_hello;void gen_rrep_ack( rrep *tmp_rrep, task *tmp_packet){ rrep_ack *tmp_ack; aodv_route *tmp_route; if ((tmp_ack = (rrep_ack*) kmalloc(sizeof (rrep_ack),GFP_ATOMIC)) == NULL) { printk("RREP_ACK: error with tmp_ack\n"); return; } tmp_ack->type=4; send_message(tmp_rrep->src_ip,1, tmp_ack, sizeof(rrep_ack), tmp_packet->dev); kfree( tmp_ack);}int recv_rrep_ack(task *working_packet){ return 1;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -