Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69790 Details for
Bug 107994
tcpslice doesn't work properly for packets captured in years > 2000
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that helps my situation.
tcpslice.patch (text/plain), 1.39 KB, created by
Paul Kronenwetter
on 2005-10-03 09:49:30 UTC
(
hide
)
Description:
Patch that helps my situation.
Filename:
MIME Type:
Creator:
Paul Kronenwetter
Created:
2005-10-03 09:49:30 UTC
Size:
1.39 KB
patch
obsolete
>--- tcpslice-1.1a3.orig/gwtm2secs.c 1996-12-21 22:56:52.000000000 -0500 >+++ tcpslice-1.1a3/gwtm2secs.c 2005-10-03 12:32:34.000000000 -0400 >@@ -62,6 +62,10 @@ > else > year += 2000; > >+ /* Year 2005 becomes 105, which isn't right either... */ >+ if ( year < 1900 ) >+ year += 1900; >+ > days = 0; > for ( i = 1970; i < year; ++i ) > { >Only in tcpslice-1.1a4: Makefile >diff -rubB tcpslice-1.1a3/tcpslice.c tcpslice-1.1a4/tcpslice.c >--- tcpslice-1.1a3.orig/tcpslice.c 2005-10-03 12:40:42.000000000 -0400 >+++ tcpslice-1.1a3/tcpslice.c 2005-10-03 12:29:33.000000000 -0400 >@@ -368,8 +368,10 @@ > > switch (format_ch) { > case 'y': >+/* This is not a good idea. > if ( val > 1900 ) > val -= 1900; >+*/ > SET_VAL(t->tm_year, val); > break; > >@@ -581,7 +583,7 @@ > > case TIMESTAMP_PARSEABLE: > t = localtime((time_t *) ×tamp->tv_sec); >- sprintf( buf, "%02dy%02dm%02dd%02dh%02dm%02ds%06uu", >+ sprintf( buf, "%04dy%02dm%02dd%02dh%02dm%02ds%06uu", > t->tm_year, t->tm_mon + 1, t->tm_mday, t->tm_hour, > t->tm_min, t->tm_sec, (u_int32_t)timestamp->tv_usec ); > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 107994
: 69790