*
*/
+#ifndef INTERFACE_NAME_6BED4
+#define INTERFACE_NAME_6BED4 "6bed4"
+#endif
+
#ifdef LINUX
#define HAVE_SETUP_TUNNEL
static struct ifreq ifreq;
}
if (!have_tunnel) {
memset (&ifreq, 0, sizeof (ifreq));
- strncpy (ifreq.ifr_name, "6bed4", IFNAMSIZ);
+ strncpy (ifreq.ifr_name, INTERFACE_NAME_6BED4, IFNAMSIZ);
ifreq.ifr_flags = IFF_TAP | IFF_NO_PI;
if (ok && (ioctl (v6sox, TUNSETIFF, (void *) &ifreq) == -1)) {
syslog (LOG_CRIT, "Failed to set interface name: %s\n", strerror (errno));
}
return ok;
}
+
bool setup_tunnel_address (void) {
bool ok = have_tunnel;
char cmd [512+1];
/* Option descriptive data structures */
-char *short_opt = "s:t:dl:p:r:k:feh";
+char *short_opt = "s:t:d:l:p:rk:feh";
struct option long_opt [] = {
{ "v4server", 1, NULL, 's' },