github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/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  }