PCAP_SET_TSTAMP_TYPE(3) Library Functions Manual PCAP_SET_TSTAMP_TYPE(3)NAME
pcap_set_tstamp_type - set the time stamp type to be used by a capture device
SYNOPSIS
#include <pcap/pcap.h>
int pcap_set_tstamp_type(pcap_t *p, int tstamp_type);
DESCRIPTION
pcap_set_tstamp_type() sets the the type of time stamp desired for packets captured on the pcap descriptor to the type specified by
tstamp_type. It must be called on a pcap descriptor created by pcap_create() that has not yet been activated by pcap_activate().
pcap_list_tstamp_types() will give a list of the time stamp types supported by a given capture device. See pcap-tstamp(7) for a list of
all the time stamp types.
RETURN VALUE
pcap_set_tstamp_type() returns 0 on success if the specified time stamp type is expected to be supported by the capture device, PCAP_WARN-
ING_TSTAMP_TYPE_NOTSUP on success if the specified time stamp type is not supported by the capture device, PCAP_ERROR_ACTIVATED if called
on a capture handle that has been activated, and PCAP_ERROR_CANTSET_TSTAMP_TYPE if the capture device doesn't support setting the time
stamp type.
SEE ALSO pcap(3), pcap_list_tstamp_types(3), pcap_tstamp_type_name_to_val(3), pcap-tstamp(7)
21 August 2010 PCAP_SET_TSTAMP_TYPE(3)
Check Out this Related Man Page
PCAP_SET_TSTAMP_TYPE(3PCAP)PCAP_SET_TSTAMP_TYPE(3PCAP)NAME
pcap_set_tstamp_type - set the time stamp type to be used by a capture device
SYNOPSIS
#include <pcap/pcap.h>
int pcap_set_tstamp_type(pcap_t *p, int tstamp_type);
DESCRIPTION
pcap_set_tstamp_type() sets the the type of time stamp desired for packets captured on the pcap descriptor to the type specified by
tstamp_type. It must be called on a pcap descriptor created by pcap_create() that has not yet been activated by pcap_activate().
pcap_list_tstamp_types() will give a list of the time stamp types supported by a given capture device. See pcap-tstamp(7) for a list of
all the time stamp types.
RETURN VALUE
pcap_set_tstamp_type() returns 0 on success if the specified time stamp type is expected to be supported by the capture device, PCAP_WARN-
ING_TSTAMP_TYPE_NOTSUP on success if the specified time stamp type is not supported by the capture device, PCAP_ERROR_ACTIVATED if called
on a capture handle that has been activated, and PCAP_ERROR_CANTSET_TSTAMP_TYPE if the capture device doesn't support setting the time
stamp type.
SEE ALSO pcap(3PCAP), pcap_list_tstamp_types(3PCAP), pcap_tstamp_type_name_to_val(3PCAP), pcap-tstamp(7)
21 August 2010 PCAP_SET_TSTAMP_TYPE(3PCAP)
Hi All,
I want to create a script that capture only Date & Time, Current CPU % usage, Disk % usage, Mem % usage and Top process based on this output;
Data Collected: 05/17/08 17:19:49
Refresh Interval: 600 seconds
GlancePlus Started/Reset: 05/17/08 08:19:45
B3692A GlancePlus... (18 Replies)
Hi,
I need a script that can search a word "Error" in last 10 Hrs generated logs in /log/App1 and /log/App2 folder..
Note these directories have massive log files ...actually our application generate 100 Log files of size 2MB in just a min so script must be fast enough to cater this I... (9 Replies)
Hi ..
I have a list of filenames in a particular file. All thse files get generated in the same directory. No w i want to find out which of thse got generated last and capture that time .
Have written a while loop but seems getting struck ...
while read line
do
if
then
rvst_capt_time=... (7 Replies)
Hi All,
Am trying to get a command which gives the "date + time" that a file was edited.
I cant use "ls -l" because it fails to get me the "time stamp" of files that were edited more than 6 months ago...commands like "stat" "ctime" etc aren't available on my server and I can't install them... (12 Replies)
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.:b: (7 Replies)
Hi,
my script is accepting the time from user. Then I have to select all records from file that lie between the time stamp supplied by user.
For eg
File format:
-----------
25-01-2012,20:06:27, ,09454545455,099999999999999,105,105, , ,TTK32,9999, ,PPUU, ,O, ,99, , ,
25-01-2012,20:06:39,... (10 Replies)
Hi,
I need help to read file in a directory on basis of time stamp.
e.g. If file access in last 2 minutes it should not be copy to remote directory.
Below is my script.
#!/bin/ksh
DATE=`date +"%Y-%m-%d_%H%M"`
SEPARATER=" "
exec < out_interfaces.cfg
while read source_path... (10 Replies)
I have a log file where every line starts with a time stamp. I have to extract lines from the file within a given time stamp.
For example:
IF the file is like this:
2012-08-19 10:34:03,446|WebContainer : 56|OrderHeaderDaoImpl|findByKeys|26|
2012-08-20 11:34:03,463|WebContainer :... (8 Replies)
I have log files with time stamps. I want to search for text between two time stamp using sed even if the first tme stamp or the last time stamp are not present. For e.g. if i search between 9:30 and 9:40 then it should return text even if 9:30 or 9:40 is not there but between 9:30 and 9:40 is... (8 Replies)
hi,
i have a Archive directory in which files are archived or stored with date and time stamp to prevent over writing.
example:
there are 5 files
s1.txt
s2.txt
s3.txt
s4.txt
s5.txt
while moving these files to archive directory, date and time stamp is added.
of format `date... (9 Replies)
Hi,
I need to collect IP address of all servers (more than 300). One way is put it in for loop and run nslookup for that servers list, but there are multiple fields in output.
(tty/dev/pts/13): bash: 1011 > nslookup vplssor04
Server: 10.58.115.34
Address: 10.58.115.34#53
Name: ... (7 Replies)
I am creating log monitoring script and stuck up to get the logs between two time stamp.
can you please help me to create the script to get the logs between two time stamp, for example, I need the complete logs between # Time: 150328 1:30:10 and # Time: 150328 19:10:57
OS : Cent OS 6.x... (8 Replies)
Can you help me to collect the entire logs between two time stamp. The below awk command collecting the logs only if the line has time stamp.
awk '$0>=from && $0<=to' from="150318 23:19:04" to="150318 23:55:04" log file
150318 23:19:04 logentries
150318 23:29:04 logentries
150318... (11 Replies)
Hi guys,
Appreciate your help as I am stuck with searching the logs for last 30 minutes from the current time. Current time is time when you execute the script and it will search for <string> through the logs for last 30 minutes only and if <string> found then print those lines only.
The... (18 Replies)