<commit_before># Net::Packet (Perl6)

Perl6 module for decoding network packets. Encoding/Generating packets is on the TODO list.

The modules are written in pure Perl6. Both the `Buf` and the `C_Buf` class can be used as frames to decode. (`C_Buf` from the perl6-net-pcap module).

The following protocols are implemented: Ethernet, IPv4, UDP and ARP. Each protocol has its own module `Net::Packet::*`.

## Documentation

All modules are documented using in-file Pod. The in-file Pods are rendered to Markdown formatted files in the doc/ directory.

## Installation

```
$ ufo          # Generates Makefile
$ make
$ make test
$ make install
```

## Usage:

```
use Net::Packet::Ethernet :short; # use :short for short notation:<commit_msg>Fixed link to docs/ in README.md.<commit_after># Net::Packet (Perl6)

Perl6 module for decoding network packets. Encoding/Generating packets is on the TODO list.

The modules are written in pure Perl6. Both the `Buf` and the `C_Buf` class can be used as frames to decode. (`C_Buf` from the perl6-net-pcap module).

The following protocols are implemented: Ethernet, IPv4, UDP and ARP. Each protocol has its own module `Net::Packet::*`.

## Documentation

All modules are documented using in-file Pod. The in-file Pods are rendered to Markdown formatted files in the [docs/](tree/master/docs) directory.

## Installation

```
$ ufo          # Generates Makefile
$ make
$ make test
$ make install
```

## Usage:

```
use Net::Packet::Ethernet :short; # use :short for short notation:
{'fraction_non_alphanumeric': 0.0992767915844839, 'fraction_numerical': 0.006574621959237344, 'mean_word_length': 4.159322033898305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3415209', 'n_tokens_mistral': 475, 'n_tokens_neox': 446, 'n_words': 200}