Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic:  (Read 8183 times)

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
« on: January 27, 2018, 07:07:47 PM »

Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
« Reply #1 on: January 27, 2018, 07:27:16 PM »

Next routines: a routine that take a CIDR /nbits integer value and comes back with an ipv4 or ipv6 netmask in ascii.

But I also need to do some pref-length masking arithmetic on ipv6 addresses, for example testing if an address is in the range of say some /nbits so given say 2001:db8:beef:cafe:cec1::/40 testing whether some other ip address is inside that range given by the netmask as applied to that prefix with the irrelevant low-order bits knocked out.

Would whatmask be of any use to you?
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
« Reply #2 on: January 28, 2018, 02:26:56 AM »

thank you very much for that link!

The lack of a bitwise AND operation in Workflow means I have to write my own using who knows what nightmarish mountain of code. That is going to be fun. I may end up with using a technique that I've used before and precompute a lookup table of some sort to vastly speed up things.
Logged