fixed udp "addtess already used" thing + introduced nic device string (used later)
[my-code/ivac.git] / src / network.h
index 60ae773..079cea3 100644 (file)
@@ -17,6 +17,7 @@
 
 /* defines */
 #define MAX_CONNECTIONS 32
+#define MAX_NIC_DEVICE 32
 
 #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 */
+  char nic[MAX_NIC_DEVICE];
 } t_net;
 
 /* function prototypes */