]> git.ipfire.org Git - thirdparty/openwrt.git/commit
base-files: add functions to set or clear bit in MAC address
authorSungbo Eo <mans0n@gorani.run>
Sat, 25 Jan 2020 14:06:07 +0000 (23:06 +0900)
committerSungbo Eo <mans0n@gorani.run>
Tue, 21 Apr 2020 05:30:12 +0000 (14:30 +0900)
commit7cfc8809361b5182de68cc2642464478b06b1d10
tree5f0b4f6c8de55aa5e5ea6fcdbc5e2a581f143c72
parentb77fd0d30bfa93def97fc1633d389b994600fea3
base-files: add functions to set or clear bit in MAC address

Some devices (e.g. Arduino Yun) need bitwise operations during MAC address
setup. This commit adds generalized versions of macaddr_setbit_la(), which
are helpful when manipulating a single bit in a MAC address.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
package/base-files/files/lib/functions/system.sh