-static void
-set_in_port(struct cls_rule *rule, uint16_t odp_port)
-{
- rule->wc.wildcards &= ~OFPFW_IN_PORT;
- rule->flow.in_port = odp_port;
-}
-
-static void
-set_dl_type(struct cls_rule *rule, uint16_t dl_type)
-{
- rule->wc.wildcards &= ~OFPFW_DL_TYPE;
- rule->flow.dl_type = dl_type;
-}
-
-static void
-set_dl_src(struct cls_rule *rule, const uint8_t dl_src[ETH_ADDR_LEN])
-{
- rule->wc.wildcards &= ~OFPFW_DL_SRC;
- memcpy(rule->flow.dl_src, dl_src, ETH_ADDR_LEN);
-}
-
-static void
-set_dl_dst(struct cls_rule *rule, const uint8_t dl_dst[ETH_ADDR_LEN])
-{
- rule->wc.wildcards &= ~OFPFW_DL_DST;
- memcpy(rule->flow.dl_dst, dl_dst, ETH_ADDR_LEN);
-}
-
-static void
-set_tp_src(struct cls_rule *rule, uint16_t tp_src)
-{
- rule->wc.wildcards &= ~OFPFW_TP_SRC;
- rule->flow.tp_src = tp_src;
-}
-
-static void
-set_tp_dst(struct cls_rule *rule, uint16_t tp_dst)
-{
- rule->wc.wildcards &= ~OFPFW_TP_DST;
- rule->flow.tp_dst = tp_dst;
-}
-
-static void
-set_nw_proto(struct cls_rule *rule, uint8_t nw_proto)
-{
- rule->wc.wildcards &= ~OFPFW_NW_PROTO;
- rule->flow.nw_proto = nw_proto;
-}
-
-static void
-set_nw_src(struct cls_rule *rule, const struct in_addr nw_src)
-{
- rule->wc.wildcards &= ~OFPFW_NW_SRC_MASK;
- rule->flow.nw_src = nw_src.s_addr;
-}
-
-static void
-set_nw_dst(struct cls_rule *rule, const struct in_addr nw_dst)
-{
- rule->wc.wildcards &= ~OFPFW_NW_DST_MASK;
- rule->flow.nw_dst = nw_dst.s_addr;
-}
-