1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-27 23:46:05 +03:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Erik Ekman
df49fd6f3d Update changelog 2022-07-18 23:36:07 +02:00
Erik Ekman
3cb6a1eec2 user: Expand newip char array
Avoid warning
../src/user.c:66:17: note: ‘snprintf’ output between 8 and 18 bytes into a destination of size 16
2022-07-18 23:35:54 +02:00
Erik Ekman
17169e3444 tun: Add openvpn componentid prefix
Some drivers use root prefix. See https://patchwork.openvpn.net/patch/555/

Hopefully helping with bugs #46 and #73.
2022-07-18 23:31:13 +02:00
3 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,7 @@ master:
- Change external IP lookup to using myip.opendns.com via DNS. - Change external IP lookup to using myip.opendns.com via DNS.
- Add option to choose IPv4 listen address from external IP lookup. - Add option to choose IPv4 listen address from external IP lookup.
- Add server support for handling multiple domains via wildcard. - Add server support for handling multiple domains via wildcard.
- Recognize tap device component id 'root' prefix on Windows.
2014-06-16: 0.7.0 "Kryoptonite" 2014-06-16: 0.7.0 "Kryoptonite"
- Partial IPv6 support (#107) - Partial IPv6 support (#107)

View File

@ -61,6 +61,7 @@ static void get_name(char *ifname, int namelen, char *dev_name);
#define TAP_DEVICE_SPACE "\\\\.\\Global\\" #define TAP_DEVICE_SPACE "\\\\.\\Global\\"
#define TAP_VERSION_ID_0801 "tap0801" #define TAP_VERSION_ID_0801 "tap0801"
#define TAP_VERSION_ID_0901 "tap0901" #define TAP_VERSION_ID_0901 "tap0901"
#define TAP_VERSION_ID_0901_ROOT "root\\tap0901"
#define KEY_COMPONENT_ID "ComponentId" #define KEY_COMPONENT_ID "ComponentId"
#define NET_CFG_INST_ID "NetCfgInstanceId" #define NET_CFG_INST_ID "NetCfgInstanceId"
#else #else
@ -193,7 +194,8 @@ get_device(char *device, int device_len, const char *wanted_dev)
goto next; goto next;
} }
if (strncmp(TAP_VERSION_ID_0801, component, strlen(TAP_VERSION_ID_0801)) == 0 || if (strncmp(TAP_VERSION_ID_0801, component, strlen(TAP_VERSION_ID_0801)) == 0 ||
strncmp(TAP_VERSION_ID_0901, component, strlen(TAP_VERSION_ID_0901)) == 0) { strncmp(TAP_VERSION_ID_0901, component, strlen(TAP_VERSION_ID_0901)) == 0 ||
strncmp(TAP_VERSION_ID_0901_ROOT, component, strlen(TAP_VERSION_ID_0901_ROOT)) == 0) {
/* We found a TAP32 device, get its NetCfgInstanceId */ /* We found a TAP32 device, get its NetCfgInstanceId */
char iid_string[256] = NET_CFG_INST_ID; char iid_string[256] = NET_CFG_INST_ID;

View File

@ -41,7 +41,7 @@ int init_users(in_addr_t my_ip, int netbits)
{ {
int i; int i;
int skip = 0; int skip = 0;
char newip[16]; char newip[32];
int maxusers; int maxusers;