diff options
author | glebius <glebius@FreeBSD.org> | 2013-04-25 12:42:09 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-04-25 12:42:09 +0000 |
commit | dd30d87e8d858834352b3936fe169ce0163247ef (patch) | |
tree | 5c1e150c0ae9a03198c60921b88214b266d2e8a2 /sys/libkern | |
parent | 882f8cda19f255874002de3051ca5fc93f8f78ac (diff) | |
download | FreeBSD-src-dd30d87e8d858834352b3936fe169ce0163247ef.zip FreeBSD-src-dd30d87e8d858834352b3936fe169ce0163247ef.tar.gz |
Introduce a pointer to const variable gw, which points either at the
same place as dst, or to the sockaddr in the routing table.
The const constraint of gw makes us safe from modifing routing table
accidentially. And "onstantness" of dst allows us to remove several
bandaids, when we switched it back at &ro->ro_dst, now it always
points there.
Reviewed by: rrs
Diffstat (limited to 'sys/libkern')
0 files changed, 0 insertions, 0 deletions