Date created: Tuesday, January 16, 2024 3:28:07 PM. Last modified: Tuesday, January 16, 2024 3:31:51 PM

Bit Operations

>>> OSPF_OPTION_EXTERNAL = 2
>>> OSPF_OPTION_ROUTER = 16
>>> OSPF_OPTION_AF = 256
>>> OSPF_OPTIONS = OSPF_OPTION_EXTERNAL | OSPF_OPTION_ROUTER | OSPF_OPTION_AF
>>> OSPF_OPTIONS
274
>>> bin(OSPF_OPTIONS)
'0b100010010'