When checking to see if a packet is of a given type by checking the
authorGuy Harris <guy@alum.mit.edu>
Wed, 2 Jun 1999 01:28:47 +0000 (01:28 -0000)
committerGuy Harris <guy@alum.mit.edu>
Wed, 2 Jun 1999 01:28:47 +0000 (01:28 -0000)
commita8f72707e1b6f317615b2a60f9646f426e315a6a
tree98d00578902028cbd438caa59ca85840906964d2
parent885e4ddfcd9841eab2678ff31eee8ea641672937
When checking to see if a packet is of a given type by checking the
source and destination port numbers, check both port numbers against the
specified port, rather than checking the lower of the two port numbers
against the specified port, just in case you happen to either have

1) the port number for that type being high enough that you can
   get client sockets using it

or

2) client sockets using it for some other reason.

svn path=/trunk/; revision=301
packet-tcp.c