[OpenWrt-Devel] [PATCH] gre: Generic Routing Encapsulation package support

Baptiste Jonglez bjonglez at illyse.org
Sat Aug 2 11:28:12 EDT 2014

On Sat, Aug 02, 2014 at 11:51:33PM +0900, Baptiste Jonglez wrote:
> 2/ "tunlink" does not seem to work for anything else than "wan".  When
>    trying to set it to "lan" (which is properly defined in the network
>    config), the tunnel is not created.  There is no error in readlog.

After some debugging, it seems to be caused by this call:

  proto_add_host_dependency "$cfg" "" "$tunlink"

If I understand this correctly, the script expects to find a default route
through the interface specified by "tunlink".  

Wouldn't it make more sense to depend on "$peeraddr" instead?  In my
use-case, the other end of the GRE tunnel is not necessarily reached
through the default route.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140803/5f87c5a6/attachment.sig>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list