[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48D948E8.6090804@hartkopp.net>
Date: Tue, 23 Sep 2008 21:52:08 +0200
From: Oliver Hartkopp <oliver@...tkopp.net>
To: Stephen Hemminger <shemminger@...tta.com>
CC: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: [PATCH net-next]: net: remove ifalias on empty given alias
This patch removes the potentially allocated ifalias when the (new)
given alias is empty.
E.g. when setting
echo "" > /sys/class/net/eth0/ifalias
Signed-off-by: Oliver Hartkopp <oliver@...tkopp.net>
---
Hello Stephen,
this patch allows to 'remove' or reset the ifalias by giving an empty alias.
The patch is tested.
Btw. ifalias is a nice idea also for CAN bus people to 'name' a given
CAN bus.
Thanks & regards,
Oliver
View attachment "empty_ifalias.patch" of type "text/x-patch" (467 bytes)
Powered by blists - more mailing lists