From 2e1869671d139fe04d65d10160db177dcc229850 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 23 Aug 2011 00:58:31 -0300 Subject: [PATCH] Small code formatting --- src/tcp/tcpheader.cpp | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tcp/tcpheader.cpp b/src/tcp/tcpheader.cpp index d114e20..e3a3254 100644 --- a/src/tcp/tcpheader.cpp +++ b/src/tcp/tcpheader.cpp @@ -62,47 +62,47 @@ uint32_t TcpHeader::get_acknowledgment_number() const uint8_t TcpHeader::get_header_length() const { - return (Payload[12] & 0xF0) >> 4; + return ( Payload[12] & 0xF0 ) >> 4; } bool TcpHeader::get_congestion_window_reduced() const { - return (Payload[13] & 0x80); + return ( Payload[13] & 0x80 ); } bool TcpHeader::get_ecn_echo() const { - return (Payload[13] & 0x40); + return ( Payload[13] & 0x40 ); } bool TcpHeader::get_urgent() const { - return (Payload[13] & 0x20); + return ( Payload[13] & 0x20 ); } bool TcpHeader::get_acknowledgment() const { - return (Payload[13] & 0x10); + return ( Payload[13] & 0x10 ); } bool TcpHeader::get_push() const { - return (Payload[13] & 0x08); + return ( Payload[13] & 0x08 ); } bool TcpHeader::get_reset() const { - return (Payload[13] & 0x04); + return ( Payload[13] & 0x04 ); } bool TcpHeader::get_synchronize() const { - return (Payload[13] & 0x02); + return ( Payload[13] & 0x02 ); } bool TcpHeader::get_finish() const { - return (Payload[13] & 0x01); + return ( Payload[13] & 0x01 ); } uint16_t TcpHeader::get_window_size() const -- 1.7.1