]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
lib: add profinet and ethercat as link layer protocol names
authorDaniel Braunwarth <daniel@braunwarth.dev>
Mon, 28 Feb 2022 13:45:19 +0000 (14:45 +0100)
committerDavid Ahern <dsahern@kernel.org>
Fri, 4 Mar 2022 16:24:06 +0000 (09:24 -0700)
Update the llproto_names array to allow users to reference the PROFINET
and EtherCAT protocols with the names 'profinet' and 'ethercat'.

Signed-off-by: Daniel Braunwarth <daniel@braunwarth.dev>
lib/ll_proto.c

index 78179311c06624c83ac996941930d325a339c141..342ea2eefa4cc9353ff7e22d7a188c1c8dd54e20 100644 (file)
@@ -75,7 +75,9 @@ __PF(CONTROL,control)
 __PF(IRDA,irda)
 __PF(ECONET,econet)
 __PF(TIPC,tipc)
+__PF(PROFINET,profinet)
 __PF(AOE,aoe)
+__PF(ETHERCAT,ethercat)
 __PF(8021Q,802.1Q)
 __PF(8021AD,802.1ad)
 __PF(MPLS_UC,mpls_uc)