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

Tracking socket address family for ioctl()? #3616

Open
eqvinox opened this issue Sep 27, 2023 · 0 comments
Open

Tracking socket address family for ioctl()? #3616

eqvinox opened this issue Sep 27, 2023 · 0 comments

Comments

@eqvinox
Copy link

eqvinox commented Sep 27, 2023

Related to #3615 - there's a bunch of socket family specific ioctls:

$ pcregrep -r 'SIOCPROTOPRIVATE\s*\+\s*1\W' /usr/include/linux* 
/usr/include/linux/ax25.h:#define SIOCAX25ADDUID		(SIOCPROTOPRIVATE+1)
/usr/include/linux/rose.h:#define	SIOCRSSCAUSE		(SIOCPROTOPRIVATE+1)
/usr/include/linux/kcm.h:#define SIOCKCMUNATTACH	(SIOCPROTOPRIVATE + 1)
/usr/include/linux/mroute6.h:#define SIOCGETSGCNT_IN6	(SIOCPROTOPRIVATE+1)
/usr/include/linux/mctp.h:#define SIOCMCTPDROPTAG		(SIOCPROTOPRIVATE + 1)
/usr/include/linux/rds.h:#define SIOCRDSGETTOS		(SIOCPROTOPRIVATE + 1)
/usr/include/linux/tipc.h:#define SIOCGETNODEID          (SIOCPROTOPRIVATE + 1)
/usr/include/linux/x25.h:#define	SIOCX25SSUBSCRIP	(SIOCPROTOPRIVATE + 1)
/usr/include/linux/mroute.h:#define SIOCGETSGCNT	(SIOCPROTOPRIVATE+1)

Is there some existing way to track the address family for a fd when it is a socket? (I don't think I can implement that myself)

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