[klibc] VLAN support for ipconfig

Ben Hutchings ben at decadent.org.uk
Tue Apr 27 14:52:18 PDT 2021

Apologies for the late response to this.

On Thu, 2020-10-08 at 13:10 -0400, Kyle Rose wrote:
> I've attached a patch to allow ipconfig to create and configure VLAN
> interfaces using the standard VLAN interface nomenclature
> (physical_if.VLAN_ID). Happy to hear comments/criticism.

ipconfig is only really meant to handle the "ip" kernel parameter, so I
think VLAN creation should be done by a separate command.  Ideally that
would also use rtnetlink so that the VLAN device name is not restricted
to use any particular format.  (I wonder if it is practical to get
iproute2 running on klibc?)

There are some formatting issues with the code as well; you can use the
kernel's checkpatch.pl script to find those.


Ben Hutchings
Klipstein's 4th Law of Prototyping and Production:
                               A fail-safe circuit will destroy others.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zytor.com/archives/klibc/attachments/20210427/8e18d5f7/attachment.sig>

More information about the klibc mailing list