Hi Arthur,
On 15.07.19 16:15, Arthur Guyader wrote:
Hello,
I encountered a problem when using the claiming address.
When an ECU1 with a low name requests an address, it is saved in the kernel cache.
If this ECU1 is cut, and we launch our ECU2 which will ask for the same address.
He will have no answer from ECU1 and has no trace of him in his cache, so he can consider
that the address is free.
However, the kernel will consider that the address is busy and generate an error when
sending a message. (99 : cannot assign requested address)
How would you handle this situation?
You are describing a broken system. Is it a theoretical question or you was able to
reproduce it with latest j1939 stack?
I thought about sending a test message and handling the error case and choosing another
address.
Is there any way to clear the kernel cache?
No. You can send an address claim message with idle address.
Kind regards,
Oleksij Rempel
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |