summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/icmp.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-04-22 18:42:22 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-04-22 18:42:22 +0200
commit575398eb9bc2c6f1bcfce7bf8fffbce73a96e8da (patch)
treed1b6a38fabde37b8c4b31d6d31c8cd608ac435e3 /sys/src/9/ip/icmp.c
parent638b4a1ec113adebdd6a85d647574a46e0b7feab (diff)
devip: verify ifcid on routehint check, check Route.ref for free'd routes
v4lookup() and v6lookup() do not acquire the routelock, so it is possible to hit routes that are on the freelist. to detect these, we set ref to 0 and check for this case, avoiding overriding the ifc. re-evaluate routes when the ifcid on the route hint doesnt match.
Diffstat (limited to 'sys/src/9/ip/icmp.c')
0 files changed, 0 insertions, 0 deletions