summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-ndisc-rs.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-10-29 22:05:16 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-10-29 22:05:27 +0900
commit9661d2e80c54f3d781f84128d510f4a7c8bca482 (patch)
tree1bc5fac6d41502fa7ad2f4cfa60544c9b26d6e23 /src/libsystemd-network/test-ndisc-rs.c
parenta27c229c15830895d712ab338a22ef0ec4564ce2 (diff)
downloadsystemd-9661d2e80c54f3d781f84128d510f4a7c8bca482.tar.gz
sd-ndisc: drop unused functions
All received information is stored in sd_ndisc_router, and we have sd_ndisc_router_get_mtu() and sd_ndisc_router_get_hop_limit().
Diffstat (limited to 'src/libsystemd-network/test-ndisc-rs.c')
-rw-r--r--src/libsystemd-network/test-ndisc-rs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsystemd-network/test-ndisc-rs.c b/src/libsystemd-network/test-ndisc-rs.c
index ae26ee7e74..1366b44115 100644
--- a/src/libsystemd-network/test-ndisc-rs.c
+++ b/src/libsystemd-network/test-ndisc-rs.c
@@ -242,7 +242,6 @@ static void test_callback(sd_ndisc *nd, sd_ndisc_event_t event, sd_ndisc_router
ND_RA_FLAG_MANAGED
};
uint64_t flags;
- uint32_t mtu;
assert_se(nd);
@@ -263,8 +262,6 @@ static void test_callback(sd_ndisc *nd, sd_ndisc_event_t event, sd_ndisc_router
return;
}
- assert_se(sd_ndisc_get_mtu(nd, &mtu) == -ENODATA);
-
sd_event_exit(e, 0);
}