Roger Pau Monne wrote:
The attached patch adds a new ioctl to perform the rename and
propagate that rename to the associated device_t and sysctl entries.
Please review this patch and check that the use of the spls is
correct. I also had to change a part of the code of bpf_setif in bpf.c
to allow the use of interfaces that doesn't end with a number.
This patch does not appear to be safe for SMP systems where
you might have competing programs trying to rename different
interfaces to the same new name.