Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-20 Thread bycn82
It will e nice to have this utility function > On 21 May, 2014, at 1:32 am, "Alexander V. Chernikov" > wrote: > >> On 19.05.2014 17:38, Dennis Yusupoff wrote: >> It's not enough, actually. >> Imagine what you have a table with different networks. If you'll try to >> find out is an IP belongs to

Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-20 Thread Alexander V. Chernikov
On 19.05.2014 17:38, Dennis Yusupoff wrote: It's not enough, actually. Imagine what you have a table with different networks. If you'll try to find out is an IP belongs to some of that networks from the table, you should to write relatively serious "wrapper" with network range calculations in it.

Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-19 Thread Dennis Yusupoff
It's not enough, actually. Imagine what you have a table with different networks. If you'll try to find out is an IP belongs to some of that networks from the table, you should to write relatively serious "wrapper" with network range calculations in it. Or can you show differ (easier) way? So it's

Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-19 Thread Dennis Yusupoff
Longest prefix match, obviously. Doesn't see any reason to search for exact match in case of existing prefix with that ip. 19.05.2014 17:01, Alexander V. Chernikov пишет: > On 19.05.2014 12:54, Dennis Yusupoff wrote: >> Alex, Bill, it's a good news, glad to hear it. >> >> Let me ask even more func

Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-19 Thread bycn82
On 5/19/14 21:01, Alexander V. Chernikov wrote: On 19.05.2014 12:54, Dennis Yusupoff wrote: Alex, Bill, it's a good news, glad to hear it. Let me ask even more functionality: 6. Test if entry exist in table: ipfw table test It extremely useful in case of big, unordered data in the table - fo

Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-19 Thread Alexander V. Chernikov
On 19.05.2014 12:54, Dennis Yusupoff wrote: Alex, Bill, it's a good news, glad to hear it. Let me ask even more functionality: 6. Test if entry exist in table: ipfw table test It extremely useful in case of big, unordered data in the table - for example different networks with different mask.

Re: [Was]: Problem with ipfw table add 0.0.0.0/8

2014-05-19 Thread Andreas Nilsson
On Mon, May 19, 2014 at 10:54 AM, Dennis Yusupoff wrote: > Alex, Bill, it's a good news, glad to hear it. > > Let me ask even more functionality: > > 6. Test if entry exist in table: > ipfw table test > It extremely useful in case of big, unordered data in the table - for > example different ne