[ZBX-12634] subnet_match() function incorrect for subnet masks with less than 8 bits wide Created: 2017 Aug 29  Updated: 2024 Apr 10  Resolved: 2017 Aug 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: 3.4.1
Fix Version/s: 3.4.2rc1, 4.0.0alpha1, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Andris Mednis Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: Sprint 15
Story Points: 0.4

 Description   

For trapper item, if "Allowed hosts"=192.0.0.0/8 it works.
If "Alowed hosts"="128.0.0.0/1" or "192.0.0.0/7" it does not work:

 17391:20170829:160544.612 cannot process trapper item "test_trapper_item": connection from "192.168.3.129" rejected, allowed hosts: "128.0.0.0/1"
 17392:20170829:160802.084 cannot process trapper item "test_trapper_item": connection from "192.168.3.129" rejected, allowed hosts: "192.0.0.0/7"


 Comments   
Comment by Andris Mednis [ 2017 Aug 30 ]

Successfully tested. Minor modifications in r71899.

Comment by Vladislavs Sokurenko [ 2017 Aug 30 ]

Fixed in:
pre-3.4.2rc1 r71932
pre-4.0.0alpha1 (trunk) 71933

Generated at Fri Apr 26 02:23:51 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.