10-21-2011
How to capturing packet data so i can see the Version, IHL, TOS, etc?
Helo Folks
i had read an answer in this thread unix[dot]com/programming/117551-calculate-ip-header-checksum-manually.html
i need to know what the software name that was used to capturing packet data in a network, just like the packet's capture output that showed up in the thread.
Thank you
PS
#Wowww i just shocked with the forum's rules.. very very restricted and hard rules
i am not allowed to write a URL before i ever post at least 5 post. wewww..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file with some values in a tab delimted format
Eg:
'test' contains:
a<tab>b<tab>c<tab>Trk_12345678
now i need to capture this value 'Trk_12345678' into a variable say 'x' and append that value of 12345678 to 12345679 and store is back to a new 'test1' file as :
'test1'... (11 Replies)
Discussion started by: shiroh_1982
11 Replies
2. Shell Programming and Scripting
Hi guys,
I need a way to capture the host on the next-to-last hop in a traceroute output.
The last output is the destination but I need to capture the router just before the last hop.
I can do this in perl but I'm not so sure about Shell...
I'm on AIX 5.3 using ksh
any ideas?
... (3 Replies)
Discussion started by: TivoliGUY
3 Replies
3. UNIX for Dummies Questions & Answers
I'm new to UNIX. We are using SunOS5.9. In order to maintain the control session active during large file tranfers in ftp, i like to send keep alive packets for every 10 seconds.I like to know the steps to be done to achieve this.
Please help me guys.Thanks in advance. (0 Replies)
Discussion started by: rpr
0 Replies
4. Programming
Hi,
i am using a linux CentOS machine. I have 2 real network interfaces
eth0, eth1 and 2 virtual interfaces tap0 and tap1. I am using PCAP library to capture
the packets on theses interfaces. If i specify the interface as "any",
i cannot find a way to know from which interface the packet... (1 Reply)
Discussion started by: rahulnitk2004
1 Replies
5. Shell Programming and Scripting
Hi everyone!
Can any one help me out regarding capturing relevant data from a file.
For e.g, if i want to capture the comment written after "Prompt:" for a particular date, like for this case what would be the command to capture the tag written after "Prompt:" for Date: 2009-03-20.
A... (7 Replies)
Discussion started by: muhmsida
7 Replies
6. Shell Programming and Scripting
Hii, Friends,
I want your help in one of my problem.
My problem is as follows.
I have a flat file as follows (Just a sample)
MHT011
01(DOT)8750707asdfas8609
03(DOT)ASD3453ASD
09(DOT)876JHT87
11(DOT)sfd324ert
TTT077
01(MOB)876786klj897
06(MOB)876JHT87
07(MOB)sfd324ert... (4 Replies)
Discussion started by: anushree.a
4 Replies
7. Red Hat
I have installed nethogs to see which process is sending load on the network. i would like to know how can i capture its data in a log file. Or is there is a unix command like script or tee which can help me to capture the data using cronjob (0 Replies)
Discussion started by: anshus1
0 Replies
8. Shell Programming and Scripting
Hi,
This is a vcd file.A vcd file may have 'n' modules.
1) I need to capture the data in bold,i.e. the module names (shown in bold)
2) Also i need to capture the data inside each individual module,say for tst_bench_top ,i need to capture data from line 4 to line 20 ...
I just want one... (2 Replies)
Discussion started by: veerabahu
2 Replies
9. Shell Programming and Scripting
Hi folks,
I am working on assignment that captures all the records(2 columns one column contains names and other contain date of birth) from excel sheet stored in a directory and checks for current date and month.
If it matches current date and month then the matched records are printed as... (1 Reply)
Discussion started by: giridhar276
1 Replies
10. AIX
(5 Replies)
Discussion started by: Vishal_dba
5 Replies
LEARN ABOUT PHP
pcap-savefile
PCAP-SAVEFILE(5) File Formats Manual PCAP-SAVEFILE(5)
NAME
pcap-savefile - libpcap savefile format
DESCRIPTION
NOTE: applications and libraries should, if possible, use libpcap to read savefiles, rather than having their own code to read savefiles.
If, in the future, a new file format is supported by libpcap, applications and libraries using libpcap to read savefiles will be able to
read the new format of savefiles, but applications and libraries using their own code to read savefiles will have to be changed to support
the new file format.
``Savefiles'' read and written by libpcap and applications using libpcap start with a per-file header. The format of the per-file header
is:
+------------------------------+
| Magic number |
+--------------+---------------+
|Major version | Minor version |
+--------------+---------------+
| Time zone offset |
+------------------------------+
| Time stamp accuracy |
+------------------------------+
| Snapshot length |
+------------------------------+
| Link-layer header type |
+------------------------------+
All fields in the per-file header are in the byte order of the host writing the file. The first field in the per-file header is a 4-byte
magic number, with the value 0xa1b2c3d4. The magic number, when read by a host with the same byte order as the host that wrote the file,
will have the value 0xa1b2c3d4, and, when read by a host with the opposite byte order as the host that wrote the file, will have the value
0xd4c3b2a1. That allows software reading the file to determine whether the byte order of the host that wrote the file is the same as the
byte order of the host on which the file is being read, and thus whether the values in the per-file and per-packet headers need to be byte-
swapped.
Following this are:
A 2-byte file format major version number; the current version number is 2.
A 2-byte file format minor version number; the current version number is 4.
A 4-byte time zone offset; this is always 0.
A 4-byte number giving the accuracy of time stamps in the file; this is always 0.
A 4-byte number giving the "snapshot length" of the capture; packets longer than the snapshot length are truncated to the snapshot
length, so that, if the snapshot length is N, only the first N bytes of a packet longer than N bytes will be saved in the capture.
a 4-byte number giving the link-layer header type for packets in the capture; see pcap-linktype(7) for the LINKTYPE_ values that can
appear in this field.
Following the per-file header are zero or more packets; each packet begins with a per-packet header, which is immediately followed by the
raw packet data. The format of the per-packet header is:
+---------------------------------------+
| Time stamp, seconds value |
+---------------------------------------+
| Time stamp, microseconds value |
+---------------------------------------+
| Length of captured packet data |
+---------------------------------------+
|Un-truncated length of the packet data |
+---------------------------------------+
All fields in the per-packet header are in the byte order of the host writing the file. The per-packet header begins with a time stamp
giving the approximate time the packet was captured; the time stamp consists of a 4-byte value, giving the time in seconds since January 1,
1970, 00:00:00 UTC, followed by a 4-byte value, giving the time in microseconds since that second. Following that are a 4-byte value giv-
ing the number of bytes of captured data that follow the per-packet header and a 4-byte value giving the number of bytes that would have
been present had the packet not been truncated by the snapshot length. The two lengths will be equal if the number of bytes of packet data
are less than or equal to the snapshot length.
SEE ALSO
pcap(3PCAP), pcap-linktype(7)
21 October 2008 PCAP-SAVEFILE(5)