]> git.ipfire.org Git - thirdparty/systemd.git/commit
icmp6-util: several cleanups for icmp6_receive()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Sep 2023 08:00:31 +0000 (17:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 4 Sep 2023 12:52:55 +0000 (21:52 +0900)
commit512116383215c2f61172dd20e45871ff5d16c030
tree7b044cb92ac6a9dad639f2f3cdde049026e9bcc5
parent4674f407b2a96baaed4c8226342bccb313463717
icmp6-util: several cleanups for icmp6_receive()

- Rename the argument for storing the sender address,
- allow to call it with NULL for ret_xyz,
- reduce needless copy of timestamp when the message does not have
  timestamp.
src/libsystemd-network/fuzz-ndisc-rs.c
src/libsystemd-network/icmp6-util.c
src/libsystemd-network/icmp6-util.h
src/libsystemd-network/test-ndisc-ra.c
src/libsystemd-network/test-ndisc-rs.c