ipv4 addr: Send netlink notification for address label changes
Subsystems (3)
PATCH 1/1 ipv4 addr: Send netlink notification for address label changes
Makes people happy who try to keep a list of addresses up to date by listening to notifications.
Signed-off-by Thomas Graf <[email protected]>
net/ipv4/devinet.c +3 -1
@@ -1013,7 +1013,7 @@memcpy (old, ifa->ifa_label,IFNAMSIZ );memcpy (ifa->ifa_label, dev->name,IFNAMSIZ );if (named++ ==0 ) -continue ; + goto skip; dot =strchr (old,':' );if (dot ==NULL ) {sprintf (old,":%d" , named);
@@ -1024,6 +1024,8 @@ }else {strcpy (ifa->ifa_label + (IFNAMSIZ -strlen (dot) -1 ), dot); } +skip: +rtmsg_ifa (RTM_NEWADDR , ifa,NULL ,0 ); } }
From: Thomas Graf <[email protected]>
Date: Thu, 5 Jun 2008 02:02:03 +0200
Quoted 4 lines
Makes people happy who try to keep a list of addresses up to date by listening to notifications.
Signed-off-by Thomas Graf <[email protected]>
Applied to net-next-2.6, thanks!