<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to forward packets to OpenDaylight controller in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/how-to-forward-packets-to-opendaylight-controller/m-p/7036936#M2451</link>
    <description>&lt;P&gt;i use Open vSwitch and OpenDaylight.i want to forward packets to controller. what i want to do is build a firewall, so ovs first send all packets to controller, and the controller will judge whether the packet should be blocked or not. i add following code in datapath/datapath.c/ovs_dp_process_packet()&lt;/P&gt;&lt;PRE&gt;    struct dp_upcall_info upcall;
    int error;
    memset(&amp;amp;upcall, 0, sizeof(upcall));
    upcall.cmd = OVS_PACKET_CMD_MISS;
    upcall.portid = ovs_vport_find_upcall_portid(p, skb);
    upcall.mru = OVS_CB(skb)-&amp;gt;mru;
    error = ovs_dp_upcall(dp, skb, key, &amp;amp;upcall, 0);&lt;/PRE&gt;&lt;P&gt;what i want to do is upcall the packets to controller even if they match the flowtable. but after i complie the code, it doesn't work. so how to upcall packets to controller ?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 14:54:16 GMT</pubDate>
    <dc:creator>zhang0peter</dc:creator>
    <dc:date>2019-03-04T14:54:16Z</dc:date>
    <item>
      <title>how to forward packets to OpenDaylight controller</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-forward-packets-to-opendaylight-controller/m-p/7036936#M2451</link>
      <description>&lt;P&gt;i use Open vSwitch and OpenDaylight.i want to forward packets to controller. what i want to do is build a firewall, so ovs first send all packets to controller, and the controller will judge whether the packet should be blocked or not. i add following code in datapath/datapath.c/ovs_dp_process_packet()&lt;/P&gt;&lt;PRE&gt;    struct dp_upcall_info upcall;
    int error;
    memset(&amp;amp;upcall, 0, sizeof(upcall));
    upcall.cmd = OVS_PACKET_CMD_MISS;
    upcall.portid = ovs_vport_find_upcall_portid(p, skb);
    upcall.mru = OVS_CB(skb)-&amp;gt;mru;
    error = ovs_dp_upcall(dp, skb, key, &amp;amp;upcall, 0);&lt;/PRE&gt;&lt;P&gt;what i want to do is upcall the packets to controller even if they match the flowtable. but after i complie the code, it doesn't work. so how to upcall packets to controller ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 14:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-forward-packets-to-opendaylight-controller/m-p/7036936#M2451</guid>
      <dc:creator>zhang0peter</dc:creator>
      <dc:date>2019-03-04T14:54:16Z</dc:date>
    </item>
  </channel>
</rss>

