send-buf.h
来自「无线自组织网络协议」· C头文件 代码 · 共 40 行
H
40 行
/* Copyright (C) Uppsala University * * This file is distributed under the terms of the GNU general Public * License (GPL), see the file LICENSE * * Author: Erik Nordström, <erikn@it.uu.se> */#ifndef _SEND_BUF_H#define _SEND_BUF_H#include "dsr.h"#ifndef NO_GLOBALS#define SEND_BUF_DROP 1#define SEND_BUF_SEND 2#ifdef NS2#include "ns-agent.h"typedef void (DSRUU::*xmit_fct_t) (struct dsr_pkt *);#elsetypedef int (*xmit_fct_t) (struct dsr_pkt *);#endif#endif /* NO_GLOBALS */#ifndef NO_DECLSvoid send_buf_set_max_len(unsigned int max_len);int send_buf_find(struct in_addr dst);int send_buf_enqueue_packet(struct dsr_pkt *dp, xmit_fct_t okfn);int send_buf_set_verdict(int verdict, struct in_addr dst);int send_buf_init(void);void send_buf_cleanup(void);void send_buf_timeout(unsigned long data);#endif /* NO_DECLS */#endif /* _SEND_BUF_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?