0x1eef
ee62519bb3
Merge pull request #5 from 0x1eef/make_examples
...
Add `make example`
2023-09-15 01:48:00 -03:00
a58f720cc1
Add make example
...
Compiles and runs the examples in `share/isinetaddr/examples/`.
2023-09-15 01:46:34 -03:00
92d746ea9a
Tweak examples
2023-09-15 00:20:57 -03:00
0x1eef
9032382ea4
Merge pull request #4 from 0x1eef/chore/update_examples
...
Shorten README.md examples / `share/isinetaddr/examples/*.c`
2023-09-15 00:17:03 -03:00
0ecb391b8f
Shorten README.md examples / share/isinetaddr/examples/*.c
2023-09-15 00:15:51 -03:00
eb0b1d3ace
isinetaddr -> isinetaddr4, iscidraddr -> iscidraddr4
2023-09-12 15:38:43 -03:00
c4fbb4b67f
Add examples/isinetaddr6.c
2023-09-12 15:05:02 -03:00
0x1eef
b30d723a0d
Merge pull request #3 from 0x1eef/ipv6
...
Add isinetaddr6
2023-09-11 22:56:33 -03:00
a0fed4159d
README: cover isinetaddr6
2023-09-11 22:51:35 -03:00
f6e29e4756
Add isinetaddr6
...
This change introduces `isinetaddr6`, a function that validates
IPv6 addresses. The interface is identical to isinetaddr, where
0 is returned for an invalid address and 1 is returned for a valid
address.
2023-09-11 22:51:35 -03:00
0dfbdd45e9
Add coverage for a few more edge cases
2023-08-30 06:04:41 -03:00
66cecb0379
Apply whitespace to if statement
2023-08-28 03:39:46 -03:00
a2902687d5
v0.3.1
2023-08-28 00:12:52 -03:00
82693b4d5e
iscidraddr: return 0 for 127.0.0.1/322
2023-08-28 00:12:08 -03:00
0c1b951771
v0.3.0
2023-08-27 23:08:06 -03:00
1ab5387ff0
Fix cidr edge cases
2023-08-27 23:07:02 -03:00
97a2f8f42e
Apply a small optimization to iscidraddr.c
2023-08-27 22:58:16 -03:00
f4fb9fc6ea
Hide test/(iscidraddr|isinetaddr) from projectile
2023-08-27 22:56:30 -03:00
b1bf11104b
Fix typo in Makefile
2023-08-27 22:56:00 -03:00
9bcd608b86
tests: improve
2023-08-27 05:38:26 -03:00
01b54709cd
README: fix build instructions
2023-08-27 02:14:01 -03:00
76687b636b
Remove $(TESTBIN) (not used anymore)
2023-08-27 02:03:45 -03:00
4d25b52775
Move 'iscidraddr' to src/iscidraddr.c
2023-08-27 02:03:45 -03:00
0x1eef
fa580011e1
Merge pull request #2 from 0x1eef/iscidraddr
...
Add support for CIDR notation (iscidraddr).
2023-08-26 23:40:13 -03:00
f97b5906f4
Add iscidraddr
2023-08-26 23:38:15 -03:00
26a0cad2d1
examples: update
2023-08-26 18:35:27 -03:00
0845e8f07e
v0.2.1
2023-08-26 00:35:14 -03:00
4118c4b573
Fix edgecase (4...4 is invalid)
2023-08-26 00:32:11 -03:00
b0d7141379
v0.2.0
2023-08-26 00:05:03 -03:00
14a5728824
Add linebreak
2023-08-26 00:04:54 -03:00
d6595f8cfd
Clarity
2023-08-26 00:01:41 -03:00
8b166a7328
Add register_octet
, register_digit
, and minor improvements
2023-08-25 23:57:10 -03:00
687a02280e
v0.1.2
2023-08-25 23:36:29 -03:00
c113259949
Add descriptive variable names
2023-08-25 23:35:38 -03:00
7dcf1f1e47
Move 'inrange' to the bottom of the file.
2023-08-25 23:20:05 -03:00
e3c927ec91
Call inrange when we have an integer above 99
...
Anything below three digits couldn't be out of bounds.
2023-08-25 21:31:04 -03:00
799b301af4
Avoid calling inrange when we don't have any integers in 'buf'
2023-08-25 21:13:06 -03:00
f861716608
Detect "...4" earlier.
2023-08-25 21:05:20 -03:00
83272cdb5a
v0.1.1
2023-08-25 21:02:15 -03:00
e0dcac0c2c
Handle additional edge cases as invalid
...
"192.168.2" is now caught as invalid, along with
"...4".
2023-08-25 21:01:34 -03:00
59f0c31c20
README: update
2023-08-25 20:46:43 -03:00
26b7492907
README: update
2023-08-25 20:43:31 -03:00
1ceccdb5db
v0.1.0
2023-08-25 20:35:56 -03:00
47b7537edc
Compile with -fstack-protector-all
2023-08-25 20:29:47 -03:00
de2f0d55e1
Handle edge case only when we have to
2023-08-25 20:25:44 -03:00
df4a6f0a88
Add testcases
2023-08-25 20:08:22 -03:00
9baa5f9fe4
Treat "123.45.67.891" as invalid
2023-08-25 20:05:43 -03:00
918d43e4e9
Small tweak
2023-08-25 18:58:59 -03:00
8d71ef6bd4
Avoid buffer overflow
2023-08-25 18:37:53 -03:00
74fef68c8d
Stack smash test
2023-08-25 18:32:06 -03:00