Modify

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:

Description

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' '10.0.4.1'
       option 'netmask' '255.255.255.0'
       option 'pointopoint' '10.0.4.2'

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/config.sh      Mon Jun  1 22:41:17 2009
+++ config.sh   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
"$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"

Regards,
Joel

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

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


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

 
Note: See TracTickets for help on using tickets.