Documentation ¶
Overview ¶
Copyright 2016-2019 DutchSec (https://dutchsec.com/)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( ICMPv4TypeEchoReply = 0 ICMPv4TypeDestinationUnreachable = 3 ICMPv4TypeSourceQuench = 4 ICMPv4TypeRedirect = 5 ICMPv4TypeEchoRequest = 8 ICMPv4TypeRouterAdvertisement = 9 ICMPv4TypeRouterSolicitation = 10 ICMPv4TypeTimeExceeded = 11 ICMPv4TypeParameterProblem = 12 ICMPv4TypeTimestampRequest = 13 ICMPv4TypeTimestampReply = 14 ICMPv4TypeInfoRequest = 15 ICMPv4TypeInfoReply = 16 ICMPv4TypeAddressMaskRequest = 17 ICMPv4TypeAddressMaskReply = 18 )
const ( // DestinationUnreachable ICMPv4CodeNet = 0 ICMPv4CodeHost = 1 ICMPv4CodeProtocol = 2 ICMPv4CodePort = 3 ICMPv4CodeFragmentationNeeded = 4 ICMPv4CodeSourceRoutingFailed = 5 ICMPv4CodeNetUnknown = 6 ICMPv4CodeHostUnknown = 7 ICMPv4CodeSourceIsolated = 8 ICMPv4CodeNetAdminProhibited = 9 ICMPv4CodeHostAdminProhibited = 10 ICMPv4CodeNetTOS = 11 ICMPv4CodeHostTOS = 12 ICMPv4CodeCommAdminProhibited = 13 ICMPv4CodeHostPrecedence = 14 ICMPv4CodePrecedenceCutoff = 15 // TimeExceeded ICMPv4CodeTTLExceeded = 0 ICMPv4CodeFragmentReassemblyTimeExceeded = 1 // ParameterProblem ICMPv4CodePointerIndicatesError = 0 ICMPv4CodeMissingOption = 1 ICMPv4CodeBadLength = 2 // Redirect // ICMPv4CodeNet = same as for DestinationUnreachable // ICMPv4CodeHost = same as for DestinationUnreachable ICMPv4CodeTOSNet = 2 ICMPv4CodeTOSHost = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICMPv4TypeCode ¶
type ICMPv4TypeCode uint16
func CreateICMPv4TypeCode ¶
func CreateICMPv4TypeCode(typ uint8, code uint8) ICMPv4TypeCode
CreateICMPv4TypeCode is a convenience function to create an ICMPv4TypeCode gopacket type from the ICMPv4 type and code values.
func (ICMPv4TypeCode) Code ¶
func (a ICMPv4TypeCode) Code() uint8
Code returns the ICMPv4 code field.
func (ICMPv4TypeCode) GoString ¶
func (a ICMPv4TypeCode) GoString() string
func (ICMPv4TypeCode) SerializeTo ¶
func (a ICMPv4TypeCode) SerializeTo(bytes []byte)
SerializeTo writes the ICMPv4TypeCode value to the 'bytes' buffer.
func (ICMPv4TypeCode) String ¶
func (a ICMPv4TypeCode) String() string
func (ICMPv4TypeCode) Type ¶
func (a ICMPv4TypeCode) Type() uint8
Type returns the ICMPv4 type field.