/*
- * Copyright (c) 2008, 2009, 2010 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* allowed to be set up in the datapath. */
bool
in_band_rule_check(struct in_band *in_band, const struct flow *flow,
- const struct nlattr *actions, unsigned int actions_len)
+ const struct nlattr *actions, size_t actions_len)
{
if (!in_band) {
return true;
unsigned int left;
NL_ATTR_FOR_EACH_UNSAFE (a, left, actions, actions_len) {
- if (nl_attr_type(a) == ODPAT_OUTPUT
+ if (nl_attr_type(a) == ODP_ACTION_ATTR_OUTPUT
&& nl_attr_get_u32(a) == ODPP_LOCAL) {
return true;
}