X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fsolaris%2Fdevice.c;h=71d9bda9f5096f4995972886e3a94ce2c4003209;hp=28c8ff7d1bfa82a6288eca5e6dc93f9a75a32426;hb=5dde6461a321ee47b06e33f8203f2acf00a31a51;hpb=ab7c61b06f6c6e991225f2fcc32d02b8e1084aee diff --git a/src/solaris/device.c b/src/solaris/device.c index 28c8ff7d..71d9bda9 100644 --- a/src/solaris/device.c +++ b/src/solaris/device.c @@ -41,8 +41,7 @@ static char *device_info = NULL; static int device_total_in = 0; static int device_total_out = 0; -bool setup_device(void) -{ +bool setup_device(void) { int ip_fd = -1, if_fd = -1; int ppa; char *ptr; @@ -107,8 +106,7 @@ bool setup_device(void) return true; } -void close_device(void) -{ +void close_device(void) { cp(); close(device_fd); @@ -117,8 +115,7 @@ void close_device(void) free(iface); } -bool read_packet(vpn_packet_t *packet) -{ +bool read_packet(vpn_packet_t *packet) { int lenin; cp(); @@ -155,8 +152,7 @@ bool read_packet(vpn_packet_t *packet) return true; } -bool write_packet(vpn_packet_t *packet) -{ +bool write_packet(vpn_packet_t *packet) { cp(); ifdebug(TRAFFIC) logger(LOG_DEBUG, _("Writing packet of %d bytes to %s"), @@ -173,8 +169,7 @@ bool write_packet(vpn_packet_t *packet) return true; } -void dump_device_stats(void) -{ +void dump_device_stats(void) { cp(); logger(LOG_DEBUG, _("Statistics for %s %s:"), device_info, device);