Possible to have loopback + "real" network interface?

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 26 07:24:25 UTC 2013


Hello Nick,

the loopback interface is always there (on old RTEMS versions this is a 
different story).  You can configure a list of interfaces in 
rtems_bsdnet_ifconfig.  The actual interface configuration depends on your BSP.

On 2013-08-26 09:04, Nick Withers wrote:
> Hey guys,
>
> Anyone know if it's possible / impossible to have a loopback network
> interface at the same time as a non-loopback interface in Git master?
>
> The "loopback" sample (testsuites/samples/loopback), if I'm reading it
> right, seems to do it by providing a NULL for the struct
> rtems_bsdnet_ifconfig pointer in struct rtems_bsdnet_config, which I
> don't think is an option with multiple interfaces desired...?
>
> P.S., To be honest, I don't *really* want a loopback interface, I'd
> prefer socketpair() / select() on pipes and / or pselect(), but oh
> well! :-P
>

What you want is kqueue(2).

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list