Skip to content

Commit

Permalink
dhcp: document timeout flag
Browse files Browse the repository at this point in the history
Related to containernetworking/plugins#565

Signed-off-by: tlwr <[email protected]>
  • Loading branch information
tlwr committed Feb 5, 2021
1 parent c96074e commit ed8aac5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions content/plugins/ipam/dhcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ $ ./dhcp daemon
```

If given `-pidfile <path>` arguments after 'daemon', the dhcp plugin will write
its PID to the given file.
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.
unix socket.
If given `-broadcast=true` argument after 'daemon', the dhcp plugin will
enable the broadcast flag on DHCP packets.
If given `-timeout <duration>` arguments after 'daemon', the dhcp daemon will
time out unanswered dhcp requests after this duration, defaults to `10s`.

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 ed8aac5

Please sign in to comment.