Re: How to Distinguish between a reset packet and a normal packet



sairam wrote:
Dan N wrote:
On Thu, 22 Mar 2007 21:09:45 -0700, sairam wrote:

How Distinguish between a Reset Packet and a normal Data or Ack or
Request packet.
That's a pretty vague question. In what context? What protocol are you
talking about?

If you're talking about TCP, in a reset packet, the RST bit in the header
is set. In an Ack packet the ACK bit is set.

Dan

Iam talking in the sense of programming, when received a packet in my
program it strips off all the header content, then how can I know the
packet is a RST packet

http://www.networksorcery.com/enp/protocol/tcp.htm

You just have to check if the RST bit (which is, i think, the 142 bit in the tcp header) is 1 or 0.

Matthias

.



Relevant Pages

  • alt.2600 FAQ Revision .014 (2/4)
    ... One type of firewall is the packet filtering firewall. ... Dropping packets instead of rejecting them greatly increases the time required to scan your network. ... Port scanning UDP ports is much slower than port scanning TCP ports. ... Chartreuse Use the electricity from your phone line Cheese Connect two phones to create a diverter Chrome Manipulate Traffic Signals by Remote Control ...
    (alt.2600)
  • RE: First TCP packet
    ... The TCP datagram travels inside an IP packet, ... to B should be the TTL on the IP Header. ... might change depending of devices on the path ...
    (Pen-Test)
  • Re: Socket weirdness
    ... It's hard to explain all of TCP in a single post. ... then that is an not a valid packet and a packet with the RST bit set is sent clearing down the connection. ... Firstly, just to be absolutely clear, there is no such thing as an ACK packet, or a RST packet, or a SYN packet, etc. ... I was leading in to my next question about whether Send blocked for that response because I assumed ...
    (microsoft.public.dotnet.framework)
  • Re: NDIS passthru packet redirection
    ... I solved this with adjusting the TCP checksum. ... Now I must redirect the answer packet to the calling application. ... TCP header or TCP data isn't changed, the you don't need to update the TCP ...
    (microsoft.public.development.device.drivers)
  • Re: jailed "system" needs IPV4 access
    ... see if the ACK flag is set on a tcp packet. ... the keep-state option just ... 00500 deny log ip from 192.160.1.0/24 to any in via dc1 ...
    (comp.unix.bsd.freebsd.misc)