git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netdev: Change netdev_get_mtu() to return an error code.
[sliver-openvswitch.git]
/
lib
/
dhcp-client.c
diff --git
a/lib/dhcp-client.c
b/lib/dhcp-client.c
index
561562b
..
a9163c7
100644
(file)
--- a/
lib/dhcp-client.c
+++ b/
lib/dhcp-client.c
@@
-909,7
+909,7
@@
do_receive_msg(struct dhclient *cli, struct dhcp_msg *msg)
struct ofpbuf b;
int mtu;
-
mtu = netdev_get_mtu(cli->netdev
);
+
netdev_get_mtu(cli->netdev, &mtu
);
ofpbuf_init(&b, mtu + VLAN_ETH_HEADER_LEN);
netdev_get_etheraddr(cli->netdev, cli_mac);
for (; cli->received < 50; cli->received++) {