diff options
author | Tom Gundersen <teg@jklm.no> | 2015-09-24 01:22:05 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-11 15:04:16 +0200 |
commit | 054f0db48775d566e4f55feb7cda0f721a9eb485 (patch) | |
tree | 9ca1fdb3320ff1690c1e72ff0965ab64f175bcfc /src/network/networkd-address.h | |
parent | cf1d700da3fe04cd4c27980a292301694be3b05f (diff) |
networkd: manager - avoid unnecessary memory allocation
Don't allocate Address objects only to free them again when processing
rtnl events.
Diffstat (limited to 'src/network/networkd-address.h')
-rw-r--r-- | src/network/networkd-address.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-address.h b/src/network/networkd-address.h index 0b5be02288..0d575de131 100644 --- a/src/network/networkd-address.h +++ b/src/network/networkd-address.h @@ -60,7 +60,7 @@ struct Address { int address_new_static(Network *network, unsigned section, Address **ret); int address_new(Address **ret); void address_free(Address *address); -int address_add(Link *link, Address *address); +int address_add(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret); int address_get(Link *link, int family, const union in_addr_union *in_addr, unsigned char prefixlen, Address **ret); int address_configure(Address *address, Link *link, sd_netlink_message_handler_t callback); int address_update(Address *address, Link *link, sd_netlink_message_handler_t callback); |