]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Add missing byte-order swap to pf_match_addr_range
authorkp <kp@FreeBSD.org>
Mon, 15 Aug 2016 12:13:14 +0000 (12:13 +0000)
committerkp <kp@FreeBSD.org>
Mon, 15 Aug 2016 12:13:14 +0000 (12:13 +0000)
commit40a80c130557e80158510e516644100c18318adb
tree1ab04768ba6a49bdf494d5b85b497260522ef48e
parentbfe8313bbfbca1f6bff819b3dae6a68f7ca08e7c
pf: Add missing byte-order swap to pf_match_addr_range

Without this, rules using address ranges (e.g. "10.1.1.1 - 10.1.1.5") did not
match addresses correctly on little-endian systems.

PR: 211796
Obtained from: OpenBSD (sthen)
MFC after: 3 days
sys/netpfil/pf/pf.c