aboutsummaryrefslogtreecommitdiff
path: root/networking/ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ip.c')
-rw-r--r--networking/ip.c55
1 files changed, 53 insertions, 2 deletions
diff --git a/networking/ip.c b/networking/ip.c
index 36126b747..02f93adbf 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -74,6 +74,12 @@
74//config: help 74//config: help
75//config: Configure network devices with "ip". 75//config: Configure network devices with "ip".
76//config: 76//config:
77//config:config FEATURE_IP_LINK_CAN
78//config: bool "ip link set type can"
79//config: default y
80//config: help
81//config: Configure CAN devices with "ip".
82//config:
77//config:config FEATURE_IP_ROUTE 83//config:config FEATURE_IP_ROUTE
78//config: bool "ip route" 84//config: bool "ip route"
79//config: default y 85//config: default y
@@ -152,16 +158,61 @@
152//usage:#define iplink_trivial_usage 158//usage:#define iplink_trivial_usage
153//usage: /*Usage:iplink*/"set IFACE [up|down] [arp on|off] [multicast on|off]\n" 159//usage: /*Usage:iplink*/"set IFACE [up|down] [arp on|off] [multicast on|off]\n"
154//usage: " [promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]\n" 160//usage: " [promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]\n"
155//usage: " [master IFACE | nomaster] [netns PID]" 161//usage: " [master IFACE | nomaster] [netns PID]"IF_FEATURE_IP_LINK_CAN(" [type TYPE ARGS]")
156// * short help shows only "set" command, long help continues (with just one "\n") 162// * short help shows only "set" command, long help continues (with just one "\n")
157// * and shows all other commands: 163// * and shows all other commands:
158//usage:#define iplink_full_usage "\n" 164//usage:#define iplink_full_usage "\n"
159//usage: "iplink add [link IFACE] IFACE [address MAC] type TYPE [ARGS]\n" 165//usage: "iplink add [link IFACE] IFACE [address MAC] type TYPE [ARGS]\n"
160//usage: "iplink delete IFACE type TYPE [ARGS]\n" 166//usage: "iplink delete IFACE type TYPE [ARGS]\n"
161//usage: " TYPE ARGS := vlan VLANARGS | vrf table NUM\n" 167//usage: " TYPE ARGS := vlan VLANARGS | vrf table NUM"IF_FEATURE_IP_LINK_CAN(" | can CANARGS")"\n"
162//usage: " VLANARGS := id VLANID [protocol 802.1q|802.1ad] [reorder_hdr on|off]\n" 168//usage: " VLANARGS := id VLANID [protocol 802.1q|802.1ad] [reorder_hdr on|off]\n"
163//usage: " [gvrp on|off] [mvrp on|off] [loose_binding on|off]\n" 169//usage: " [gvrp on|off] [mvrp on|off] [loose_binding on|off]\n"
170//usage: IF_FEATURE_IP_LINK_CAN(
171//usage: " CANARGS := [bitrate BITRATE [sample-point SAMPLE-POINT]] |\n"
172//usage: " [tq TQ prop-seg PROP_SEG phase-seg1 PHASE-SEG1\n"
173//usage: " phase-seg2 PHASE-SEG2 [sjw SJW]]\n"
174//usage: " [dbitrate BITRATE [dsample-point SAMPLE-POINT]] |\n"
175//usage: " [dtq TQ dprop-seg PROP_SEG dphase-seg1 PHASE-SEG1\n"
176//usage: " dphase-seg2 PHASE-SEG2 [dsjw SJW]]\n"
177//usage: " [loopback on|off] [listen-only on|off] [triple-sampling on|off]\n"
178//usage: " [one-shot on|off] [berr-reporting on|off]\n"
179//usage: " [fd on|off] [fd-non-iso on|off] [presume-ack on|off]\n"
180//usage: " [restart-ms TIME-MS] [restart]\n"
181//usage: " [termination 0..65535]\n"
182//usage: )
164//usage: "iplink show [IFACE]" 183//usage: "iplink show [IFACE]"
184//upstream man ip-link-can:
185//Usage: ip link set DEVICE type can
186// [ bitrate BITRATE [ sample-point SAMPLE-POINT] ] |
187// [ tq TQ prop-seg PROP_SEG phase-seg1 PHASE-SEG1
188// phase-seg2 PHASE-SEG2 [ sjw SJW ] ]
189//
190// [ dbitrate BITRATE [ dsample-point SAMPLE-POINT] ] |
191// [ dtq TQ dprop-seg PROP_SEG dphase-seg1 PHASE-SEG1
192// dphase-seg2 PHASE-SEG2 [ dsjw SJW ] ]
193//
194// [ loopback { on | off } ]
195// [ listen-only { on | off } ]
196// [ triple-sampling { on | off } ]
197// [ one-shot { on | off } ]
198// [ berr-reporting { on | off } ]
199// [ fd { on | off } ]
200// [ fd-non-iso { on | off } ]
201// [ presume-ack { on | off } ]
202//
203// [ restart-ms TIME-MS ]
204// [ restart ]
205//
206// [ termination { 0..65535 } ]
207//
208// Where: BITRATE := { 1..1000000 }
209// SAMPLE-POINT := { 0.000..0.999 }
210// TQ := { NUMBER }
211// PROP-SEG := { 1..8 }
212// PHASE-SEG1 := { 1..8 }
213// PHASE-SEG2 := { 1..8 }
214// SJW := { 1..4 }
215// RESTART-MS := { 0 | NUMBER }
165//upstream man ip-link: 216//upstream man ip-link:
166//===================== 217//=====================
167//ip link add [link DEV] [ name ] NAME 218//ip link add [link DEV] [ name ] NAME