Opened 8 years ago

Closed 4 years ago

Last modified 4 years ago

#6162 closed enhancement (fixed)

'pointopoint' option in /etc/config/network

Reported by: joel.porquet@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: network, ifconfig, pointopoint Cc:


Hi all,
At some point, I needed to be able to specify a 'pointopoint' option in the definition of an interface. Something like:

config 'interface' 'vpn'
       option 'ifname' 'tun0'
       option 'proto' 'static'
       option 'ipaddr' ''
       option 'netmask' ''
       option 'pointopoint' ''

It turned out that the 'pointopoint' option did not exist, though it exists as parameter to 'ifconfig' command. So here is, the tiny patch to add the support of this option:

--- /lib/network/      Mon Jun  1 22:41:17 2009
+++   Sat Nov 14 23:41:51 2009
@@ -170,8 +170,10 @@
       config_get ip6gw "$config" ip6gw
       config_get dns "$config" dns
       config_get bcast "$config" broadcast
+       config_get pointopoint "$config" pointopoint

       [ -z "$ipaddr" ] || $DEBUG ifconfig "$iface" "$ipaddr" netmask
"$netmask" broadcast "${bcast:-+}"
+       [ -z "$pointopoint" ] || $DEBUG ifconfig "$iface" pointopoint
       [ -z "$ip6addr" ] || $DEBUG ifconfig "$iface" add "$ip6addr"
       [ -z "$gateway" ] || $DEBUG route add default gw "$gateway" dev "$iface"
       [ -z "$ip6gw" ] || $DEBUG route -A inet6 add default gw
"$ip6gw" dev "$iface"


Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

supported in netifd as the 'ptp' option

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.