Commit graph

90 commits

Author SHA1 Message Date
18634612f4 Update docs
Some checks failed
isinetaddr / tests (macos-latest) (push) Has been cancelled
isinetaddr / tests (ubuntu-latest) (push) Has been cancelled
2024-10-12 04:05:11 -03:00
3290d6aa14 Apply editorconfig
Some checks failed
isinetaddr / tests (macos-latest) (push) Has been cancelled
isinetaddr / tests (ubuntu-latest) (push) Has been cancelled
2024-09-12 23:56:46 -03:00
eb330f77de Add editorconfig
Some checks are pending
isinetaddr / tests (macos-latest) (push) Waiting to run
isinetaddr / tests (ubuntu-latest) (push) Waiting to run
2024-09-12 23:52:24 -03:00
7ac3d7c869 VERSION -> share/isinetaddr/VERSION
Some checks are pending
isinetaddr / tests (macos-latest) (push) Waiting to run
isinetaddr / tests (ubuntu-latest) (push) Waiting to run
2024-09-12 23:38:34 -03:00
af77e46146 Add source
Some checks are pending
isinetaddr / tests (macos-latest) (push) Waiting to run
isinetaddr / tests (ubuntu-latest) (push) Waiting to run
2024-09-12 23:35:10 -03:00
a8dcb69e1e v0.3.3
Some checks are pending
isinetaddr / tests (macos-latest) (push) Waiting to run
isinetaddr / tests (ubuntu-latest) (push) Waiting to run
2024-03-31 10:57:47 -03:00
9d52478756 Terminate 'buf' properly
The previous approach would provide inconsistent results.
2024-03-31 10:42:52 -03:00
75dbfb7166 Avoid indexing 'str' with a negative index
On OpenBSD - this can cause a crash.
2024-03-31 06:25:52 -03:00
1c2778131f Update examples 2024-03-19 21:38:46 -03:00
5ab18f3692 v0.3.2 2024-03-05 21:14:33 -03:00
22f848dd8a Merge branch 'main' of github.com:0x1eef/isinetaddr 2024-03-04 23:57:04 -03:00
7a5ea4e973 Utilize stdbool.h 2024-03-04 23:56:29 -03:00
96c7b39a18 Deference + increment pointer on single line 2024-03-04 23:55:42 -03:00
d6b4cb0f48 Add support for 2001:DB8::8:800:200C:417A
Fix #8
2024-03-04 23:55:42 -03:00
8b94548472 Utilize stdbool.h 2024-03-04 23:54:35 -03:00
33de77f32c Utilize stdbool.h 2024-03-04 23:50:46 -03:00
0x1eef
58193daba1
Merge pull request #12 from 0x1eef/expandbug
Add support for `2001:DB8::8:800:200C:417A`
2023-09-22 17:20:24 -03:00
663b44f4de Move strncasecmp into for loop 2023-09-22 17:08:26 -03:00
2cdc238a73 Deference + increment pointer on single line 2023-09-22 16:57:59 -03:00
1f0c95508e Add support for 2001:DB8::8:800:200C:417A
Fix #8
2023-09-22 16:42:20 -03:00
0x1eef
c41c1eda34
Merge pull request #10 from 0x1eef/inet4
Add support for `::13.1.68.3`
2023-09-22 14:45:42 -03:00
5748ece401 Add support for ::13.1.68.3
Fix #9
2023-09-22 14:04:52 -03:00
0x1eef
c45da5abbc
Merge pull request #7 from 0x1eef/2.2.1
Address 2.2.1 of RFC 4291
2023-09-22 13:55:55 -03:00
e7745f086a Add testcases from RFC 4291 2023-09-22 13:52:55 -03:00
999bf8d5d6 Address 2.2.1 of RFC 4291
Treat `2001:DB8:0:0:8:800:200C:417A` as valid.
2023-09-22 01:24:05 -03:00
6902590784 isinetaddr4: remove #include <errno.h>. 2023-09-20 12:50:17 -03:00
267f96d640 isinetaddr4: l -> i 2023-09-20 12:49:07 -03:00
96c5e03edc isinetaddr4: in_range -> within_range 2023-09-20 12:44:22 -03:00
e34aef9981 Move increment of octets 2023-09-20 12:43:44 -03:00
637256206f Simplification of final return statement 2023-09-20 12:31:18 -03:00
760852b6dc isinetaddr4: treat last octet as less of a special case 2023-09-20 12:20:26 -03:00
ae035800d3 Add isinetaddr4.c improvements 2023-09-20 10:59:15 -03:00
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