bb2d391712fb0208347ffc0b88abe146df14dc0a galt Fri Jun 21 18:21:50 2019 -0700 Adding Support for CIDR specification of subnets, e.g. 192.168.1.255/31. It still supports the older subnet format too, e.g. 192.168 diff --git src/parasol/paraHub/paraHub.h src/parasol/paraHub/paraHub.h index 11878ee..2d01ba4 100644 --- src/parasol/paraHub/paraHub.h +++ src/parasol/paraHub/paraHub.h @@ -143,25 +143,26 @@ * Do a paraMessageFree when you're done with this message. */ void hubMessagePut(struct paraMessage *pm); /* Add message to central queue. Message must be dynamically allocated. */ void hubMessageQueueInit(); /* Setup stuff for hub message queue. Must be called once * at the beginning before spawning threads. */ void sockSuckStart(struct rudp *ru); /* Start socket sucker deamon. */ extern char *hubHost; /* Name of machine running this. */ extern char hubHAddress[32]; /* Host address of machine running this. Not IP address. * Just for use between hub daemon and spokes*/ -extern unsigned char hubSubnet[4]; /* Subnet to check. */ +extern struct cidr *hubSubnet; /* Subnet to check. */ +extern struct cidr *localHostSubnet; /* Subnet to check for localHost. */ void logIt(char *format, ...); /* Print message to log file. */ #define uglyLog logIt #define MINUTE 60 #endif /* PARAHUB_H */