Skip to content

Joungkyun/libipcalc

Repository files navigation

IPv4 Calculating and subnetting C/C++ APIs

Build Status GitHub license

License

Copyright © 2016 JoungKyun.Kim <http://oops.org>. And all rights reserved

This program is free software; you can redistribute it and/or modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by the Free Software Foundation; either version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU LESSER GENERAL PUBLIC LICENSE for more details.

You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

This library is forked in libkrisp.

Description

libipcalc is a C/C++ library to subnetting and calcaulating IPv4.

You can work follow job with this library:

  • calculating subnet mask
  • calculation broadcast
  • calcualtion prefix of subnet mask
  • converting dotted IPv4 address to 32bit decimal ip address
  • converting 32bit decimal subnet mask and prefix of subnet mask
  • calculating minimum subnet maks that containes 2 IPv4 address.

Installation

use autotools system.

[root@host libipcalc-1.0.3]$ ./configure --prefix=/path
[root@host libipcalc-1.0.3]$ make
[root@host libipcalc-1.0.3]$ make install

For preinstall, use DESTDIR environment as follows:

[root@host libipcalc-1.0.3]$ make install DESTDIR=/path

Usage

See also Wiki pages about C/C++ apis and utility commands.