This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001656] FreeBSD: add AF_PACKET socket familiy

Please do not reply to this email, use the link below.

Juergen Lambrecht <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #5 from Juergen Lambrecht <> ---
(In reply to comment #2)
> Regarding AF_PACKET:
> The protocol AF_PACKET will only be available when you call
> cyg_use_af_packet() somewhere in your application.
> 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.
> After this is done, these sockets can be used exactly as described here:
> 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

Kind regards,

You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]