Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int rtnl_class_dsmark_set_bitmask ( struct rtnl_class *  class,
uint8_t  mask 

Set bitmask of DSMARK class.

  • class DSMARK class to be modified.
  • mask New bitmask.
    0 on success or a negative error code.

Definition at line 240 of file dsmark.c.

      struct rtnl_dsmark_class *dsmark;
      dsmark = dsmark_class(class);
      if (!dsmark)
            return -NLE_NOMEM;

      dsmark->cdm_bmask = mask;
      dsmark->cdm_mask |= SCH_DSMARK_ATTR_MASK;

      return 0;

Generated by  Doxygen 1.6.0   Back to index