/[darkstattype]/trunk
ViewVC logotype

Log of /trunk

View Directory Listing Directory Listing


Sticky Revision:

Revision 21 - Directory Listing
Modified Wed Apr 9 10:31:01 2014 UTC (5 years, 6 months ago) by trond
stable/9 has switched to clang 3.4. Silly mistake.


Revision 20 - Directory Listing
Modified Wed Apr 9 10:26:49 2014 UTC (5 years, 6 months ago) by trond
64-bit quantities, i.e. int64_t, differ on i386 and amd64.

In the first case it's an alias for long long, but in the second
case it's an alias for long.

The solution seems to be twofold: (1) use printf length modifier for
(unsigned) long long, and (2) explicitly cast each 64-bit quantity
to (unsigned) long long.

Tested on FreeBSD/i386  stable/8 r255624 with gcc 4.2.1.
Tested on FreeBSD/amd64 stable/9 r263963 with clang 3.3.
Tested on FreeBSD/amd64 stable/9 r263963 with clang 3.3 using -m32.


Revision 19 - Directory Listing
Modified Wed Apr 9 09:20:17 2014 UTC (5 years, 6 months ago) by trond
Reformatted long lines.
Clarified the help message.
Added proper length modifiers to 8-bit and 16-bit quantities (hh and h).


Revision 18 - Directory Listing
Modified Wed Mar 26 09:46:21 2014 UTC (5 years, 6 months ago) by trond
Harmonized the *makefiles.


Revision 17 - Directory Listing
Modified Wed Mar 26 09:13:37 2014 UTC (5 years, 6 months ago) by trond
Added GNUmakefile for systems with GNU make.


Revision 16 - Directory Listing
Modified Fri Mar 21 19:15:01 2014 UTC (5 years, 6 months ago) by trond
Changed the encoding from ISO 8859-1 to UTF-8.


Revision 15 - Directory Listing
Modified Fri Mar 21 18:57:27 2014 UTC (5 years, 6 months ago) by trond
Made use of the typedefs and macros found in stdint.h to make this program more portable.
Minor nits in the read functions.


Revision 14 - Directory Listing
Modified Fri Mar 21 18:35:50 2014 UTC (5 years, 6 months ago) by trond
Made it possible to treat many files in a row.


Revision 13 - Directory Listing
Modified Fri Mar 21 16:59:56 2014 UTC (5 years, 6 months ago) by trond
I better format unsigned integers as such.


Revision 12 - Directory Listing
Modified Fri Mar 21 16:04:33 2014 UTC (5 years, 6 months ago) by trond
Minor nits.


Revision 11 - Directory Listing
Modified Fri Mar 21 16:03:12 2014 UTC (5 years, 6 months ago) by trond
I figured it's neater to read the IPv6 addresses at 16 bit at a time.


Revision 10 - Directory Listing
Modified Fri Mar 21 15:40:57 2014 UTC (5 years, 6 months ago) by trond
Added file read offset to most of the error messages.


Revision 9 - Directory Listing
Modified Thu Mar 20 09:49:12 2014 UTC (5 years, 6 months ago) by trond
Added a command line option (-f) that toggles darkstattype to adhere to
the strict format specification. The default is set to off (false)
to go with darkstat's (f)actual format.


Revision 8 - Directory Listing
Modified Thu Mar 20 09:00:33 2014 UTC (5 years, 6 months ago) by trond
Added an explanation of the options to the description of usage.


Revision 7 - Directory Listing
Modified Wed Mar 19 15:40:13 2014 UTC (5 years, 6 months ago) by trond
darkstat 3.0.718 has deviated from the format specified in the export-format.txt file.
The lastseen timestamps comes ahead of the MAC address.
Added a macro to choose whether to follow the strict format or the latest format.
Interpretation of the latest format is the default. Perhaps this should be a command line option.
Corrected a serious mistake in my conversion of 64 bit quantities from network byte order (big endian) to little endian.
Why can't ntohl() and its friends have 64 bit counterparts?


Revision 6 - Directory Listing
Modified Wed Mar 19 14:02:41 2014 UTC (5 years, 6 months ago) by trond
Changed literate constants into macros.
Added hexadecimal display of timestamps.
Minor nits.


Revision 5 - Directory Listing
Modified Wed Mar 19 09:13:57 2014 UTC (5 years, 6 months ago) by trond
Display the protocol number with two hexadecimal digits.


Revision 4 - Directory Listing
Modified Wed Mar 19 08:51:24 2014 UTC (5 years, 6 months ago) by trond
Might as well show the Subversion revision number when displaying the version information.


Revision 3 - Directory Listing
Modified Wed Mar 19 08:49:18 2014 UTC (5 years, 6 months ago) by trond
Added BSDmakefile and darkstattype.c.


Revision 2 - Directory Listing
Added Wed Mar 19 08:46:40 2014 UTC (5 years, 6 months ago) by trond
Added the trunk directory.


svn@ximalas.info
ViewVC Help
Powered by ViewVC 1.1.27