Searched refs:addrlen (Results 1 – 8 of 8) sorted by relevance
/systemd-251/src/shared/ |
D | selinux-util.c | 589 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen) { in mac_selinux_bind() argument 602 assert(addrlen >= sizeof(sa_family_t)); in mac_selinux_bind() 612 if (addrlen < offsetof(struct sockaddr_un, sun_path) + 1) in mac_selinux_bind() 621 addrlen - offsetof(struct sockaddr_un, sun_path)); in mac_selinux_bind() 657 r = RET_NERRNO(bind(fd, addr, addrlen)); in mac_selinux_bind() 666 return RET_NERRNO(bind(fd, addr, addrlen)); in mac_selinux_bind()
|
D | selinux-util.h | 55 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
|
/systemd-251/src/udev/ |
D | udev-ctrl.c | 38 socklen_t addrlen; member 77 uctrl->addrlen = SOCKADDR_UN_LEN(uctrl->saddr.un); in udev_ctrl_new_from_fd() 90 if (bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen) < 0) in udev_ctrl_enable_receiving() 311 if (connect(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen) < 0) in udev_ctrl_send()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-socket.c | 75 socklen_t addrlen; in socket_bind() local 82 addrlen = sizeof(nl->sockaddr); in socket_bind() 85 if (bind(nl->fd, &nl->sockaddr.sa, addrlen) < 0 && errno != EINVAL) in socket_bind() 88 if (getsockname(nl->fd, &nl->sockaddr.sa, &addrlen) < 0) in socket_bind()
|
D | sd-netlink.c | 73 socklen_t addrlen; in sd_netlink_new_from_fd() local 82 addrlen = sizeof(nl->sockaddr); in sd_netlink_new_from_fd() 84 if (getsockname(fd, &nl->sockaddr.sa, &addrlen) < 0) in sd_netlink_new_from_fd()
|
/systemd-251/src/libsystemd-network/ |
D | fuzz-dhcp-server-relay.c | 11 …kfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) { in sendto() argument
|
D | fuzz-dhcp-server.c | 12 …kfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) { in sendto() argument
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-monitor.c | 76 socklen_t addrlen; in monitor_set_nl_address() local 82 addrlen = sizeof(struct sockaddr_nl); in monitor_set_nl_address() 83 if (getsockname(m->sock, &snl.sa, &addrlen) < 0) in monitor_set_nl_address()
|