Categorygithub.com/nextmn/gopacket-srv6
modulepackage
0.0.8
Repository: https://github.com/nextmn/gopacket-srv6.git
Documentation: pkg.go.dev

# README

gopacket-srv6

gopacket (v1.1.19) is missing decoder and encoder for IPv6Routing Extension with RoutingType = 4 (SRv6) This file module is a patch to enable using gopacket with SRv6.

For information, here are some related PRs:

  • 703 : implementation of SRv6 extension header decoding (LastEntry, Flags and Tag are missing)
  • 879 : implementation of SRv6 extension header decoding
  • 889 : implementation of SRv6 extension header decoding
  • 1040 : implementation of SRv6 extension header decoding + serialization

Nota: For the decoding part, this code is based on PR 1040, by Takanori Hirano and Gernot Vormayr.

# Variables

Register our decoding function to use it instead of gopacket's one.

# Structs

Copy of ipv6ExtensionBase from gopacket's layers/ip6.go.
Copy of IPv6Routing from gopacket's layers/ip6.go with the following modifications: - Added SRv6 Fields (`LastEntry`, `Flags`, `Tag`).