Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1
perl-NetPacket
perl-NetPacket-bigendian.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-NetPacket-bigendian.patch of Package perl-NetPacket
Index: NetPacket-1.4.1/lib/NetPacket/USBMon.pm =================================================================== --- NetPacket-1.4.1.orig/lib/NetPacket/USBMon.pm +++ NetPacket-1.4.1/lib/NetPacket/USBMon.pm @@ -65,18 +65,18 @@ sub decode my($id, $type, $xfer_type, $epnum, $devnum, $busnum, $flag_setup, $flag_data, $ts_sec, $ts_usec, $status, $length, $len_cap, $s, $interval, $start_frame, $xfer_flags, $ndesc, $rest) = - unpack('a8CCCCSCCa8liIIa8llLLa*', $packet); + unpack('a8CCCCS<CCa8l<i<I<I<a8l<l<L<L<a*', $packet); # Try to grok quads. We may loose some address information with 32-bit # Perl parsing 64-bit captures, or timestamp after 2038. Still the best # we can do. eval { - $id = unpack ('Q', $id); - $ts_sec = unpack ('Q', $ts_sec); + $id = unpack ('Q<', $id); + $ts_sec = unpack ('Q<', $ts_sec); }; if ($@) { - ($id) = unpack ('LL', $id); - ($ts_sec) = unpack ('LL', $ts_sec); + ($id) = unpack ('L<L<', $id); + ($ts_sec) = unpack ('L<L<', $ts_sec); } my $self = { @@ -115,7 +115,7 @@ sub decode if ($setup->{bmRequestType} & USB_TYPE_VENDOR) { ($setup->{wValue}, $setup->{wIndex}, - $setup->{wLength}) = unpack('S3', $rest); + $setup->{wLength}) = unpack('S<3', $rest); } else { # Unknown setup request; $setup->{data} = $rest; @@ -127,7 +127,7 @@ sub decode # Isochronous descriptors if ($self->{xfer_type} == USB_XFER_TYPE_ISO) { my $iso = {}; - ($iso->{error_count}, $iso->{numdesc}) = unpack('ii', $s); + ($iso->{error_count}, $iso->{numdesc}) = unpack('i<i<', $s); $self->{iso} = $iso; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor