public inbox for ecos-bugs@sourceware.org help / color / mirror / Atom feed
From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001656] FreeBSD: add AF_PACKET socket familiy Date: Sun, 08 Dec 2013 23:55:00 -0000 [thread overview] Message-ID: <bug-1001656-777-vbzVHz68Ff@http.bugs.ecos.sourceware.org/> (raw) In-Reply-To: <bug-1001656-777@http.bugs.ecos.sourceware.org/> Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001656 --- Comment #12 from Bernd Edlinger <bernd.edlinger@hotmail.de> --- Hi, thanks for reporting this. I had not done much testing in the IPv6 area. The issue with the bind is, that sockaddr sa1=*sa; copies exacly 32 bytes. So all sockaddr_xx structures should have at least 32 bytes, otherwise we get access beyound the end at this point. I had not seen that sockaddr_in6 is shorter than sockaddr. that looks wrong indeed. I'd suggest you try to make sockaddr 4 bytes larger struct sockaddr_in6 { u_int8_t sin6_len; /* length of this struct(sa_family_t)*/ u_int8_t sin6_family; /* AF_INET6 (sa_family_t) */ u_int16_t sin6_port; /* Transport layer port # (in_port_t)*/ u_int32_t sin6_flowinfo; /* IP6 flow information */ struct in6_addr sin6_addr; /* IP6 address */ u_int32_t sin6_scope_id; /* scope zone index */ char sin6_zero[4]; /* padding */ }; does this work? -- You are receiving this mail because: You are the assignee for the bug.
next prev parent reply other threads:[~2013-12-06 15:38 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-08-17 13:51 [Bug 1001656] New: " bugzilla-daemon 2012-08-17 13:54 ` [Bug 1001656] " bugzilla-daemon 2012-08-17 15:12 ` bugzilla-daemon 2012-09-14 14:08 ` bugzilla-daemon 2013-06-25 17:11 ` bugzilla-daemon 2013-07-15 12:01 ` bugzilla-daemon 2013-07-23 18:48 ` bugzilla-daemon 2013-11-26 10:21 ` bugzilla-daemon 2013-12-01 23:55 ` bugzilla-daemon 2013-12-06 15:38 ` bugzilla-daemon 2013-12-08 23:55 ` bugzilla-daemon [this message] 2013-12-15 2:00 ` bugzilla-daemon 2014-01-21 16:46 ` bugzilla-daemon 2014-01-22 7:46 ` bugzilla-daemon 2014-01-31 10:39 ` bugzilla-daemon 2014-01-31 10:41 ` bugzilla-daemon 2014-01-31 10:43 ` bugzilla-daemon 2014-01-31 10:44 ` bugzilla-daemon 2014-01-31 10:51 ` bugzilla-daemon 2015-06-10 8:48 ` bugzilla-daemon 2015-06-10 8:53 ` bugzilla-daemon
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-1001656-777-vbzVHz68Ff@http.bugs.ecos.sourceware.org/ \ --to=bugzilla-daemon@bugs.ecos.sourceware.org \ --cc=unassigned@bugs.ecos.sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).