tech-kern archive

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

Re: Interface description support



I think if_description in struct ifnet should be moved before the #ifdef _KERNEL block so it stays at the same offset for non-_KERNEL users.

Cheers,
Jared

On Mon, 24 Jun 2019, KUSABA Takeshi wrote:

Hi,

I would like to propose a feature: a description of a network interface.
(FreeBSD and OpenBSD support this feature.)

Here is a patch.

https://gist.githubusercontent.com/maleic1618/f4881717cbd3b1e3182984f9773b1001/raw/114b5d6c4fbe1fd9cd473fdc802b003c072c2794/description.patch

The sammary of this patch is:

ioctl(2):
- support the commands SIOCGIFDESCR/SIOCSIFDESCR to get/set the description.

ifconfig(8):
- add the commands description,descr/-description,-descr to set/clear the description.


Could you comment on this patch?
I hope that this patch will be merged.

Thanks,

--
Internet Initiative Japan Inc.

Device Engineering Section
Product Development Department
Product Division

KUSABA Takeshi <t-kusaba%iij.ad.jp@localhost>




Home | Main Index | Thread Index | Old Index