Hello All
I am getting the following error while trying to set vlan/dst mac in actions,
bad action at offset 0x8, traced more and found that the a->type is 1(in case 
of set-vlan) 5 (in case of set-dst-mac)
for some reason the default case is executed, 
 
static enum ofperr
decode_openflow10_action(const union ofp_action *a,
                         enum ofputil_action_code *code)
{
    switch (a->type) {
    case CONSTANT_HTONS(OFPAT10_VENDOR):
        return decode_nxast_action(a, code);#define OFPAT10_ACTION(ENUM, 
STRUCT, NAME)                          \
        case CONSTANT_HTONS(ENUM):                                  \
            if (a->header.len == htons(sizeof(struct STRUCT))) {    \
                *code = OFPUTIL_##ENUM;                             \
                return 0;                                           \
            } else {                                                \
                return OFPERR_OFPBAC_BAD_LEN;                       \
            }                                                       \
            break;
#include "ofp-util.def"
  default:
        return OFPERR_OFPBAC_BAD_TYPE;
    }
}

 
Thanks
Vishnu
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to