rfc791

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC791InternetHeaderPrecedenceNetworkControl      = 0b111
	RFC791InternetHeaderPrecedenceInternetworkControl = 0b110
	RFC791InternetHeaderPrecedenceCRITICECP           = 0b101
	RFC791InternetHeaderPrecedenceFlashOverride       = 0b100
	RFC791InternetHeaderPrecedenceFlash               = 0b011
	RFC791InternetHeaderPrecedenceImmediate           = 0b010
	RFC791InternetHeaderPrecedencePriority            = 0b001
	RFC791InternetHeaderPrecedenceRoutine             = 0b000
)
View Source
const (
	RFC791InternetHeaderDelayNormal = false
	RFC791InternetHeaderDelayLow    = true
)
View Source
const (
	RFC791InternetHeaderThroughputNormal = false
	RFC791InternetHeaderThroughputHigh   = true
)
View Source
const (
	RFC791InternetHeaderReliabilityNormal = false
	RFC791InternetHeaderReliabilityHigh   = true
)
View Source
const (
	RFC791InternetHeaderFlagsBit1MayFragment   = false
	RFC791InternetHeaderFlagsBit1DoNotFragment = true
)
View Source
const (
	RFC791InternetHeaderFlagsBit2LastFragment  = false
	RFC791InternetHeaderFlagsBit2MoreFragments = true
)
View Source
const (
	RFC791InternetHeaderProtocolReserved = iota
	RFC791InternetHeaderProtocolICMP
	RFC791InternetHeaderProtocolUnassigned
	RFC791InternetHeaderProtocolGatewayToGateway
	RFC791InternetHeaderProtocolCMCCGatewayMonitoringMessage
	RFC791InternetHeaderProtocolST
	RFC791InternetHeaderProtocolTCP
	RFC791InternetHeaderProtocolUCL

	RFC791InternetHeaderProtocolSecure
	RFC791InternetHeaderProtocolBBNRCCMonitoring
	RFC791InternetHeaderProtocolNVP
	RFC791InternetHeaderProtocolPUP
	RFC791InternetHeaderProtocolPluribus
	RFC791InternetHeaderProtocolTelenet
	RFC791InternetHeaderProtocolXNET
	RFC791InternetHeaderProtocolChaos
	RFC791InternetHeaderProtocolUserDatagram
	RFC791InternetHeaderProtocolMultiplexing
	RFC791InternetHeaderProtocolDCN
	RFC791InternetHeaderProtocolTACMonitoring

	RFC791InternetHeaderProtocolSATNETAndBackroomEXPAK    = 64
	RFC791InternetHeaderProtocolMITSubnetSupport          = 65
	RFC791InternetHeaderProtocolSATNETMonitoring          = 69
	RFC791InternetHeaderProtocolInternetPacketCoreUtility = 71
	RFC791InternetHeaderProtocolBackroomSATNETMonitoring  = 76
	RFC791InternetHeaderProtocolWIDEBANDMonitoring        = 78
	RFC791InternetHeaderProtocolWIDEBANDEXPAK             = 79
)
View Source
const (
	RFC791InternetHeaderLengthWithoutOptions = 5
)
View Source
const (
	RFC791InternetHeaderVersion = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RFC791InternetHeaderFormatWord0

type RFC791InternetHeaderFormatWord0 struct {
	Version uint8 `bitfield:"4"`

	IHL uint8 `bitfield:"4"`

	Precedence  uint8 `bitfield:"3"`
	Delay       bool  `bitfield:"1"`
	Throughput  bool  `bitfield:"1"`
	Reliability bool  `bitfield:"1"`
	Reserved    uint8 `bitfield:"2"`

	TotalLength uint16 `bitfield:"16"`
}

type RFC791InternetHeaderFormatWord1

type RFC791InternetHeaderFormatWord1 struct {
	Identification uint16 `bitfield:"16"`

	FlagsBit0Reserved bool `bitfield:"1"`
	FlagsBit1         bool `bitfield:"1"`
	FlagsBit2         bool `bitfield:"1"`

	FragmentOffset uint16 `bitfield:"13"`
}

type RFC791InternetHeaderFormatWord2

type RFC791InternetHeaderFormatWord2 struct {
	TimeToLive uint8 `bitfield:"8"`

	Protocol uint8 `bitfield:"8"`

	HeaderChecksum uint16 `bitfield:"16"`
}

type RFC791InternetHeaderFormatWord3

type RFC791InternetHeaderFormatWord3 struct {
	SourceAddressOctet0 uint8 `bitfield:"8"`
	SourceAddressOctet1 uint8 `bitfield:"8"`
	SourceAddressOctet2 uint8 `bitfield:"8"`
	SourceAddressOctet3 uint8 `bitfield:"8"`
}

type RFC791InternetHeaderFormatWord4

type RFC791InternetHeaderFormatWord4 struct {
	DestinationAddressOctet0 uint8 `bitfield:"8"`
	DestinationAddressOctet1 uint8 `bitfield:"8"`
	DestinationAddressOctet2 uint8 `bitfield:"8"`
	DestinationAddressOctet3 uint8 `bitfield:"8"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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