[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #6823] tcp_in.c - small optimization
From: |
Bill Auerbach |
Subject: |
[lwip-devel] [patch #6823] tcp_in.c - small optimization |
Date: |
Tue, 05 May 2009 18:11:35 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 |
URL:
<http://savannah.nongnu.org/patch/?6823>
Summary: tcp_in.c - small optimization
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: billauerbach
Submitted on: Tue 05 May 2009 02:11:33 PM EDT
Category: None
Priority: 3 - Low
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
Index: tcp_in.c
===================================================================
RCS file: /sources/lwip/lwip/src/core/tcp_in.c,v
retrieving revision 1.107
diff -u -r1.107 tcp_in.c
--- tcp_in.c 19 Apr 2009 12:17:59 -0000 1.107
+++ tcp_in.c 5 May 2009 18:08:58 -0000
@@ -169,8 +169,8 @@
ackno = tcphdr->ackno = ntohl(tcphdr->ackno);
tcphdr->wnd = ntohs(tcphdr->wnd);
- flags = TCPH_FLAGS(tcphdr) & TCP_FLAGS;
- tcplen = p->tot_len + ((flags & TCP_FIN || flags & TCP_SYN)? 1: 0);
+ flags = TCPH_FLAGS(tcphdr);
+ tcplen = p->tot_len + ((flags & (TCP_FIN|TCP_SYN))? 1: 0);
/* Demultiplex an incoming segment. First, we check if it is destined
for an active connection. */
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6823>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #6823] tcp_in.c - small optimization,
Bill Auerbach <=