提交 1c8f0cbb 编写于 作者: S Stefan Berger 提交者: Stefan Berger

nwfilter: Do not require DHCP requests to be broadcasted

Remove the requirement that DHCP messages have to be broadcasted.
DHCP requests are most often sent via broadcast but can be directed
towards a specific DHCP server. For example 'dhclient' takes '-s <server>'
as a command line parameter thus allowing DHCP requests to be sent to a
specific DHCP server.
上级 33eca17f
......@@ -3245,9 +3245,8 @@ ebtablesApplyDHCPOnlyRules(const char *ifname,
virBufferAsprintf(&buf,
CMD_DEF("$EBT -t nat -A %s"
" -s %s -d Broadcast "
" -s %s"
" -p ipv4 --ip-protocol udp"
" --ip-src 0.0.0.0 --ip-dst 255.255.255.255"
" --ip-sport 68 --ip-dport 67"
" -j ACCEPT") CMD_SEPARATOR
CMD_EXEC
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册