Re: TCP State

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <20011012141333.E11755@atl.lmco.com>,
Chuck Winters <cwinters@atl.lmco.com> writes:
> This may be a stupid question, but why does the sock->state 
> only hold the shift of the state?  Why doesn't it just hold
> the state so that you don't have to do all the bit shifts in
> the code?


Read the code again...

It contains just the state. The shifts are just a fancy way to test 
for multiple states efficiently in parallel.


-Andi
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux