projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added OpenBSD tun device handling. Untested though.
[tinc]
/
src
/
connection.h
diff --git
a/src/connection.h
b/src/connection.h
index
c60562c
..
9a35461
100644
(file)
--- a/
src/connection.h
+++ b/
src/connection.h
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: connection.h,v 1.1.2.1
4 2001/10/10 08:49:47
guus Exp $
+ $Id: connection.h,v 1.1.2.1
6 2001/10/10 20:35:10
guus Exp $
*/
#ifndef __TINC_CONNECTION_H__
*/
#ifndef __TINC_CONNECTION_H__
@@
-72,6
+72,7
@@
typedef struct connection_t {
int protocol_version; /* used protocol */
int socket; /* socket used for this connection */
int protocol_version; /* used protocol */
int socket; /* socket used for this connection */
+ long int options; /* options for this connection */
status_bits_t status; /* status info */
struct node_t *node; /* node associated with the other end */
status_bits_t status; /* status info */
struct node_t *node; /* node associated with the other end */
@@
-89,7
+90,7
@@
typedef struct connection_t {
char *mychallenge; /* challenge we received from him */
char *hischallenge; /* challenge we sent to him */
char *mychallenge; /* challenge we received from him */
char *hischallenge; /* challenge we sent to him */
- char
*buffer;
/* metadata input buffer */
+ char
buffer[MAXBUFSIZE];
/* metadata input buffer */
int buflen; /* bytes read into buffer */
int tcplen; /* length of incoming TCPpacket */
int allow_request; /* defined if there's only one request possible */
int buflen; /* bytes read into buffer */
int tcplen; /* length of incoming TCPpacket */
int allow_request; /* defined if there's only one request possible */