git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7e5e638
)
No longer necessary to obtain Ethernet header in netdev_send().
author
Ben Pfaff
<blp@nicira.com>
Mon, 6 Oct 2008 16:49:15 +0000
(09:49 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 6 Oct 2008 16:49:15 +0000
(09:49 -0700)
lib/netdev.c
patch
|
blob
|
history
diff --git
a/lib/netdev.c
b/lib/netdev.c
index
ba11b6a
..
3926fed
100644
(file)
--- 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;
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);
do {
n_bytes = sendto(netdev->fd, buffer->data, buffer->size, 0, NULL, 0);