libifconfig icon indicating copy to clipboard operation
libifconfig copied to clipboard

Consider generalizing `ifconfig_ioctlwrap`

Open asomers opened this issue 8 years ago • 2 comments

ifconfig_ioctlwrap conveniently opens the right socket type and sets all of the error fields, but it only works for ioctls where the data field has type struct ifreq. I'm finding that the majority of ioctls I need to use don't use that data type. Would you agree to change ifconfig_ioctlwrap's fourth argument to an opaque void*?

asomers avatar May 01 '17 00:05 asomers

Can you provide some example code which would benefit from making this change?

Savagedlight avatar May 01 '17 06:05 Savagedlight

Sounds reasonable, especially considering the underlying method it's abstracting. Thank you. :)

I'll get around to processing this coding spree of yours once my dev environment is back up and running!

Savagedlight avatar May 04 '17 19:05 Savagedlight