Skip to content

Manifest definition to allow SIOCGIFCONF IOCTL #1733

Answered by kailun-qin
paul-jubo asked this question in Q&A
Discussion options

You must be logged in to vote

It seems to me that I need a different, device-specific struct definition and ioctl request code. Where would I find such info? In the code of the host system's linux kernel?

Taking IOCTLs on sockets as an example, you can obtain such info from the man page, kernel source and public docs.

You may also want to look into the source code of your application and/or w/ the help of error logs and strace to understand more about how your application uses IOCTLs exactly.

Inappropriate ioctl for device (getFlags() failed)\n\tat java.base/java.net.NetworkInterface.isUp0(Native Method)

getFlags() indicated that ^ error may come from ioctl(..., SIOCGIFFLAGS, ...). Looking into e.g. the source cod…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@paul-jubo
Comment options

@dimakuv
Comment options

Answer selected by paul-jubo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants