joungkyun / libipcalc Goto Github PK
View Code? Open in Web Editor NEWlibipcalc - IPv4 Calculating and subnetting C/C++ API
License: GNU Lesser General Public License v2.1
libipcalc - IPv4 Calculating and subnetting C/C++ API
License: GNU Lesser General Public License v2.1
only occurs on 64bit architecture
_Expected result:_
(unsigned long) prefix2long (28) => 4294967280UL
_Actual result:_
(unsigned long) prefix2long (28) => 18446744073709551600UL
dprecated valid_ip_address api on 1.0.3.
Please use is_ipv4 api instead of valid_ip_address api. Prototype is the same both valid_ip_address and is_ipv4.
Soma case, follow codes getaddrinfo returns success about wrong ipv4 address.
hints.ai_family = AF_UNSEPC;
hints.ai_socktype = SOCK_STREAM;
strcpy (addr, "261.0.0.1");
if ( (stat = getaddrinfo (addr, NULL, &hints, &r)) != 0 ) {
strcpy (err, gai_strerror (stat));
memset (addr, 0, strlen (addr));
return 1;
}
confirm wrong check on RHEL 6 glibc-2.12-1.192.el6.x86_64.
RHEL 7 has no problem.
when execute make dist, occurs follow errors:
[root@an2 libipcalc]$ make dist-bzip2
make: *** No rule to make target `debian/patches/01-remove-rpath.patch', needed by `distdir'. Stop.
[root@an2 libipcalc]$
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.