github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/tcp/flag.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package tcp 4 5 type flag byte 6 7 const ( 8 Flag_Reserved1 byte = 0b00001000 9 Flag_Reserved2 byte = 0b00000100 10 Flag_Reserved3 byte = 0b00000010 11 Flag_NS byte = 0b00000001 12 Flag_CWR byte = 0b10000000 13 Flag_ECE byte = 0b01000000 14 Flag_URG byte = 0b00100000 15 Flag_ACK byte = 0b00010000 16 Flag_PSH byte = 0b00001000 17 Flag_RST byte = 0b00000100 18 Flag_SYN byte = 0b00000010 19 Flag_FIN byte = 0b00000001 20 )