X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.h;h=fa34dcf7eaa2faf6f87fcfdfb46c8508bc138e7e;hb=6a73467d16a57ca1645d805776c4dfcaf2b05798;hp=6c5a0a6fd3779c635fed0368fc370fa773f67faf;hpb=aefe87865b47c80b415e2e01ca27b11b208b842d;p=meshlink diff --git a/src/net.h b/src/net.h index 6c5a0a6f..fa34dcf7 100644 --- a/src/net.h +++ b/src/net.h @@ -1,6 +1,9 @@ +#ifndef MESHLINK_NET_H +#define MESHLINK_NET_H + /* net.h -- header for net.c - Copyright (C) 2014 Guus Sliepen + Copyright (C) 2014, 2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,9 +20,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __MESHLINK_NET_H__ -#define __MESHLINK_NET_H__ - #include "event.h" #include "sockaddr.h" @@ -37,8 +37,8 @@ typedef struct vpn_packet_t { struct { - unsigned int probe:1; - unsigned int tcp:1; + unsigned int probe: 1; + unsigned int tcp: 1; }; uint16_t len; /* the actual number of bytes in the `data' field */ uint8_t data[MAXSIZE]; @@ -115,4 +115,4 @@ extern void retry(struct meshlink_handle *mesh); extern CRITICAL_SECTION mutex; #endif -#endif /* __MESHLINK_NET_H__ */ +#endif