Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple LIN interfaces #18

Open
christian-steiniche opened this issue Jun 17, 2022 · 0 comments
Open

Multiple LIN interfaces #18

christian-steiniche opened this issue Jun 17, 2022 · 0 comments

Comments

@christian-steiniche
Copy link

Hi

I have a system with multiple LIN interfaces each connected to a dedicated hw UART. This works well.

However, I have one issue. When using multiple LIN interfaces I am not able to control the mapping to the resulting network interface names.

E.g. with two UARTs if I do:

sudo ldattach 28 /dev/ttyAMA0
sudo ldattach 28 /dev/ttyAMA1

The mappings become:

ttyAMA0 -> sllin0
ttyAMA1 -> sllin1

However, if I initialize the interfaces in reversed order:

sudo ldattach 28 /dev/ttyAMA1
sudo ldattach 28 /dev/ttyAMA0

The mappings now become:

ttyAMA0 -> sllin1
ttyAMA1 -> sllin0

The interfaces are attached and de-attached independently by separate processes - making it hard to know what the resulting network interface names become.

Would it be possible to take a specific network interface index as input argument to sllin? It seems that ldattach accepts an optional "--iflag" input argument which potentially could be used to provide the index / name?

Thanks

br
Christian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant