Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.
This repository was archived by the owner on May 24, 2025. It is now read-only.

Why TUNSETLINK to ARPHRD_6LOWPAN #306

@alexaring

Description

@alexaring

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions