[Bug 808197] FTBFS: big endian bug in self checks

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 30 08:51:12 UTC 2012


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=808197

Petr Pisar <ppisar at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppisar at redhat.com
    External Bug ID|                            |CPAN 71112

--- Comment #2 from Petr Pisar <ppisar at redhat.com> 2012-03-30 04:51:10 EDT ---
The t/20io-socket-netlink-generic.t:55 test checks serialization of

my $message = $genlsock->new_message(
   nlmsg_type => 30,
   cmd => 1,
   version => 2
);

netlink(7) defines netlink header as:

struct nlmsghdr {
  __u32 nlmsg_len;    /* Length of message including header. */
  __u16 nlmsg_type;   /* Type of message content. */
  __u16 nlmsg_flags;  /* Additional flags. */
  __u32 nlmsg_seq;    /* Sequence number. */
  __u32 nlmsg_pid;    /* PID of the sending process. */
};

So I think the expected

00 00 00 14 00 00 00 1e 00 00 00 00 00 00 00 00

is wrong since the type (30 = 0x1e) should occupy two bytes only. Here it spans
to nlmsg_flags field.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the perl-devel mailing list