tlby / netmask Goto Github PK
View Code? Open in Web Editor NEWAn IP address formatting tool
License: GNU General Public License v2.0
An IP address formatting tool
License: GNU General Public License v2.0
Hi, i find a Vulnerability , now it's a zero day, i wish you connect me , I will send the vulnerability details to you. Thanks!
My Email :[email protected]
Great tool, super useful.
Any chance ipv6 support would be added?
: netmask --version
netmask, version 2.4.4
: netmask asdf
netmask: parse error "
: echo $?
0
All errors have a zero return code. This makes it less then ideal for scripting.
thus
: netmask 192.168.1.255 && echo "valid address"
192.168.1.255/32
valid address
&
: netmask 192.168.1.256 && echo "valid address"
netmask: parse error "192.168.1.256": Invalid argument
valid address
are both 'valid addresses'
netmask.c:310]: (style) Checking if unsigned variable 'v' is less than zero.
netmask.c:313]: (style) Checking if unsigned variable 'v' is less than zero.
Source code is
if(v < 0 || v > 32) return 0;
and
if(v < 0 || v > 128) return 0;
Hi,
I just came across this useful tool via serverfault.
I wanted to generate cidr for everything in the 10.0.0.0/8 except for 10.7.0.0/16.
The following worked well enough:
$ netmask -c 10.0.0.0:10.6.255.255 10.8.0.0:10.255.255.255
10.0.0.0/14
10.4.0.0/15
10.6.0.0/16
10.8.0.0/13
10.16.0.0/12
10.32.0.0/11
10.64.0.0/10
10.128.0.0/9
However, I wonder would you consider something like:
$ netmask -c 10.0.0.0/8 --exclude 10.7.0.0/16
Thanks for the good work.
README says... "See the file INSTALL for building and installation instructions."
Seems to be missing.
Update: The following works to compile on Ubuntu 20.04...
./autogen
./configure
sudo apt-get install texinfo # I was missing makeinfo
make
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.