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

Why TUNSETLINK to ARPHRD_6LOWPAN #306

Open
alexaring opened this issue Jun 12, 2018 · 0 comments
Open

Why TUNSETLINK to ARPHRD_6LOWPAN #306

alexaring opened this issue Jun 12, 2018 · 0 comments
Assignees

Comments

@alexaring
Copy link

Hi,

do you have a good reason why setting the interface type to ARPHRD_6LOWPAN if defined?
In case of Linux, do you use any feature which is provided by the in-kernel 6LoWPAN feature?
@mcr and I currently try to solve some issues inside the kernel do deal with this tun feature and probably like to disallow to change to this type which ends in a -ENOTSUPP or something else.

wpantund/src/util/tunnel.c

Lines 180 to 186 in 86d29d6

#if defined(TUNSETLINK) && defined(ARPHRD_6LOWPAN)
int val = ARPHRD_6LOWPAN;
if (ioctl(fd, TUNSETLINK, (unsigned long) val) < 0) {
perror("TUNSETLINK");
}
#endif

Alex

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

2 participants