Re: description of struct sockaddr

From: Jan Engelhardt
Date: Tue Nov 23 2004 - 17:18:32 EST


>Hello
>
>man netdevice talks about struct sockaddr, but neither describes it,
>nor provides a link to descriptio, nor the "SEE ALSO" items
>(ip(7), proc(7), rnetlink(7)) provide the necessary information.
>
>"The hardware address is specified in a struct sockaddr".

I don't think so. The hardware address is, well, specific to the hardware (like
Ethernet, for example). IP/TCP/UDP however is not limited to Ethernet. And
'sockaddr' clearly is something that does not deal with hardware.

>Where is struct sockaddr specified?

Somewhere in the depths of /usr/include and your linux kernel tree.
Oh yeah, be warned, glibc is a #define hell when you're looking for sockaddr
stuff.


Jan Engelhardt
--
Gesellschaft fÃr Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 GÃttingen, www.gwdg.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/