From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25230 invoked by alias); 15 Jul 2013 12:01:46 -0000 Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org Received: (qmail 25203 invoked by uid 89); 15 Jul 2013 12:01:46 -0000 X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_20,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RDNS_NONE autolearn=ham version=3.3.1 Received: from Unknown (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 15 Jul 2013 12:01:44 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 8556B4680019 for ; Mon, 15 Jul 2013 13:01:36 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JX9kFbunUHHN; Mon, 15 Jul 2013 13:01:31 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001656] FreeBSD: add AF_PACKET socket familiy Date: Mon, 15 Jul 2013 12:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: J.Lambrecht@televic.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: high X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00004.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=3D1001656 Juergen Lambrecht changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |J.Lambrecht@televic.com --- Comment #5 from Juergen Lambrecht --- (In reply to comment #2) > Regarding AF_PACKET: >=20 > The protocol AF_PACKET will only be available when you call > cyg_use_af_packet() somewhere in your application. >=20 > If this function is not called the af_packet.c is not linked and > the binary will not become any larger due to this enhancement. >=20 > After this is done, these sockets can be used exactly as described here: >=20 > man 7 packet Hi Bernd, Because I am porting the busybox dhcp server to eCos, I am using your raw packet patch. When I do 'man 7 packet' on my linux, I get a slightly different definition= of 'struct sockaddr_ll' (as also used by busybox): I have 'int sll_ifindex;' instead of 'u_short sll_index;' and 'unsigned char sll_addr[8];' instead of 'u_char sll_addr[22];'. I guess the naming difference is because your code is based on the freeBSD,= and the busybox is based on Linux. But why 22 bytes for the address ('ssl_addr'), you only use 6B of it (EHTER_ADDR_LEN)? Kind regards, J=C3=BCrgen --=20 You are receiving this mail because: You are on the CC list for the bug.