Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Kea
Kea
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 450
    • Issues 450
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 75
    • Merge Requests 75
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • KeaKea
  • Issues
  • #543

Closed
Open
Opened Mar 21, 2019 by Pavel Lyulchenko@plyul

Inconsistency in Pkt class

There are members iface_ and ifindex_ in Pkt class. They are closely linked to each other and must be set/updated simultaneously. Currently it is possible to set iface_ and/or ifindex_ independently of each other and get an inconsistent object state.

Example 1:

  1. There is correctly crafted object named 'packet' (iface_="eth0", ifindex_=2);
  2. packet->setIface("eth1");
  3. IfaceMgr->send(packet);

Result: packet sent out of eth0, but not eth1.

Example 2:

  1. There is correctly crafted object named 'packet' (iface_="eth0", ifindex_=2);
  2. packet->setIndex(3); // iface_="eth0"
  3. IfaceMgr->send(packet);

Result: packet sent out of eth1, but not eth0.

Edited Mar 21, 2019 by Pavel Lyulchenko
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Kea1.6-final
Milestone
Kea1.6-final (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: isc-projects/kea#543