X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-linux.c;h=fde686c830aa6306e5900f7361c44b1b798e5e8f;hb=6506f45c0818618e96deb858bbabdf2cc90eb2df;hp=cd104b320c8650c255a58990ef3386c2427795f7;hpb=c4cac9abf211b74c777b86ad7281e7b0f42a3a39;p=sliver-openvswitch.git diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index cd104b320..fde686c83 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -673,7 +673,8 @@ netdev_linux_open(struct netdev_dev *netdev_dev_, int ethertype, protocol = (ethertype == NETDEV_ETH_TYPE_ANY ? ETH_P_ALL : ethertype == NETDEV_ETH_TYPE_802_2 ? ETH_P_802_2 : ethertype); - netdev->fd = socket(PF_PACKET, SOCK_RAW, htons(protocol)); + netdev->fd = socket(PF_PACKET, SOCK_RAW, + (OVS_FORCE int) htons(protocol)); if (netdev->fd < 0) { error = errno; goto error;