Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L l2tpns
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • l2tpns
  • l2tpns
  • Issues
  • #9
Closed
Open
Issue created Jul 26, 2021 by domi@domi

Invalid prefix sent to BGP peer when using bind_address

In l2tpns.c (line 4140) :

   if (config->bind_address)
           bgp_add_route(config->bind_address, 0xffffffff);

Will produce invalid BGP update :

Network Layer Reachability Information (NLRI)
    NLRI length 255 invalid (> 32)
        [Expert Info (Error/Malformed): NLRI length 255 invalid (> 32)]
            [NLRI length 255 invalid (> 32)]

Second parameter of bgp_add_route is called "prefixlen" so 0xffffffff will produce the « 255 » length. ( probably from the time when masks where used )

The value should be "32"

Patch to come :)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking