netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] man ip-link: Add missing lowpan link type
@ 2015-05-11  7:17 Lennert Buytenhek
  2015-05-11 16:21 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Lennert Buytenhek @ 2015-05-11  7:17 UTC (permalink / raw)
  To: netdev

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
---
These man pages don't use .nh when describing command invocation syntax,
so we end up with things like this (on 80 character terminals):

              ip link add DEVICE type vxlan id ID [ dev PHYS_DEV  ] [ { group
              | remote } IPADDR ] [ local IPADDR ] [ ttl TTL ] [ tos TOS ] [
              port MIN MAX ] [ [no]learning ] [ [no]proxy ] [ [no]rsc ] [
              [no]l2miss ] [ [no]l3miss ] [ ageing SECONDS ] [ maxaddress NUM‐
              BER ] [ gbp ]

and:

              ip link add DEVICE type { gre | ipip | sit }  remote ADDR local
              ADDR [ encap { fou | gue | none } ] [ encap-sport { PORT | auto
              } ] [ encap-dport PORT ] [  [no]encap-csum ] [  [no]encap-remc‐
              sum ]

and this affects this addition as well:

       TYPE := [ bridge | bond | can | dummy | hsr | ifb | ipoib | macvlan |
               macvtap | vcan | veth | vlan | vxlan | ip6tnl | ipip | sit |
               gre | gretap | ip6gre | ip6gretap | vti | nlmon | ipvlan | low‐
               pan ]

A possible fix for this would be to put these descriptions in an
environment with hyphenation mode zero.

 man/man8/ip-link.8.in | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 0dfcb2e..823246f 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -75,7 +75,8 @@ ip-link \- network device configuration
 .BR ip6gretap " |"
 .BR vti " |"
 .BR nlmon " |"
-.BR ipvlan " ]"
+.BR ipvlan " |"
+.BR lowpan " ]"
 
 .ti -8
 .BR "ip link delete " {
@@ -243,6 +244,9 @@ Link types:
 .sp
 .BR ipvlan
 - Interface for L3 (IPv6/IPv4) based VLANs
+.sp
+.BR lowpan
+- Interface for 6LoWPAN (IPv6) over IEEE 802.15.4 / Bluetooth
 .in -8
 
 .TP
@@ -916,6 +920,12 @@ Creates an IPIP that is encapsulated with Generic UDP Encapsulation,
 and the outer UDP checksum and remote checksum offload are enabled.
 
 .RE
+.PP
+ip link add link wpan0 lowpan0 type lowpan
+.RS 4
+Creates a 6LoWPAN interface named lowpan0 on the underlying
+IEEE 802.15.4 device wpan0.
+.RE
 
 .SH SEE ALSO
 .br
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iproute2] man ip-link: Add missing lowpan link type
  2015-05-11  7:17 [PATCH iproute2] man ip-link: Add missing lowpan link type Lennert Buytenhek
@ 2015-05-11 16:21 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2015-05-11 16:21 UTC (permalink / raw)
  To: Lennert Buytenhek; +Cc: netdev

On Mon, 11 May 2015 10:17:14 +0300
Lennert Buytenhek <buytenh@wantstofly.org> wrote:

> Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
> ---
> These man pages don't use .nh when describing command invocation syntax,
> so we end up with things like this (on 80 character terminals):
> 
>               ip link add DEVICE type vxlan id ID [ dev PHYS_DEV  ] [ { group
>               | remote } IPADDR ] [ local IPADDR ] [ ttl TTL ] [ tos TOS ] [
>               port MIN MAX ] [ [no]learning ] [ [no]proxy ] [ [no]rsc ] [
>               [no]l2miss ] [ [no]l3miss ] [ ageing SECONDS ] [ maxaddress NUM‐
>               BER ] [ gbp ]
> 
> and:
> 
>               ip link add DEVICE type { gre | ipip | sit }  remote ADDR local
>               ADDR [ encap { fou | gue | none } ] [ encap-sport { PORT | auto
>               } ] [ encap-dport PORT ] [  [no]encap-csum ] [  [no]encap-remc‐
>               sum ]
> 
> and this affects this addition as well:
> 
>        TYPE := [ bridge | bond | can | dummy | hsr | ifb | ipoib | macvlan |
>                macvtap | vcan | veth | vlan | vxlan | ip6tnl | ipip | sit |
>                gre | gretap | ip6gre | ip6gretap | vti | nlmon | ipvlan | low‐
>                pan ]
> 
> A possible fix for this would be to put these descriptions in an
> environment with hyphenation mode zero.
> 

Applied.
Not sure what the best silly nroff fix for the hyphenation nonsense is.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-11 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11  7:17 [PATCH iproute2] man ip-link: Add missing lowpan link type Lennert Buytenhek
2015-05-11 16:21 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).