projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use list_add_tail instead of list_add
[project/netifd.git]
/
interface-ip.c
diff --git
a/interface-ip.c
b/interface-ip.c
index
6c673c6
..
2a26a4a
100644
(file)
--- a/
interface-ip.c
+++ b/
interface-ip.c
@@
-18,7
+18,7
@@
int interface_add_address(struct interface *iface, struct device_addr *addr)
else
family = AF_INET;
else
family = AF_INET;
- list_add(&addr->list, &iface->address);
+ list_add
_tail
(&addr->list, &iface->address);
return system_add_address(iface->l3_iface->dev, addr);
}
return system_add_address(iface->l3_iface->dev, addr);
}
@@
-49,7
+49,7
@@
void interface_del_ctx_addr(struct interface *iface, void *ctx)
int interface_add_route(struct interface *iface, struct device_route *route)
{
int interface_add_route(struct interface *iface, struct device_route *route)
{
- list_add(&route->list, &iface->routes);
+ list_add
_tail
(&route->list, &iface->routes);
return system_add_route(iface->l3_iface->dev, route);
}
return system_add_route(iface->l3_iface->dev, route);
}