aboutsummaryrefslogtreecommitdiff
path: root/lib/libfigpar
diff options
context:
space:
mode:
authorMaxim Shalomikhin <maxim.shalomikhin@kaspersky.com>2025-07-02 19:25:57 +0000
committerKyle Evans <kevans@FreeBSD.org>2025-07-02 19:33:52 +0000
commit604d34c23f772ae0005a552b0b7189f3dc97d519 (patch)
tree272f661ff34ae2ad73892a6d433c6bf5347e04de /lib/libfigpar
parentb2f02b04948cea9b7f019b267e1fc2d083b1417c (diff)
net: ether_gen_addr: fix address generation
Some errors in ether_gen_addr() caused us to generate MAC addresses out of range, and the ones that were within range had other errors causing the pool of addresses that we might actually generate to shrink. Fix both prblems by using only two bytes of the digest and then OR'ing against the mask, which has the appropriate byte set for the fourth octet of the range already; essentially, our digest is only contributing the last two octets. Change is the author, but any blame for the commit message goes to kevans. PR: 256850 Relnotes: yes
Diffstat (limited to 'lib/libfigpar')
0 files changed, 0 insertions, 0 deletions