Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 609682

Summary: net-misc/netifrc - error RTNETLINK when bring down any interface (netifrc l2tp module)
Product: Gentoo Linux Reporter: qwerty <quiteface>
Component: Current packagesAssignee: netifrc Team <netifrc>
Status: RESOLVED FIXED    
Severity: normal CC: kensington, xaviermiller
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to net-misc/netifrc that solves it for me

Description qwerty 2017-02-18 02:43:47 UTC
When trying to bring down any interface, there is a noise in console, e.g.

# /etc/init.d/net.br1 stop
 * Bringing down interface br1
 *   Destroying bridge br1 ...                [ ok ]
RTNETLINK answers: No such file or directory
Error talking to the kernel

However the interface stops, everything works, but it's nasty

installed version:
[ebuild   R    ] net-misc/netifrc-0.5.1::gentoo

---

It seems that the cause is in l2tp module (/lib/netifrc/net/l2tp.sh)
The error appears when it calls the function "_is_l2tp" (it does it for each interface),
but my kernel is built without any support of l2tp.
Comment 1 qwerty 2017-02-18 03:08:14 UTC
really, after enabling CONFIG_L2TP_IP in kernel config the error has gone

but it's a workaround, I do not need l2tp at all
Comment 2 Sergio 2017-02-18 23:29:51 UTC
Same here, with the same workaround, in a handful of systems.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-02-23 01:37:54 UTC
Duplicate, wait for the next release.

commit 1e14262524d65918ed6d1d13f2abd87b2f11425b
Author: Sergey Popov <admin@pinkbyte.ru>
Date:   Tue Jan 24 17:10:36 2017 +0300

    Check for L2TP support in kernel
Comment 4 Preston Crow 2017-06-10 21:12:03 UTC
Created attachment 475964 [details, diff]
Patch to net-misc/netifrc that solves it for me

This patch simply redirects the error output from the 'ip l2tp show session' command to avoid the display.  The error is just harmless noise and never showed up in /var/log/messages or dmesg, so killing the display should be sufficient.
Comment 5 Preston Crow 2017-06-10 21:13:59 UTC
I just added a patch file.  It works for me by putting the file in /etc/portage/patches/net-misc/netifrc and re-emerging netifrc.

Note that I tried setting modules_eth0="!l2tp" in my /etc/conf.d/net, but that didn't help, as the network scripts process all modules going down.