Re: Modifying farwarded packets





--

Farooque Khan
Project Manager
Infospectrum India Pvt. Ltd.
farooque@xxxxxxxxxxxxxxxxx
Phone: +91 712 229 3711
www.info-spectrum.com

This e-mail may contain confidential or proprietary information. If you are
not the intended recipient please notify the author by replying to this
e-mail and please note that use, disclosure, distribution, copying or
printing of this e-mail or its attachments is strictly prohibited and may be
unlawful. Whilst this e-mail has been checked for viruses, the sender takes
no responsibility and recipients are advised to undertake their own checks.


"Ronny" <ronny@xxxxxxxxxxx> wrote in message
news:OOQX2j9sHHA.4796@xxxxxxxxxxxxxxxxxxxxxxx
I have a few theoretical questions-

1. Can someone advise what is the total length of ip packet as indicated
in
the ip header? It doesn't match the total length as indicated in Ethereal
address (in the first column of the packet display).

It's usually IP Hdr size + Protocol header size (TCP/UDP etc) + protocol
payload size

Ethereal also shows the total bytes on wire which usually also include
ethernet header size etc.

2. I use WinPcap library to fetch Ethereal dump of TCP packets collected
from some 2 hosts communication. For each packet in the callback which my
program fetch, it has to send the packet to a new host by after modifying
both (source and destination) addresses and check sums in the ip and tcp
layers.
My question- is there anything more that should be modified like the
ethernet layer addresses or something else?

Depends on how you are sending the packets.



Regards

Ronny





.



Relevant Pages

  • Re: Modifying farwarded packets
    ... You have to calculate using dummy header too, ... Can someone advise what is the total length of ip packet as indicated ... from some 2 hosts communication. ... ethernet layer addresses or something else? ...
    (microsoft.public.win32.programmer.networks)
  • Modifying farwarded packets
    ... address (in the first column of the packet display). ... I use WinPcap library to fetch Ethereal dump of TCP packets collected ... from some 2 hosts communication. ... ethernet layer addresses or something else? ...
    (microsoft.public.win32.programmer.networks)