X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=datapath%2Fvport-internal_dev.c;h=4dc2eb479d7024586f9d85538ace6a48e119d6f0;hb=5d03d2a76510db1d22779154904bc23d12b297e7;hp=9647a617c9f57d1f7ee20e973dffb60c82511f86;hpb=550534413c31d7c91181305962fc7fc982465ac0;p=openvswitch diff --git a/datapath/vport-internal_dev.c b/datapath/vport-internal_dev.c index 9647a617..4dc2eb47 100644 --- a/datapath/vport-internal_dev.c +++ b/datapath/vport-internal_dev.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007-2012 Nicira Networks. + * Copyright (c) 2007-2012 Nicira, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -25,6 +25,9 @@ #include #include +#include +#include + #include "checksum.h" #include "datapath.h" #include "vlan.h" @@ -289,6 +292,11 @@ static int internal_dev_recv(struct vport *vport, struct sk_buff *skb) #endif len = skb->len; + + skb_dst_drop(skb); + nf_reset(skb); + secpath_reset(skb); + skb->dev = netdev; skb->pkt_type = PACKET_HOST; skb->protocol = eth_type_trans(skb, netdev);