chiark / gitweb /
shared: in-addr-utils - add default_subnet_mask and default_prefixlen methods
authorTom Gundersen <teg@jklm.no>
Mon, 27 Oct 2014 16:38:03 +0000 (17:38 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 27 Oct 2014 16:40:24 +0000 (17:40 +0100)
commitdf40eee8edccb6bf09a57c2b96f69d233032ce52
tree3b2c4fbf001cba0b9a5ea0bb6b152899525c25bd
parent1dfcee5985e8097fdbe0a77ca31fa23f683fadc2
shared: in-addr-utils - add default_subnet_mask and default_prefixlen methods

These use the (deprecated) IPv4 address classes to deduce the corresponding subnet masks. This is useful when addresses
without subnet masks and prefix lengths are given.

Make use of these new functions from sd-dhcp-lease.
src/libsystemd-network/sd-dhcp-lease.c
src/shared/in-addr-util.c
src/shared/in-addr-util.h