summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2013-10-19 11:11:24 +0000
committermpi <mpi@openbsd.org>2013-10-19 11:11:24 +0000
commitf35d2347b455658bd376a4e98cafb62c4ae259a5 (patch)
tree723ffd8d1ceff032d04669c8a28e6f0f653fd32d /lib
parentsimplify checksum handling. no need to compute the pseudo hdr cksum (diff)
downloadwireguard-openbsd-f35d2347b455658bd376a4e98cafb62c4ae259a5.tar.xz
wireguard-openbsd-f35d2347b455658bd376a4e98cafb62c4ae259a5.zip
When we attach an interface, do not try to reuse the last index to
limit the possible races related to unscheduled task, or anything else, relying on an unique index. I say "limit" here because a race can still occurs if you run out of indexes and jump back to 1. A generation number can be added later to avoid this problem. ok deraadt@, claudio@, krw@, mikeb@, "I can live with it" reyk@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions