diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-04-22 18:42:22 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-04-22 18:42:22 +0200 |
commit | 575398eb9bc2c6f1bcfce7bf8fffbce73a96e8da (patch) | |
tree | d1b6a38fabde37b8c4b31d6d31c8cd608ac435e3 /sys/src/9/ip/icmp.c | |
parent | 638b4a1ec113adebdd6a85d647574a46e0b7feab (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