forked from wujingbang/aodv-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsocket.h
executable file
·25 lines (19 loc) · 1.03 KB
/
socket.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
/***************************************************************************
socket.h - description
-------------------
begin : Wed Aug 13 2003
copyright : (C) 2003 by Luke Klein-Berndt
email : [email protected]
***************************************************************************/
/***************************************************************************
Modified by Miguel Catalan Cid - [email protected] - Version: Mon Jan 1 2010
***************************************************************************/
#ifndef SOCKET_H
#define SOCKET_H
#include "aodv.h"
int init_sock(struct socket *sock, u_int32_t ip, char *dev_name);
void close_sock(void);
int local_broadcast(u_int8_t ttl, void *data, const size_t datalen);
int send_message(u_int32_t dst_ip, u_int8_t ttl, void *data, const size_t datalen);
int send_ett_probe(u_int32_t dst_ip, void *data1, const size_t datalen1, void *data2, const size_t datalen2);
#endif