diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-03-06 21:11:31 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-03-06 21:11:31 +0000 |
commit | 57eeea4b2032cb66ce8e74e012c136fc21c188c8 (patch) | |
tree | f8e489bf74fdc280c5a4b456bea8302ddbfe3111 /pcapio.c | |
parent | 09068ee6fd77333e6749deae3191c0acaef4713f (diff) | |
download | wireshark-57eeea4b2032cb66ce8e74e012c136fc21c188c8.tar.gz wireshark-57eeea4b2032cb66ce8e74e012c136fc21c188c8.tar.bz2 wireshark-57eeea4b2032cb66ce8e74e012c136fc21c188c8.zip |
Add a note about using GetSystemTimePreciseAsFileTime.
svn path=/trunk/; revision=41382
Diffstat (limited to 'pcapio.c')
-rw-r--r-- | pcapio.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -158,9 +158,9 @@ struct option { guint16 value_length; }; #define OPT_ENDOFOPT 0 -#define OPT_COMMENT 1 +#define OPT_COMMENT 1 #define SHB_HARDWARE 2 /* currently not used */ -#define SHB_OS 3 +#define SHB_OS 3 #define SHB_USERAPPL 4 #define IDB_NAME 2 #define IDB_DESCRIPTION 3 @@ -492,7 +492,7 @@ libpcap_write_interface_description_block(FILE *fp, } /* write filter string if applicable - * We only write version 1 of the filter, libpcap string + * We only write version 1 of the filter, libpcap string */ if ((filter != NULL) && (strlen(filter) > 0) && (strlen(filter) < G_MAXUINT16)) { option.type = IDB_FILTER; @@ -614,6 +614,9 @@ libpcap_write_interface_statistics_block(FILE *fp, * * I think DWORD might be signed, so cast both parts of "now" * to guint32 so that the sign bit doesn't get treated specially. + * + * Windows 8 provides GetSystemTimePreciseAsFileTime which we + * might want to use instead. */ GetSystemTimeAsFileTime(&now); timestamp = (((guint64)(guint32)now.dwHighDateTime) << 32) + |