aboutgitcodebugslistschat
path: root/contrib/selinux
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-02-16 01:53:30 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-02-16 17:33:57 +0100
commit77a6d976aa4571427ba832226a3232f92bfd169f (patch)
tree8a523cf4b20ea82282c5dc879f5b238d8edee7cf /contrib/selinux
parent7564b58a7f27bd926b0ce76b4fda145dca2d15dd (diff)
downloadpasst-77a6d976aa4571427ba832226a3232f92bfd169f.tar
passt-77a6d976aa4571427ba832226a3232f92bfd169f.tar.gz
passt-77a6d976aa4571427ba832226a3232f92bfd169f.tar.bz2
passt-77a6d976aa4571427ba832226a3232f92bfd169f.tar.lz
passt-77a6d976aa4571427ba832226a3232f92bfd169f.tar.xz
passt-77a6d976aa4571427ba832226a3232f92bfd169f.tar.zst
passt-77a6d976aa4571427ba832226a3232f92bfd169f.zip
dhcp: Fix netmask calculation for option 1 from prefix length
Similar to the conf_print() fix from commit 4129764ecaeb ("conf: Fix mask calculation from prefix_len in conf_print()"): to calculate an IPv4 netmask from the prefix length, we need to left shift 32 all-one bits by 32 minus the prefix length -- not by the prefix length itself. Reported-by: Yalan Zhang <yalzhang@redhat.com> Fixes: dd09cceaee21 ("Minor improvements to IPv4 netmask handling") Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'contrib/selinux')
0 files changed, 0 insertions, 0 deletions