-
Hi, Is configuration of IPv4 only on specific interface supported?
With privsep I get "Bad file descriptor" after renew fails. With privsep, ctx->udp_wfd is only initialized if global options have DHCPCD_IPV4 so ctx->ufd_wfd is -1 for ps_inet_sendmsg (called from dhcp_sendudp) with above config. When not using privsep, dhcp_start1 checks the interface options for DHCPCD_IPV4 so ctx->udp_wfd and ctx->udp_rfd will be initialized as long as there is one interface with ipv4 option set. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's a valid point. The user can always have an IPv6 only system by compling out IPv4 if they really want. |
Beta Was this translation helpful? Give feedback.
That's a valid point.
I guess that for privsep enabled code we should just have the socket open incase we activate a new interface with ipv4 because by this point we no longer have permission to open the socket.
The user can always have an IPv6 only system by compling out IPv4 if they really want.