[ovs-discuss] Get the metadata of captured packet which is sent to controller through PacketIn message in OVS userspace

Tuyen Dinh tuyen.dinhk at gmail.com
Sat Oct 12 13:33:02 UTC 2019


Thanks for your help. I got the data I need by extracting
am->pin.up.base.packet with flow_extract()

Vào Th 6, 11 thg 10, 2019 vào lúc 14:38 Tuyen Dinh <tuyen.dinhk at gmail.com>
đã viết:

> Hi,
> I'm trying to preprocess packets that don't match flowtable before they
> are sent to the controller via PacketIn message.I found in
> ofproto/connmgr.c, function connmgr_send_async_msg() is given a struct
> ofproto_async_msg *am , encode and send a PacketIn message to the
> controller. I tried to read the source/dest ip and source/dest port of the
> captured packet by access am>pin.up.base.flow_metadata.flow but all fields
> are 0 except in_port. Is it the correct way to access the metadata of the
> captured packet? If I'm misunderstanding, how can I get the metadata of the
> captured packet in user space before it's sent to the controller?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20191012/1f705ca4/attachment.html>


More information about the discuss mailing list