Skip to content

Commit 0071268

Browse files
authored
Ipv6 (#1)
* chore: Update project version to 1.0.1 in CMakeLists.txt * chore: Changed README.md * feat: Add ipv6
1 parent d7b5b0a commit 0071268

5 files changed

Lines changed: 456 additions & 96 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.22)
2-
project(ip-analyzer VERSION 1.0.0 LANGUAGES CXX)
2+
project(ip-analyzer VERSION 1.0.1 LANGUAGES CXX)
33

44
set(CMAKE_CXX_STANDARD 26)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@ To analyze an IP address, run the program and enter the IP address with CIDR not
5555
Enter an IP address with CIDR notation: 192.168.178.0/24
5656
```
5757

58+
When prompted, enter an IP address with or without CIDR notation. The tool will automatically detect whether it's an IPv4 or IPv6 address.
59+
60+
## Examples
61+
62+
### IPv4 Example
63+
64+
Input:
65+
```bash
66+
Enter an IP address with CIDR notation: 192.168.178.0/24
67+
```
68+
## Supported IPv6 Formats
69+
70+
The IP Analyzer supports various IPv6 address formats, including:
71+
72+
- Full notation: `2001:0db8:85a3:0000:0000:8a2e:0370:7334`
73+
- Compressed notation: `2001:db8:85a3::8a2e:370:7334`
74+
- IPv4-mapped IPv6 addresses: `::ffff:192.0.2.128`
75+
5876
The program will display detailed information about the IP address.
5977

6078
## License

0 commit comments

Comments
 (0)