Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dhcp
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 109
    • Issues 109
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • dhcp
  • Merge requests
  • !70

Open
Created Nov 24, 2020 by Qingtao Cao@qingtao
  • Report abuse
Report abuse

Support dhcrelay on interfaces with zero MAC address

  • Overview 0
  • Commits 1
  • Changes 2

The DHCP relay is designed to use interfaces with L2 headers. Add following support so that it can work on interfaces without L2 headers:

  1. Handle sa_family == ARPHRD_NONE in get_hw_addr();

  2. Use the Linux cooked socket instead of raw socket so that a copy of L4 / protocol handled packet can be reinjected to the PF_PACKET taps (this is critical when the DHCP relay doesn't understand the L2 packets captured, for example, when they are encrypted IPSec packets);

  3. Avoid assembling / decoding L2 headers when sending / receiving L2 packets

  4. Adjust the BPF filter code to skip over analysing L2 headers

Signed-off-by: Qingtao Cao qingtao.cao@digi.com

Closes #152

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 152-dhcrelay-support-ARPHRD_NONE-interfaces