summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/unix/net.c
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2015-10-25 00:42:02 +0000
committerrenato <renato@openbsd.org>2015-10-25 00:42:02 +0000
commitc7d2d484bc7cc43f575409d5359ce3e016d18466 (patch)
tree1154e77fd38c645853c3f208d624ea310c2d4731 /usr.sbin/bind/lib/isc/unix/net.c
parentAdd a few more overflow protections in the DUAL state (diff)
downloadwireguard-openbsd-c7d2d484bc7cc43f575409d5359ce3e016d18466.tar.xz
wireguard-openbsd-c7d2d484bc7cc43f575409d5359ce3e016d18466.zip
When converting the real bandwidth to the composite bandwidth, truncate
before applying the scaling factor. When converting the composite bandwidth to the real bandwidth, apply the scaling factor before the division and only then truncate. This is to keep consistent with what Cisco does, the draft is unclear on this point.
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/net.c')
0 files changed, 0 insertions, 0 deletions