Prepare for network stack as a module:
- Add generic socket ioctl group (iocgroup) handling
- Allows for registering a group with the socket layer instead of needing network stack-specific code in generic socket code
- iocgroups are handled similar to domains (all iocgroups must be registered before finalization - to avoid requiring additional locking to get pushed into a number of places in the kernel)
- Register interface iocgroup ('i')
- Moves call to ifioctl into the soiocg_ioctl member of iocgroup structure
- Register router iocgroup ('r')
- Moves call to rtiocl_fib to new function rtioctl_socket, which is the soiocg_ioctl member of the iocgroup structure
Obtained from: Juniper Networks, Inc.