projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netdev-linux: "Down" tap devices before setting hw addr.
[openvswitch]
/
lib
/
autopath.c
diff --git
a/lib/autopath.c
b/lib/autopath.c
index b204e847307230ae72a19eb747ced40ad741963d..9da646339a19587ca6a7f928bf3b1628cef195ed 100644
(file)
--- a/
lib/autopath.c
+++ b/
lib/autopath.c
@@
-37,6
+37,7
@@
autopath_parse(struct ofpact_autopath *ap, const char *s_)
{
char *s;
char *id_str, *dst, *save_ptr;
{
char *s;
char *id_str, *dst, *save_ptr;
+ uint16_t port;
ofpact_init_AUTOPATH(ap);
ofpact_init_AUTOPATH(ap);
@@
-49,10
+50,10
@@
autopath_parse(struct ofpact_autopath *ap, const char *s_)
ovs_fatal(0, "%s: not enough arguments to autopath action", s_);
}
ovs_fatal(0, "%s: not enough arguments to autopath action", s_);
}
- ap->port = ofputil_port_from_string(id_str);
- if (!ap->port) {
+ if (!ofputil_port_from_string(id_str, &port)) {
ovs_fatal(0, "%s: bad port number", s_);
}
ovs_fatal(0, "%s: bad port number", s_);
}
+ ap->port = port;
mf_parse_subfield(&ap->dst, dst);
if (ap->dst.n_bits < 16) {
mf_parse_subfield(&ap->dst, dst);
if (ap->dst.n_bits < 16) {