logic:
1. given a subnet address and a mask [192.9.111.0 and 255.255.255.224]
2. and an address [(a) 192.9.111.1 OR (b) 192.9.111.50]
3. determine if (a) belongs to a subnet specified in 1.
[whereas (b) does NOT]
Say if I have a file subnets.txt
#subnet | mask
192.9.111.0|255.255.255.224
192.9.111.0|255.255.255.192
(a) will be validated by the FIRST record/row
(b) will be validated by the SECOND record/row
Anyone have any leads/tips or snippets I could elaborate on?!
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
1. given a subnet address and a mask [192.9.111.0 and 255.255.255.224]
2. and an address [(a) 192.9.111.1 OR (b) 192.9.111.50]
3. determine if (a) belongs to a subnet specified in 1.
[whereas (b) does NOT]
Say if I have a file subnets.txt
#subnet | mask
192.9.111.0|255.255.255.224
192.9.111.0|255.255.255.192
(a) will be validated by the FIRST record/row
(b) will be validated by the SECOND record/row
Anyone have any leads/tips or snippets I could elaborate on?!
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+