state->raw_fd = if_openrawsocket(ifp, ETHERTYPE_IP);
if (state->raw_fd == -1) {
if (errno == ENOENT) {
- syslog(LOG_ERR,
- "Packet Filter missing from kernel");
+ syslog(LOG_ERR, "%s not found", if_pfname);
/* May as well disable IPv4 entirely at
* this point as we really need it. */
ifp->options->options &= ~DHCPCD_IPV4;
}
#ifdef INET
+const char *if_pfname = "Berkley Packet Filter";
+
int
if_openrawsocket(struct interface *ifp, int protocol)
{
};
#ifdef INET
+const char *if_pfname = "Packet Socket";
+
int
if_openrawsocket(struct interface *ifp, int protocol)
{
int if_managelink(struct dhcpcd_ctx *);
#ifdef INET
+extern const char *if_pfname;
int if_openrawsocket(struct interface *, int);
ssize_t if_sendrawpacket(const struct interface *,
int, const void *, size_t);