busybox/networking/libiproute
Bernhard Reutner-Fischer 414be6c111 ip link: Fix vlan proto, closes 8261 and 11638
The proto has to be passed in network byte-order.
While at it allow for
 ip link add link eth0 name eth0.2.24 type vlan proto 802.1ad id 24
 ip link del link eth0 name eth0.2.24 type vlan proto 802.1ad id 24
The del was lacking a dev_str and thus errored out. Fix by using
name/dev counterpart as fallback.

The proto identifier 802.1Q was not recognized, just it's lowercase
variant, fix that too.

function                                             old     new   delta
do_add_or_delete                                    1275    1376    +101
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 101/0)             Total: 101 bytes

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2019-01-22 15:22:05 +01:00
..
ip_common.h networking: add 'ip neigh' command 2015-10-14 12:53:47 +02:00
ip_parse_common_args.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
ipaddress.c ip: print dadfailed flag 2019-01-04 19:00:23 +01:00
iplink.c ip link: Fix vlan proto, closes 8261 and 11638 2019-01-22 15:22:05 +01:00
ipneigh.c ip: fix crash in "ip neigh show" 2018-02-08 08:42:37 +01:00
iproute.c ip: fix crash in "ip neigh show" 2018-02-08 08:42:37 +01:00
iprule.c ip: fix crash in "ip neigh show" 2018-02-08 08:42:37 +01:00
iptunnel.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
Kbuild.src tc: fix single-applet build 2018-01-13 21:37:20 +01:00
libnetlink.c libbb: introduce and use bb_getsockname() 2018-02-11 14:55:46 +01:00
libnetlink.h whitespace cleanup 2010-10-29 11:46:52 +02:00
ll_addr.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
ll_map.c ip: fix crash in "ip neigh show" 2018-02-08 08:42:37 +01:00
ll_map.h libbb: auto_string() for efficient handling of temporary malloced stirngs 2015-10-09 17:59:56 +02:00
ll_proto.c whitespace and comment format fixes, no code changes 2017-10-05 14:40:24 +02:00
ll_types.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
rt_names.c iproute: more string reuse 2015-10-08 17:15:08 +02:00
rt_names.h libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
rtm_map.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
rtm_map.h libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
utils.c whitespace and comment format fixes, no code changes 2017-10-05 15:19:25 +02:00
utils.h libiproute: FACT_FUNCization 2017-04-07 17:15:40 +02:00