Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Specifying names for tap interfaces



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.

To reinforce the point about "<name><number>", you're changing
the device's name. How many device names in NetBSD do not
end with a number?

Darren



Home | Main Index | Thread Index | Old Index