github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/tcp/flag.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package tcp
     4  
     5  type flag byte
     6  
     7  const (
     8  	Flag_Reserved1 flag = 0b00001000
     9  	Flag_Reserved2 flag = 0b00000100
    10  	Flag_Reserved3 flag = 0b00000010
    11  	Flag_NS        flag = 0b00000001
    12  	Flag_CWR       flag = 0b10000000
    13  	Flag_ECE       flag = 0b01000000
    14  	Flag_URG       flag = 0b00100000
    15  	Flag_ACK       flag = 0b00010000
    16  	Flag_PSH       flag = 0b00001000
    17  	Flag_RST       flag = 0b00000100
    18  	Flag_SYN       flag = 0b00000010
    19  	Flag_FIN       flag = 0b00000001
    20  )