}
+/**
+ * Length of the interface names returned from os_network.c.
+ * (in that file, hardcoded at 11).
+ */
+#define IF_NAME_LEN 11
+
+
/**
* Add the IP of our network interface to the list of
* our IP addresses.
"IFNAME",
&tun_if))
{
- if (0 == strcmp (name,
- tun_if))
+ if (0 == strncasecmp (name,
+ tun_if,
+ IF_NAME_LEN))
{
GNUNET_free (tun_if);
return GNUNET_OK;
"IFNAME",
&tun_if))
{
- if (0 == strcmp (name,
- tun_if))
+ if (0 == strncasecmp (name,
+ tun_if,
+ IF_NAME_LEN))
{
GNUNET_free (tun_if);
return GNUNET_OK;
"EXIT_IFNAME",
&tun_if))
{
- if (0 == strcmp (name,
- tun_if))
+ if (0 == strncasecmp (name,
+ tun_if,
+ IF_NAME_LEN))
{
GNUNET_free (tun_if);
return GNUNET_OK;