Paulo Stein wrote:
> Hi,
> 
> I would like to know what is the better way to get the mac address of a
> device associated with a socket. I'm working with raw sockets in kernel
> mode, and I'm not figuring out what to use.

Feature not implemented. We need SIOCGIFHWADDR for this, which is
trivial to add, just takes someone to start...

Well, actually the feature is implemented, but over the non-RT
configuration interface /dev/rtnet: IOC_RT_IFINFO (see also rtifconfig
tool). You may use this interface as is, but I would try to keep away
from it with application code.

Reason: The plans for the future are to kill /dev/rtnet and switch to
IOCTLs (standard ones like above + our owns) over RTnet sockets also for
configuration purposes. We now have mature user-space real-time and
don't need such side channels anymore. The CAN stack in Xenomai already
demonstrates this path nicely, and RTnet may even share device
management code with the CAN stack one day.

Jan

> 
> Thank you very much,
> Paulo
> 
>     _________________________________________________________________
>     AVISO
>   Esta mensagem é destinada exclusivamente a(s) pessoa(s) indicada(s)
>   como destinatário(s), podendo conter informações confidenciais,
>   protegidas por lei.
>   A transmissão incorreta da mensagem não acarreta a perda de sua
>   confidencialidade.
>   Caso esta mensagem tenha sido recebida por engano, solicitamos que
>   seja devolvida ao remetente e apagada imediatamente de seu sistema. É
>   vedado a qualquer pessoa que não seja destinatário, usar, revelar,
>   distribuir ou copiar ainda que parcialmente esta mensagem.
>     _________________________________________________________________
>     DISCLAIMER
>   This message is destined exclusively to the intended receiver. It may
>   contain confidential or legally protected information.
>   The incorrect transmission of this message does not mean loss of its
>   confidentiality.
>   If this message is received by mistake, please send it back to the
>   sender and delete it from your system immediately. It is forbidden to
>   any person who is not the intended receiver to use, reveal,
>   distribute, or copy any part of this message.
>     _________________________________________________________________
> 

[Did I already mention that the huge entropy of such footers are
*really* annoying waste of bandwidth?]


Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to