This project is read-only.

Adding the Trailer (with Padding and seq. no) - Closed

Apr 18, 2012 at 12:54 PM
Edited Apr 18, 2012 at 1:20 PM

How can we add the Ethernet trailer (with padding and seq. no) to the packet in pcapdotnet? am using UDP Layer...

Apr 18, 2012 at 9:19 PM

Hi manik2k3,

 

Why do you need to add the trailer?

Usually, the padding will be added automatically when you send the packet.

What sequence number?

 

Boaz.

Apr 19, 2012 at 6:29 AM
Edited Apr 19, 2012 at 6:44 AM

Hi brickner,

Thanks for your prompt reply.. i want to send the trailer with padding + Sequence no.

0000  03 00 00 00 00 02 02 00  00 02 28 20 08 00 45 00   ........ ..( ..E.
0010  00 2b 01 12 00 00 01 11  a4 f9 0a 02 28 0d e0 e0   .+...... ....(...
0020  00 c8 c3 69 c3 69 00 17  00 00 00 06 00 03 4f 4b   ...i.i.. ......OK
0030  20 20 20 52 52 50 43 17  76 00 00 0a                  RRPC. v...   

In the above example 00 00 is the padding and 0a is the sequence no.

basically i like to create a frame like the following.. pls help me.

7 octets   1 octet   6 octets 6 octets 2 octets                45 octets
Preamble
10101010
---
10101010
  Start   Frame
Delimiter
10101011
Destination
Address
Source
Address
Type
0x0800
IP V4
IP
Structure
UDP
Structure
Payload
1 à 17 octets
Padding
0 à 16 octets

 

1 octet 4 octets 12 octets
SN
000
--
255
Frame
Check
Seq
Inter Frame Gap

 

Apr 19, 2012 at 11:16 PM

If you can provide a link to a pcap file that would be very helpful.

May 3, 2012 at 12:42 PM

I have implemented it by reducing the UDP and IP Layer's length. Thanks