Hi Steven,

Thank you so much for your valuable info. I have missed this route and
struggled more than a week. Very grateful for your suggestion.
With the added route I am able to proceed further. But still stuck in below
point.

>From gre.sh, we are calling "proto_send_update" in the interface setup
function. From "proto_send_update" function we are calling "_proto_notify"
which intern calls below ubus call.

ubus -S call network.interface notify_proto { "action": 6, "host":
"192.168.11.5", "ifname": "wan1", "interface": "gre1" }:
Jan  5 10:50:46 RV340 netif: SRI:ubus  call network.interface notify_proto
{ "action": 0, "ifname": "gre-gre1", "link_up": true, "tunnel": { "mode":
"greip", "mtu": 1280, "df": true, "ttl": 64, "local": "172.31.3.8",
"remote": "192.168.11.5", "link": "wan1", "info": "0,0,0,0,0,0" }, "data":
{ "zone": "tunnel" }, "keep": false, "interface": "gre1" }

But above command is returning with "Invalid argument error". This error is
being thrown from netifd from function "proto_shell_update_link". In this
function "if (!tb[NOTIFY_LINK_UP])" statement becomes true and
"UBUS_STATUS_INVALID_ARGUMENT" is being returned.

I tried to understand the "tb" structure, but could not understand the json
to "json_object" conversion. Could you please help how to debug this
further.

I think, I am missing some thing in config (as u suggest in previous mail)
and debugging from the code to find it out. I tried multiple examples
available over net, but nothing worked out for me. Can you please review my
config once again.

Thanks for your help.

Regards,
Sridhar

On Thu, Nov 19, 2015 at 7:06 PM, Steven Barth <[email protected]> wrote:

> You are most likely missing a route to the remote tunnel endpoint
> (192.168.11.5).
> The system doesn't know which interface and next hop to send the tunneled
> packets to, thats why its blocking the tunnel bringup.
>
>
> Cheers,
>
> Steven
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to