You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tp-link archer c6u
openwrt snapshot r0-9c3b1d5
After upgrade to snapshot version from 21.02 I found that netifd infinitely retries to ifup 6to4 interface with lots of messages in the syslog
On 'ifdown 6to4' netifd should delete 6to4-6to4 interface but it can't
link still remains and this causes error during 'ifup 6to4'
ioctl SIOCADDTUNNEL returns ENOBUFFS
If the link is manually deleted then netifd succeeds
I traced the problem in netifd c code and found this non-working code
if (!(cur = tb[TUNNEL_ATTR_TYPE]))
return -EINVAL;
str = blobmsg_data(cur);
if (!strcmp(str, "greip") || !strcmp(str, "gretapip") ||
!strcmp(str, "greip6") || !strcmp(str, "gretapip6") ||
!strcmp(str, "vtiip") || !strcmp(str, "vtiip6") ||
!strcmp(str, "vxlan") || !strcmp(str, "vxlan6") ||
!strcmp(str, "xfrm"))
return system_link_del(name);
else
{
// THIS DOES NOT WORK. I guess interface name should not be passed as the 1st parameter but inside special structure in the third parameter (see SIOCADDTUNNEL)
return tunnel_ioctl(name, SIOCDELTUNNEL, NULL);
}
}
with additional !strcmp(str, "sit") it starts working again
The text was updated successfully, but these errors were encountered:
bolvan:
tp-link archer c6u
openwrt snapshot r0-9c3b1d5
After upgrade to snapshot version from 21.02 I found that netifd infinitely retries to ifup 6to4 interface with lots of messages in the syslog
On 'ifdown 6to4' netifd should delete 6to4-6to4 interface but it can't
link still remains and this causes error during 'ifup 6to4'
ioctl SIOCADDTUNNEL returns ENOBUFFS
If the link is manually deleted then netifd succeeds
I traced the problem in netifd c code and found this non-working code
static int __system_del_ip_tunnel(const char *name, struct blob_attr **tb)
{
struct blob_attr *cur;
const char *str;
}
with additional !strcmp(str, "sit") it starts working again
The text was updated successfully, but these errors were encountered: