>I have to think about this patch a little bit since we should get this
>via RTNL and then ConnMan should remove the gateway details. So we might
I ever also want to handle this through RTNL. But I find after close the 
network interface, RTNL can only receive the event to delete the "Local Route". 
The delete of "Default Route" can not be gotten because of the shutting of the 
network interface. RTNL delete route handler will not handle "Local Route", so 
there is NO race condition. In fact when the interface has been shut down all 
the related routes item will be deleted at TCP/IP stack by kernel, and we need 
not to do anything to it. You will find that the del_route tells that "default 
route removal failed". So may be the current way is not a bad one. :)

>have a race condition here. Patch looks good (besides coding style
>issues), 
So as to coding style, do we use kernel coding style? If that is the case, I 
will use checkpatch before I send the patch later. :)
_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman

Reply via email to