X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=src%2Fnetwork.h;h=079cea387df6e8cef3cca6113638105deed90702;hp=60ae77363e42aabbbcffce911ea6a0bec3b3ab9a;hb=d525cc402e67386372745a4bc3c04a488ea264f7;hpb=3bffc32233a1608ba3338f39bc5193665f3095cc diff --git a/src/network.h b/src/network.h index 60ae773..079cea3 100644 --- a/src/network.h +++ b/src/network.h @@ -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 */