2 ms·
Grab the last octet, and see if it's <= 30 Personally I store a string until 128bit math becomes easier (so I can handle IPv6). But usually I just want to log
by ars 17y ago
Grab the last octet, and see if it's <= 30
Personally I store a string until 128bit math becomes easier (so I can handle IPv6). But usually I just want to log it, not check netmasks.
- tptacek 17y agoThere are, what, 8 /27s in a /24? How does seeing if the last octet is less than 30 help you?