Giter Club home page Giter Club logo

netmask's People

Contributors

a1346054 avatar dotwaffle avatar tlby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

netmask's Issues

ipv6 support

Great tool, super useful.

Any chance ipv6 support would be added?

return codes are always zero

: 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: 2 * pointless tests ?

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;

rfc: negative input

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.

Missing INSTALL file

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.