projects
/
my-code
/
ivac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed udp "addtess already used" thing + introduced nic device string (used later)
[my-code/ivac.git]
/
src
/
network.h
diff --git
a/src/network.h
b/src/network.h
index
60ae773
..
079cea3
100644
(file)
--- a/
src/network.h
+++ b/
src/network.h
@@
-17,6
+17,7
@@
/* defines */
#define MAX_CONNECTIONS 32
/* defines */
#define MAX_CONNECTIONS 32
+#define MAX_NIC_DEVICE 32
#define IP_DIGITS 16
#define C_IN_USE (1<<0)
#define IP_DIGITS 16
#define C_IN_USE (1<<0)
@@
-61,6
+62,7
@@
typedef struct s_net {
int c_count;
t_connection connection[MAX_CONNECTIONS];
unsigned int sendmask; /* 32 bits for maximum of 32 connections */
int c_count;
t_connection connection[MAX_CONNECTIONS];
unsigned int sendmask; /* 32 bits for maximum of 32 connections */
+ char nic[MAX_NIC_DEVICE];
} t_net;
/* function prototypes */
} t_net;
/* function prototypes */