HomeFreeBSD

kern_sysctl: Make name2oid() non-destructive to the name

Description

kern_sysctl: Make name2oid() non-destructive to the name

It is not the first time I see it panicking while trying to modify
const memory. Lets make it safer and easier to use. While there,
mark few functions using it also const.

MFC after: 10 days

Details

Provenance
mavAuthored on Sep 23 2023, 4:13 PM
Parents
rG03ef737c544d: ng_eiface: switch VNETs when injecting mbufs into netgraph
Branches
Unknown
Tags
Unknown