Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102856
b: refs/heads/master
c: 573bf47
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Jun 10, 2008
1 parent f3a9aca commit 91d2463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5ec514016d1a65922465372ff1e6748e6f7dea9
refs/heads/master: 573bf470e693f73a6ac437b17a64a10902ba54bf
4 changes: 3 additions & 1 deletion trunk/net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ static void inetdev_changename(struct net_device *dev, struct in_device *in_dev)
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);
Expand All @@ -1024,6 +1024,8 @@ static void inetdev_changename(struct net_device *dev, struct in_device *in_dev)
} else {
strcpy(ifa->ifa_label + (IFNAMSIZ - strlen(dot) - 1), dot);
}
skip:
rtmsg_ifa(RTM_NEWADDR, ifa, NULL, 0);
}
}

Expand Down

0 comments on commit 91d2463

Please sign in to comment.