Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/shared/
Dselinux-util.c589 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()
Dselinux-util.h55 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
/systemd-251/src/udev/
Dudev-ctrl.c38 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/
Dnetlink-socket.c75 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()
Dsd-netlink.c73 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/
Dfuzz-dhcp-server-relay.c11 …kfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) { in sendto() argument
Dfuzz-dhcp-server.c12 …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/
Ddevice-monitor.c76 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()