return ps_dostop(ctx, &ctx->ps_inet_pid, &ctx->ps_inet_fd);
}
-ssize_t
-ps_inet_sendmsg(struct dhcpcd_ctx *ctx, uint8_t cmd, const struct msghdr *msg)
-{
-
- return ps_sendmsg(ctx, ctx->ps_inet_fd, cmd, 0, msg);
-}
-
#ifdef INET
static void
ps_inet_recvinbootp(void *arg)
ps_inet_sendnd(struct interface *ifp, const struct msghdr *msg)
{
- return ps_inet_sendmsg(ifp->ctx, PS_ND, msg);
+ return ps_sendmsg(ifp->ctx, ifp->ctx->ps_inet_fd, PS_ND, 0, msg);
}
#endif
pid_t ps_inet_start(struct dhcpcd_ctx *);
int ps_inet_stop(struct dhcpcd_ctx *);
-ssize_t ps_inet_sendmsg(struct dhcpcd_ctx *, uint8_t, const struct msghdr *);
ssize_t ps_inet_cmd(struct dhcpcd_ctx *, struct ps_msghdr *, struct msghdr *);
ssize_t ps_inet_dispatch(void *, struct ps_msghdr *, struct msghdr *);