X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flearn.h;h=b83bee20d9d873cdaa310a5883ecbeeead897d52;hb=50d25de67fe5b68fb2492e014a6f30a1f48bfdd3;hp=19a9089c2e0069e858f28cf8a54abc9fb3409c36;hpb=75a75043564dc9b002fffa6c6ad71e0d4d5c892e;p=openvswitch diff --git a/lib/learn.h b/lib/learn.h index 19a9089c..b83bee20 100644 --- a/lib/learn.h +++ b/lib/learn.h @@ -17,6 +17,8 @@ #ifndef LEARN_H #define LEARN_H 1 +#include "ofp-errors.h" + struct ds; struct flow; struct ofpbuf; @@ -28,7 +30,7 @@ struct nx_action_learn; * See include/openflow/nicira-ext.h for NXAST_LEARN specification. */ -int learn_check(const struct nx_action_learn *, const struct flow *); +enum ofperr learn_check(const struct nx_action_learn *, const struct flow *); void learn_execute(const struct nx_action_learn *, const struct flow *, struct ofputil_flow_mod *);