Logo Search packages:      
Sourcecode: paris-traceroute version File versions  Download package

void TCPHeader::setSYNFlag ( bool  flag  ) 

Set the SYN flag (byte 13, bit 1).

Definition at line 169 of file TCPHeader.cc.

                                {
  if (flag) header[13] |= 0x02;
  else header[13] &= 0xfd;
}


Generated by  Doxygen 1.6.0   Back to index