chiark / gitweb /
libnetworkd: add link local tests
authorUmut Tezduyar Lindskog <umut.tezduyar@axis.com>
Sun, 27 Apr 2014 19:58:26 +0000 (21:58 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 27 Apr 2014 21:39:13 +0000 (23:39 +0200)
commitd9bf4f8c6c47b8620ffa1a056208eb15118b78d5
tree3d2504b2ec9cc9b3ff69f56ca4d79cdf94acba8c
parentd96e629fd7a29323ab19917d5afeb05adc62b373
libnetworkd: add link local tests

- Also only allow positive ifindex on both dhcp and ipv4ll

[tomegun: the kernel always sets a positive ifindex, but some APIs accept
          ifindex=0 with various meanings, so we should protect against
          accidentally passing ifindex=0 along.]
Makefile.am
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/sd-ipv4ll.c
src/libsystemd-network/test-dhcp-client.c
src/libsystemd-network/test-ipv4ll.c [new file with mode: 0644]