Hello Stuart, all, Thanks for the corrections Stuart, I have corrected the patch to take into account your suggestions and I hope this proposed patch is more correct and useful Index: src/share/man/man5/hostname.if.5 =================================================================== RCS file: /cvs/src/share/man/man5/hostname.if.5,v retrieving revision 1.65 diff -u -p -u -r1.65 hostname.if.5 --- src/share/man/man5/hostname.if.5 10 Mar 2017 18:28:11 -0000 1.65 +++ src/share/man/man5/hostname.if.5 12 Oct 2017 00:06:15 -0000 @@ -91,6 +91,16 @@ Regular IPv4 network setup: .Va dest_addr .Ed .Pp +Point to Point IPv4 network setup: +.Bd -ragged -offset indent +.Li inet +.Op Li alias +.Va addr +.Va netmask +.Va network_addr +.Va options +.Ed +.Pp Regular IPv6 network setup: .Bd -ragged -offset indent .Li inet6 @@ -122,6 +132,15 @@ inet6 alias fec0::1 64 inet6 alias fec0::2 64 anycast !route add 65.65.65.65 10.0.1.13 up +.Ed +.Pp +Point to point IP addresses or IP unnumbered addresses +can also be applied to an interface iff it is a tunnel or serial interface +such as; gif(4), gre(4), pppoe(4), ppp(4), sppp(4). +For example: +.Bd -literal -offset 1n +inet 10.64.100.2 0xffffffff 10.64.80.25 +# local_addr /32_netmask remote_addr .Ed .Pp The above formats have the following field values:
On 2 October 2017 at 11:33, Stuart Henderson <s...@spacehopper.org> wrote: > On 2017/10/02 03:04, Tom Smyth wrote: >> Hello, >> >> But the Ip configuration syntax in hostname.if is the same. > > For a /31 you just use e.g. "inet 192.0.2.100/31" (and it works properly > in other parts of the system, e.g. ospfd). > >> Is there anything specifically wrong in the proposed patch ? > > This configuration only works on actual point-to-point interfaces (gif, gre, > tun). Without further explanation people might expect it to work on ethernet > like interfaces, and the "endpoint" address (10.64.80.25 in your example) > doesn't do anything there. > -- Kindest regards, Tom Smyth Mobile: +353 87 6193172 The information contained in this E-mail is intended only for the confidential use of the named recipient. If the reader of this message is not the intended recipient or the person responsible for delivering it to the recipient, you are hereby notified that you have received this communication in error and that any review, dissemination or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately by telephone at the number above and erase the message You are requested to carry out your own virus check before opening any attachment.