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)
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)
I copied a file from one host to another using sftp. But after copying the time stamp is not updating . Even though I checked the permission, it looks good. I copied the same file to some temporary location, there it updating the time stamp. Anyone have any idea on this (6 Replies)
Hi
I have to move files between file systems but files in new file system must have the same attributes as in old one (privileges, time stamp etc).
Which tool is best :
- ufsdump / ufsrestore
- tar
- cpio
- pax
- dd
- mv
Or maybe there is sth else, you suggest to use.
Thx for help (5 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 Guys !
is it possible to extract lines from a file which satisfy a time contraint
for example program should consider two boundaries one current time and second the user define time and then extract all those line which fall into that specified time
lets say 10 (user define time) and 12... (5 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 want to find a file using find or any utility having the current date time stamp.....
I have an alternate way to do that.... but that is too way out of logic... so looking out something with find itself (5 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 Folks,
Need a clarification on files with date and time stamp.
Here is my requirement. There is a file created everyday with the following format "file.txt.YYYYMMDDHHMMSS".
Now i need to check for this file and if it is available then i need to do some task to the file.
I tried... (6 Replies)
Hi !
I try to change a time-stamp hh:mm:ss allways to full ten-minutes.
example: 12:51:03 to 12:50:03
sed 's/::/:{0-5}0:/g' file.txt
but it will not work propperly, because the minute-decade will be replaced with the bracket-term {0-5}. Can someone please give me a hint?
Thanks in... (6 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)