fibrechannel

package module
v0.0.0-...-2a19a5d Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 5 Imported by: 0

README

fibrechannel

Build Status Go Report Card License

Package fibrechannel implements marshaling and unmarshaling of T11 Fibre Channel frames

Documentation

Index

Constants

View Source
const (
	EOFn   = 0x1 // TODO
	EOFt   = 0x2 // TODO
	EOFrt  = 0x3 // TODO
	EOFdt  = 0x4 // TODO
	EOFni  = 0x5 // TODO
	EOFdti = 0x6 // TODO
	EOFrti = 0x7 // TODO
	EOFa   = 0x8 // TODO

	SOFf  = 0x1 // TODO
	SOFi4 = 0x2 // TODO
	SOFi2 = 0x3 // TODO
	SOFi3 = 0x4 // TODO
	SOFn4 = 0x5 // TODO
	SOFn2 = 0x6 // TODO
	SOFn3 = 0x7 // TODO
	SOFc4 = 0x8 // TODO

	TypeBLS      = 0x0  // TODO
	TypeELS      = 0x1  // TODO
	TypeLLCSNAP  = 0x4  // TODO
	TypeIP       = 0x5  // TODO
	TypeFCP      = 0x8  // TODO
	TypeGPP      = 0x9  // TODO
	TypeSBToCU   = 0x1b // FICON / FC-SB-3: Control Unit -> Channel
	TypeSBFromCU = 0x1c // FICON / FC-SB-3: Channel -> Control Unit
	TypeFCCT     = 0x20 // TODO
	TypeSWILS    = 0x22 // TODO
	TypeAL       = 0x23 // TODO
	TypeSNMP     = 0x24 // TODO
	TypeNVME     = 0x28 // TODO
	TypeSPINFAB  = 0xee // TODO
	TypeDIAG     = 0xef // TODO
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CSCtl

type CSCtl struct {
	Data uint8
}

func (*CSCtl) ReadFrom

func (o *CSCtl) ReadFrom(r io.Reader) (int64, error)

func (*CSCtl) WriteTo

func (o *CSCtl) WriteTo(w io.Writer) (int64, error)

type EOF

type EOF uint8

func (*EOF) String

func (o *EOF) String() string

type Frame

type Frame struct {
	RCtl          uint8
	DestinationID [3]byte
	CsctlPriority interface{}
	SourceID      [3]byte

	FCtl       FrameControl
	SeqID      uint8
	DFCtl      uint8
	SeqCount   uint16
	OXID       uint16
	RXID       uint16
	Parameters [4]byte
	Payload    interface{}
	// contains filtered or unexported fields
}

func (*Frame) ReadFrom

func (o *Frame) ReadFrom(r io.Reader) (int64, error)

func (*Frame) WriteTo

func (o *Frame) WriteTo(w io.Writer) (int64, error)

type FrameControl

type FrameControl struct {
	TODO1          int
	PriorityEnable bool
	TODO2          int
}

type Prio

type Prio struct {
	Data uint8
}

func (*Prio) ReadFrom

func (o *Prio) ReadFrom(r io.Reader) (int64, error)

func (*Prio) WriteTo

func (o *Prio) WriteTo(w io.Writer) (int64, error)

type SOF

type SOF uint8

func (*SOF) String

func (o *SOF) String() string

type Type

type Type uint8

func (*Type) String

func (o *Type) String() string

Directories

Path Synopsis
cmd
els
def
v2 encoding, this will replace the reflect based one earlier
v2 encoding, this will replace the reflect based one earlier

Jump to

Keyboard shortcuts

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