Thanks to visit codestin.com
Credit goes to github.com

Skip to content

job/roasort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ROASORT(8) - System Manager's Manual

NAME

roasort - order and deduplicate ROA ip address information

DESCRIPTION

The roasort utility reads a list of newline separated ROA IP address information elements from stdin. Information elements are in the form: <address/prefixlength>[-maxlength].

The utility can be used in two ways: the error exit code indicates whether the input was in canonical form or not, and the canonical form is written to the standard output.

The utility sorts and deduplicates the elements according to the canonicalization process described in draft-ietf-sidrops-rfc6482bis.

EXIT STATUS

The roasort utility exits 0 on success, and >0 if an error occurs, such as the input containing duplicates or being unsorted.

EXAMPLES

$ cat << EOF | ./roasort
10.0.0.0/24
10.0.0.0/24-24
10.0.0.0/8
2001:db8:db8::/48
2001:db8::/32
EOF
10.0.0.0/8
10.0.0.0/24
2001:db8::/32
2001:db8:db8::/48
$ echo $?
1

$ echo "2001:db8::/32-33\n2001:db8::/48" | ./roasort
2001:db8::/32-33
2001:db8::/48
$ echo $?
0

STANDARDS

A Profile for Route Origin Authorizations (ROAs), https://datatracker.ietf.org/doc/draft-ietf-sidrops-rfc6482bis/.

AUTHORS

Job Snijders <[email protected]>

OpenBSD 7.3 - July 27, 2023

About

ROA sorter in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published