Thanks. I will have a look.

> -----Original Message-----
> From: Sebastian Huber <[email protected]>
> Sent: Thursday, April 29, 2021 1:46 PM
> To: Sommer, Jan <[email protected]>; [email protected]
> Subject: Re: libbsd: React to link status change events
> 
> On 29/04/2021 13:43, [email protected] wrote:
> 
> > is there an easy way to register a callback function or block until a link 
> > status
> change of an Ethernet device occurs in the libbsd stack?
> > Searching for it, I found some references for EV_NETDEV in kqueue, but
> this seems to be a legacy function which has been removed years ago.
> >
> > In the console of the Zedboard, for example, I see those events as info
> statements, but haven't found an API to hook into that:
> >
> > info: lo0: link state changed to UP
> > info: cgem0: link state changed to DOWN
> > info: cgem0: link state changed to UP
> You can look at the dhcpcd code to figure out how this works. I think a
> routing socket can be used to get these events.
> 
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: [email protected]
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
> 
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/

_______________________________________________
users mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/users

Reply via email to