Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176251 - Large file support in wireshark
Summary: Large file support in wireshark
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-27 14:44 UTC by Jeff Mitchell
Modified: 2007-04-28 21:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Mitchell 2007-04-27 14:44:25 UTC
This is a request to have a use flag to enable large file support in Wireshark.  Wireshark by default builds (at least on x86) with 32-bit file offsets, limiting it to about 2GB files.  It is very easy to get a capture file that is far larger than this.  Enabling the support is very easy, and at least in my testing works well.
Comment 1 Jeff Mitchell 2007-04-27 14:45:28 UTC
Here's a diff to the ebuild that allows for 64-bit file offset support.  I don't know if largefile would be the preferred USE flag, but it's an example:  Also I don't know if both flags are needed or just one.

--- /usr/portage/net-analyzer/wireshark/wireshark-0.99.5.ebuild 2007-04-18 08:05:53.000000000 -0400
+++ wireshark-0.99.5.ebuild     2007-04-27 10:32:09.000000000 -0400
@@ -11,7 +11,7 @@
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
-IUSE="adns gtk ipv6 portaudio snmp ssl kerberos threads selinux"
+IUSE="adns gtk ipv6 largefile portaudio snmp ssl kerberos threads selinux"

 RDEPEND="sys-libs/zlib
        snmp? ( net-analyzer/net-snmp )
@@ -69,6 +69,11 @@
                replace-flags -O? -O
        fi

+       if use largefile; then
+               elog "Enabling >2GB file support"
+               append-flags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+       fi
+
        # see bug #133092
        filter-flags -fstack-protector

Comment 2 Daniel Black (RETIRED) gentoo-dev 2007-04-28 21:53:10 UTC
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=580
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1190

Looks like upstream is working on 64 bit offsets and getting it going.
I'd like to wait until it has been tested preferably with some autoconf AC_SYS_LARGEFILE tests before enabling an option that may cause problems with for the OS.

Thanks for your interest though. Its a good idea.