batadvvis

package
v0.0.0-...-0eeec4f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package batadvvis provides types for "vis" packets containing "batman-adv" protocol related metadata distributed via the A.L.F.R.E.D. daemon

Index

Constants

View Source
const (
	// A.L.F.R.E.D. packet type ID for vis data
	PACKETTYPE = 1
	// A.L.F.R.E.D. packet version for vis data
	PACKETVERSION = 1
)

Variables

View Source
var ErrParse = errors.New("parse error")

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Mac     alfred.HardwareAddr
	IfIndex uint8
	Qual    uint8
}

type Iface

type Iface struct {
	Mac alfred.HardwareAddr
}

type VisV1

type VisV1 struct {
	Mac       alfred.HardwareAddr
	Iface_n   uint8
	Entries_n uint8
	Ifaces    []Iface
	Entries   []Entry
}

vis data item

func (*VisV1) GetPacketType

func (vis *VisV1) GetPacketType() uint8

func (*VisV1) ReadAlfred

func (vis *VisV1) ReadAlfred(data alfred.Data) error

read structured information from A.L.F.R.E.D. packet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL