github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/ipv6/packet-structure.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package ipv6 4 5 // packetStructure is represent protocol structure! 6 // It is just to show protocol in better way, we never use this type! 7 type packetStructure struct { 8 Version uint8 9 TrafficClass uint8 10 FlowLabel uint32 11 PayloadLength uint16 12 NextHeader uint8 // https://en.wikipedia.org/wiki/List_of_IP_protocol_numbers 13 HopLimit uint8 14 SourceIPAddress Addr 15 DestinationIPAddress Addr 16 Payload []byte 17 }