summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/commit.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2006-06-15 16:33:02 +0000
committerhenning <henning@openbsd.org>2006-06-15 16:33:02 +0000
commit285dec4d3186295fc66d252c4af113c01dcc1087 (patch)
tree2a63ea6ad1f8380cb5f9b86b15f697ff2015f5c0 /usr.bin/cvs/commit.c
parenttighten this code up (diff)
downloadwireguard-openbsd-285dec4d3186295fc66d252c4af113c01dcc1087.tar.xz
wireguard-openbsd-285dec4d3186295fc66d252c4af113c01dcc1087.zip
put the multiple routing tables support back in, fixed.
problem before: with this, we are no longer using the address family as array index directly, since only 3 of 31 address fanilies actually attach a table, but we're using an address family to array index translation (just another array). there, 0 meant "does not attach a table", thus rt_gettable has to return a null pointer. unfortunately we were using array index 0 for whatever af attaches first, and since the list is backwards,, that used to be ipsec - execpt on ipsec-less ramdisks, where it was inet6, and since route show blindly iterates over all address families, and all those without a table pointed to index 0, we got 28 or 29 copies of the v6 table. i had that right initally, and then i borked it later... re-spotted by claudio. ok norby hshoexer claudio
Diffstat (limited to 'usr.bin/cvs/commit.c')
0 files changed, 0 insertions, 0 deletions