diff options
| author | 2021-02-26 01:12:37 +0000 | |
|---|---|---|
| committer | 2021-02-26 01:12:37 +0000 | |
| commit | cf89a71d9e248649a2adb23d76cc1cef5a7a7bba (patch) | |
| tree | c21cca81adc626cc347ce05c6f69e87cad565830 /share/man/man5/python-module.5 | |
| parent | Add my copyright since I added most of the content (diff) | |
| download | wireguard-openbsd-cf89a71d9e248649a2adb23d76cc1cef5a7a7bba.tar.xz wireguard-openbsd-cf89a71d9e248649a2adb23d76cc1cef5a7a7bba.zip | |
add some helpers for working with ethernet addresses as uint64_t
the main bits are ether_addr_to_e64 and ether_e64_to addr for loading
an ethernet address into a uin64_t and visa versa. there's also
some macros for testing if an address in a uint64_t is multicast,
broadcast, anyaddr, or if it's an 802.1q reserved multicast group
address.
the reason for this functionality is once you have an ethernet
address as a uint64_t, operations like compares, bit tests, and
so on are fast and easy.
tested on amd64 and sparc64
Diffstat (limited to 'share/man/man5/python-module.5')
0 files changed, 0 insertions, 0 deletions
