Contents

setFlags

Performs a read-modify-write operation on the current interface flags value.

Declaration

virtual bool setFlags(
 UInt16 flags,
 UInt16 clear = 0 );

Parameters

  • flags:

    The bits that should be set.

  • clear:

    The bits that should be cleared. If zero, then non of the flags are cleared and the result is formed by OR'ing the original flags value with the new flags.

Return Value

Always returns true.

Overview

Calls ifnet_set_flags if the interface is attached to the network stack, and updates the kIOInterfaceFlags property using the provided value. See bsd/net/if.h header file for the flag constants.

See Also

Miscellaneous