github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/tcp/option-alt-checksum.go (about)

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