]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ping: Move in_cksum() to a separate source file
authorasomers <asomers@FreeBSD.org>
Sat, 17 Aug 2019 15:25:01 +0000 (15:25 +0000)
committerasomers <asomers@FreeBSD.org>
Sat, 17 Aug 2019 15:25:01 +0000 (15:25 +0000)
commitb2e29620d9b4a62c8083c28910b93a2d067d0a86
treec900d34c0a553225854deed307003babb70f663d
parent60485fbc804244f721b673ba5434eae6ed247b59
ping: Move in_cksum() to a separate source file

This is a preparation step for adding ATF tests of in_cksum(), which has been
modified to operate on unaligned data. ping.o cannot be linked to the test
executable because both of them contain 'main' symbol.

Submitted by: Ján Sučan <sucanjan@gmail.com>
MFC after: 2 weeks
Sponsored by: Google, inc. (Google Summer of Code 2019)
Differential Revision: https://reviews.freebsd.org/D21288
sbin/ping/Makefile
sbin/ping/ping.c
sbin/ping/utils.c [new file with mode: 0644]
sbin/ping/utils.h [new file with mode: 0644]