From: Ben Pfaff Date: Mon, 6 Oct 2008 16:49:15 +0000 (-0700) Subject: No longer necessary to obtain Ethernet header in netdev_send(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6de5998363590434810f913b0bb8428e5fa63cd7;p=openvswitch No longer necessary to obtain Ethernet header in netdev_send(). --- diff --git a/lib/netdev.c b/lib/netdev.c index ba11b6ab..3926fed5 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -491,15 +491,6 @@ int netdev_send(struct netdev *netdev, const struct ofpbuf *buffer) { ssize_t n_bytes; - const struct eth_header *eh; - - /* Pull out the Ethernet header. */ - if (buffer->size < ETH_HEADER_LEN) { - VLOG_WARN_RL(&rl, "cannot send %zu-byte frame on %s", - buffer->size, netdev->name); - return EMSGSIZE; - } - eh = ofpbuf_at_assert(buffer, 0, sizeof *eh); do { n_bytes = sendto(netdev->fd, buffer->data, buffer->size, 0, NULL, 0);