Skip to content

Commit

Permalink
Merge pull request containernetworking#79 from micahhausler/dhcp-broa…
Browse files Browse the repository at this point in the history
…dcast

Add -broadcast flag to DHCP plugin documentation
  • Loading branch information
squeed authored Feb 5, 2021
2 parents a27c985 + ae1c708 commit c96074e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions content/plugins/ipam/dhcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ $ ./dhcp daemon
```

If given `-pidfile <path>` arguments after 'daemon', the dhcp plugin will write
its PID to the given file.
If given `-hostprefix <prefix>` arguments after 'daemon', the dhcp plugin will use this prefix for DHCP socket as `<prefix>/run/cni/dhcp.sock`. You can use this prefix for references to the host filesystem, e.g. to access netns and the unix socket.
its PID to the given file.
If given `-hostprefix <prefix>` arguments after 'daemon', the dhcp plugin will
use this prefix for DHCP socket as `<prefix>/run/cni/dhcp.sock`. You can use
this prefix for references to the host filesystem, e.g. to access netns and the
unix socket.
If given `-broadcast=true` argument after 'daemon', the dhcp plugin will
enable the broadcast flag on DHCP packets.

Alternatively, you can use systemd socket activation protocol.
Be sure that the .socket file uses /run/cni/dhcp.sock as the socket path.
Expand Down

0 comments on commit c96074e

Please sign in to comment.