]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add test for checking RTF_HOST and RTAX_NETMASK inconsistency.
authormelifaro <melifaro@FreeBSD.org>
Sat, 22 Aug 2020 18:14:05 +0000 (18:14 +0000)
committermelifaro <melifaro@FreeBSD.org>
Sat, 22 Aug 2020 18:14:05 +0000 (18:14 +0000)
commit921037a429252499b2fd9f9dc16ff6002bd956ca
treed4f89ab12655f7502c84a03d65c695d0c276d371
parentec64d71e1787167bce48da128bf2d8baabbad489
Add test for checking RTF_HOST and RTAX_NETMASK inconsistency.

RTF_HOST indicates whether route is a host route
 (netmask is empty or /{32,128}).
Check that if netmask is empty and host route is not specified, kernel
 returns an error.

Differential Revision: https://reviews.freebsd.org/D26155
tests/sys/net/routing/test_rtsock_l3.c