Project

General

Profile

Regression #11594

IPv6 routes with a prefix length of 128 result in an invalid route table entry

Added by Viktor Gurov about 2 months ago. Updated 3 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Routing
Target version:
Start date:
03/02/2021
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.5.0
Affected Architecture:
Release Notes:
Default

Description

After adding fc00:1234::1234/128 via fc00:129::bbbb route, I see an invalid route in the routing table:

illegal prefixlen
7400:2a20::/0                     fc00:129::bbbb                UGS      vtnet1

Associated revisions

Revision d9818e01 (diff)
Added by Viktor Gurov about 1 month ago

Static IPv6 /128 routes fix. Issue #11594

Revision ce5c4d24 (diff)
Added by Viktor Gurov about 1 month ago

Static IPv6 /128 routes fix. Issue #11594

(cherry picked from commit d9818e01479718efa5e02d8b0d32a87cfcaabf5a)

History

#1 Updated by Viktor Gurov about 2 months ago

Using `-net` argument with /128 netmask produces invalid routes, i.e.:

# /sbin/route add -net -inet6 fc00:aaaa::1/128 fc00:129::bbbb
add net fc00:aaaa::1/128: gateway fc00:129::bbbb
# netstat -rn | grep fc00:129::bbbb
illegal prefixlen
7400:2a20::/0                     fc00:129::bbbb                UGS      vtnet1

seems `route(8)` bug

fix/workaround:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/167

#2 Updated by Jim Pingle about 1 month ago

  • Status changed from New to Pull Request Review
  • Target version set to CE-Next

#3 Updated by Jim Pingle about 1 month ago

  • Target version changed from CE-Next to 2.5.1

#4 Updated by Renato Botelho about 1 month ago

  • Status changed from Pull Request Review to Waiting on Merge
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

#5 Updated by Renato Botelho about 1 month ago

  • Status changed from Waiting on Merge to Feedback

#6 Updated by Renato Botelho about 1 month ago

Cherry-picked to RELENG_2_5_1

#7 Updated by Jim Pingle about 1 month ago

  • Subject changed from Unable to add static IPv6 routes to IPv6 routes with a prefix length of 128 result in an invalid route table entry

Updating subject for release notes.

#8 Updated by Jim Pingle 3 days ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF