Skip to content

Instantly share code, notes, and snippets.

struct NetworkInterfaceFlags : OptionSetType {
let rawValue: UInt
static let None = NetworkInterfaceFlags(rawValue: 0)
static let Up = NetworkInterfaceFlags(rawValue: 1 << 0)
static let Broadcast = NetworkInterfaceFlags(rawValue: 1 << 1)
static let Debug = NetworkInterfaceFlags(rawValue: 1 << 2)
static let Loopback = NetworkInterfaceFlags(rawValue: 1 << 3)
static let PointToPoint = NetworkInterfaceFlags(rawValue: 1 << 4)
static let Smart = NetworkInterfaceFlags(rawValue: 1 << 5)
static let Running = NetworkInterfaceFlags(rawValue: 1 << 6)