[ovs-discuss] query related to GRE encapsulation
Ben Pfaff
blp at nicira.com
Tue Feb 24 16:44:48 UTC 2015
On Tue, Feb 24, 2015 at 01:33:29PM +0000, Chetan Bali wrote:
> I am configuring gre-port in my ovs bridge, for establishing gre-tunnel between 2 machines. I am trying to parse the tunnelling key params sent by OVS while adding flow, when it sets action as OVS_ACTION_ATTR_SET. I am parsing the tun-key attributes in dpif-linux.c in exact manner as ovs does, i.e., nla_data(nla_data(action)) where action is in "nlattr" type. Tun-key params that I am trying to fetch are as per struct "ovs_key_ipv4_tunnel" i.e.,
> struct ovs_key_ipv4_tunnel {
> __be64 tun_id;
> __be32 ipv4_src;
> __be32 ipv4_dst;
> __be16 tun_flags;
> u8 ipv4_tos;
> u8 ipv4_ttl;
> };
> The problem is that, while parsing I am getting incorrect tun-key params, whereas I can see by putting prints that openvswitchd.ko is getting correct tun-key params.
I guess you're doing something wrong. Show us your code?
More information about the discuss
mailing list