github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/tcp/option-alt-checksum-data.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package tcp
     4  
     5  import "github.com/GeniusesGroup/libgo/binary"
     6  
     7  type optionAltChecksumData []byte
     8  
     9  func (o optionAltChecksumData) Length() byte            { return o[0] }
    10  func (o optionAltChecksumData) AltChecksumData() uint16 { return binary.BigEndian.Uint16(o[1:]) } // unrecognised
    11  func (o optionAltChecksumData) NextOption() []byte      { return o[3:] }
    12  
    13  func (o optionAltChecksumData) Process(s *Socket) error {
    14  	return nil
    15  }