Categorygithub.com/takumin/gopacket-radius
modulepackage
0.0.0-20201114035953-af382ce07f93
Repository: https://github.com/takumin/gopacket-radius.git
Documentation: pkg.go.dev

# README

CI PkgGoDev Codecov Go Report Card License FOSSA

This repository has been merged to https://github.com/google/gopacket/pull/821

gopacket-radius

RADIUS Protocol extension for google/gopacket

How to use

package main

import (
	"flag"
	"fmt"
	"io"
	"log"
	"os"

	"github.com/google/gopacket"
	"github.com/google/gopacket/pcap"
	_ "github.com/takumin/gopacket-radius"
)

func main() {
	var (
		f string
	)

	flag.StringVar(&f, "pcap", "", "pcap file path")
	flag.Parse()

	if _, err := os.Stat(f); err != nil {
		log.Fatal(err)
	}

	h, err := pcap.OpenOffline(f)
	if err != nil {
		log.Fatal(err)
	}
	defer h.Close()

	src := gopacket.NewPacketSource(h, h.LinkType())
	for {
		pkt, err := src.NextPacket()
		if err == io.EOF {
			break
		} else if err != nil {
			log.Fatal(err)
		}

		fmt.Println(pkt)
	}
}

License

FOSSA Status

# Constants

RFC2866 5.6.
RFC2866 5.2.
RFC2869 5.1.
RFC2866 5.3.
RFC2866 5.8.
RFC2869 5.16.
RFC2866 5.12.
RFC2866 5.11.
RFC2869 5.2.
RFC2866 5.4.
RFC2866 5.9.
RFC2866 5.5.
RFC2866 5.7.
RFC2866 5.1.
RFC2866 5.10.
RFC2867 4.1.
RFC2867 4.2.
RFC2869 5.15.
RFC2869 5.5.
RFC2869 5.4.
RFC2869 5.7.
RFC2869 5.8.
RFC2869 5.6.
RFC2865 5.20.
RFC2865 5.19.
RFC2865 5.30.
RFC2865 5.31.
RFC2865 5.40.
RFC2865 5.3.
RFC2865 5.25.
RFC2869 5.12.
RFC2869 5.11.
RFC2869 5.13.
RFC2869 5.3.
RFC2865 5.11.
RFC2865 5.37.
RFC2865 5.38.
RFC2865 5.39.
RFC2865 5.13.
RFC2865 5.8.
RFC2865 5.9.
RFC2865 5.23.
RFC2865 5.12.
RFC2869 5.18.
RFC2865 5.7.
RFC2865 5.22.
RFC2865 5.10.
RFC2865 5.28.
RFC2865 5.14.
RFC2865 5.36.
RFC2865 5.35.
RFC2865 5.43.
RFC2865 5.34.
RFC2865 5.15.
RFC2865 5.16.
RFC2869 5.14.
RFC2865 5.32.
RFC2865 5.4.
RFC2865 5.5.
RFC2869 5.17.
RFC2865 5.41.
RFC2869 5.9.
RFC2865 5.42.
RFC2869 5.10.
RFC2865 5.33.
RFC2865 5.18.
RFC2865 5.6.
RFC2865 5.27.
RFC2865 5.24.
RFC2865 5.29.
RFC2868 3.7.
RFC2868 3.9.
RFC2868 3.3.
RFC2868 3.2.
RFC2868 3.5.
RFC2868 3.8.
RFC2868 3.6.
RFC2868 3.10.
RFC2868 3.4.
RFC2868 3.1.
RFC2865 5.1.
RFC2865 5.2.
RFC2865 5.26.
RFC2865 3.
RFC2865 3.
RFC2865 3.
RFC2865 3.
RFC2865 3.
RFC2865 3.
RFC2865 3.
RFC2865 3.
RFC2865 3.

# Variables

No description provided by the author

# Structs

RADIUS represents a Remote Authentication Dial In User Service layer.
RADIUSAttribute represents attributes.

# Type aliases

RADIUSAttributeType represents attribute length.
RADIUSAttributeType represents attribute type.
RADIUSAttributeType represents attribute value.
RADIUSAuthenticator represents authenticator.
RADIUSCode represents packet type.
RADIUSIdentifier represents packet identifier.
RADIUSLength represents packet length.