The Java IP Codec Suite
The jipcs
contains the following codecs:
- IPv4 header (Internet Protocol version 4) (RFC 791)
- IPv6 header (Internet Protocol version 6) (RFC 8200)
- TCP header (Transmission Control Protocol) (RFC 9293)
- UDP header (User Datagram Protocol) (RFC 768)
- ARP (Address Resolution Protocol) (RFC 826)
- ETHERNET (Ethernet frame) (IEEE 802.3)
- ICMP (Internet Control Message Protocol) (RFC 792) (partial implementation)
- IGMP (Internet Group Management Protocol) (RFC 3376) (v1, v2 and v3)
- ICMPv6 (Internet Control Message Protocol version 6) (RFC 4443) (partial implementation)
Requirements:
- Java 8 or newer
- This library does not have any external dependencies
Basic usage:
- Gradle
implementation 'io.github.hirsivaja:jipcs:1.0.0'
- To decode an IPv4 or IPv6 message with headers call IpPayload.fromBytes(byte[] ipPayload) -method
- To encode your IPv4 or IPv6 payload call IpPayload.toBytes() -method
This project is licensed under the terms of the MIT license.