summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/common.h b/common.h
index 5ce3c61..1a1bd5e 100644
--- a/common.h
+++ b/common.h
@@ -9,6 +9,10 @@
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <net/if.h>
+#include <unistd.h>
+
+typedef unsigned char byte;
/* the port users will be connecting to */
#define SERVERPORT 4950
@@ -25,4 +29,13 @@
exit(1); \
}
+#define E0P(Cmd, Msg) \
+ if ((Cmd) == NULL) { \
+ perror(Msg); \
+ exit(1); \
+ }
+
+#define IGN(Cmd) \
+ if (Cmd) {}
+
#endif // UDP_BROADCAST_COMMON
contact: Jan Huwald // Impressum