Skip to content

A modern Dart package for working with the IP protocol stack (IPv4, IPv6, ICMP, TCP, UDP), updated for Dart 3.8 with improved type safety and null-safety support.

License

Notifications You must be signed in to change notification settings

dab246/super_ip

Repository files navigation

Super IP

Pub Version Dart SDK

A modern Dart package for working with the IP protocol stack, including:

  • IPv4
  • IPv6
  • ICMP
  • TCP
  • UDP

Built on top of super_raw for high-performance binary encoding and decoding.


🚀 Features

✅ Fully null-safe
✅ Compatible with Dart 3.8+
✅ Implements low-level IP/TCP/UDP parsing and utilities
✅ Provides a clean, type-safe API for raw network data


📦 Installation

Add to your pubspec.yaml:

dependencies:
  super_ip: ^0.1.0

Then run:

dart pub get

🧠 Example

import 'package:super_ip/super_ip.dart';

void main() {
  final ipv4 = IPv4Packet.fromBytes([
    0x45, 0x00, 0x00, 0x54, // header + payload length
    // ...
  ]);

  print('Version: ${ipv4.version}');
  print('Source: ${ipv4.source}');
  print('Destination: ${ipv4.destination}');
}

🧩 Dependencies

  • super_raw: efficient binary data manipulation.
  • meta: annotations for better type safety.

🛠 Development

Run tests:

dart test

Run analysis:

dart analyze

📄 License

MIT © 2025 dab246

About

A modern Dart package for working with the IP protocol stack (IPv4, IPv6, ICMP, TCP, UDP), updated for Dart 3.8 with improved type safety and null-safety support.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages