-
Notifications
You must be signed in to change notification settings - Fork 2
/
send-buf.h
39 lines (30 loc) · 886 Bytes
/
send-buf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* 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, <[email protected]>
*/
#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 *);
#else
typedef int (*xmit_fct_t) (struct dsr_pkt *);
#endif
#endif /* NO_GLOBALS */
#ifndef NO_DECLS
void 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 */