[prev in list] [next in list] [prev in thread] [next in thread]
List: dragonfly-commits
Subject: git: DragonFly_RELEASE_6_2 ipfw - Fix broken mixed network and host IP specifications in ip tables
From: Matthew Dillon <dillon () crater ! dragonflybsd ! org>
Date: 2022-03-13 2:22:14
Message-ID: 20220313022214.2E82917050D3 () crater ! dragonflybsd ! org
[Download RAW message or body]
commit 5b0ac3347670948a0cd6944462639b844a05a523
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Fri Mar 11 17:09:48 2022 -0800
ipfw - Fix broken mixed network and host IP specifications in ip tables
* ipfw improperly assumes that the netmask sin_len is pre-zero'd, but
prior table entries on the same command line which specify a network
mask will leave the field non-zero for later host entries also specified
on the command line:
ipfw table 1 add 10.0.0.0/8 192.0.2.1 # 2^24 + 1 addresses
# ipfw table 1 print
10.0.0.0/8
192.0.0.0/8 <--- wrong
* Fix the issue by properly initializing netmask.sin_len to 0 when a
host IP is specified.
Submitted-by: Martin Neitzel <neitzel@marshlabs.gaertner.de>
Summary of changes:
sbin/ipfw/ipfw2.c | 3 +++
1 file changed, 3 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5b0ac3347670948a0cd6944462639b844a05a523
--
DragonFly BSD source repository
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic