core: add non-destructive ip config intersect function

System Internals / NetworkManager - Beniamino Galvani [redhat.com] - 6 December 2017 08:53 EST

Add a new function to compute the intersection between 2 IP configurations without modifying them.

e5a8aba22 core: add non-destructive ip config intersect function
src/nm-ip4-config.c | 84 +++++++++++++++++++++++++++++++++++++++++++++-------
src/nm-ip4-config.h | 22 ++++++++++++++
src/nm-ip6-config.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++-------
src/nm-ip6-config.h | 3 ++
4 files changed, 172 insertions(+), 22 deletions(-)

Upstream: cgit.freedesktop.org


  • Share