1 Pulled from https://raw.githubusercontent.com/kaizawa/patch-vpnc-solaris/master/patch-vpnc-solaris on 2016-11-17 (original commit 2012-07-28).
4 This is a patch for vpnc 0.5.3 for Solaris 11.
6 https://github.com/kaizawa/patch-vpnc-solaris
7 Kazuyoshi Aizawa <admin2@whiteboard.ne.jp>
12 Copy patch file to the directory you exetracted vpnc 0.5.3.
13 Then run patch command.
16 sol11 $ patch -p1 < patch-vpnc-solaris
17 patching file config.c
18 patching file sysdep.c
22 diff --git a/config.c b/config.c
23 index c12b09e..972768f 100644
29 #include "decrypt-utils.h"
34 const char *config[LAST_CONFIG];
36 diff --git a/sysdep.c b/sysdep.c
37 index ff07753..540648f 100644
40 @@ -527,7 +527,7 @@ int tun_write(int fd, unsigned char *buf, int len)
45 + sbuf.buf = (char *)buf;
46 return putmsg(fd, NULL, &sbuf, 0) >= 0 ? sbuf.len : -1;
49 @@ -537,7 +537,7 @@ int tun_read(int fd, unsigned char *buf, int len)
54 + sbuf.buf = (char *)buf;
55 return getmsg(fd, NULL, &sbuf, &f) >= 0 ? sbuf.len : -1;
57 #elif defined(__CYGWIN__)
58 @@ -680,7 +680,11 @@ int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr)
63 + memcpy(hwaddr, &ifr.ifr_addr.sa_data, ETH_ALEN);
65 memcpy(hwaddr, &ifr.ifr_hwaddr.sa_data, ETH_ALEN);
70 diff --git a/vpnc.c b/vpnc.c
71 index 38dc17f..421c29b 100644
75 #include <sys/utsname.h>
80 +#include <sys/types.h>
83 #ifdef OPENSSL_GPL_VIOLATION
85 diff --git a/tunip.c b/tunip.c
86 index d076924..20f1309 100644
89 @@ -1058,7 +1058,11 @@ void vpnc_doit(struct sa_block *s)
94 + openlog("vpnc", LOG_PID, LOG_DAEMON);
96 openlog("vpnc", LOG_PID | LOG_PERROR, LOG_DAEMON);
100 printf("VPNC started in foreground...\n");