Searched defs:addrlen (Results 1 - 5 of 5) sorted by relevance

/systemd/src/basic/
H A Dselinux-util.c417 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen) { argument
430 assert(addrlen >= sizeof(sa_family_t));
440 if (addrlen < offsetof(struct sockaddr_un, sun_path) + 1)
448 path = strndupa(un->sun_path, addrlen - offsetof(struct sockaddr_un, sun_path));
480 r = bind(fd, addr, addrlen) < 0 ? -errno : 0;
489 if (bind(fd, addr, addrlen) < 0)
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-socket.c106 socklen_t addrlen; local
113 addrlen = sizeof(nl->sockaddr);
115 r = bind(nl->fd, &nl->sockaddr.sa, addrlen);
120 r = getsockname(nl->fd, &nl->sockaddr.sa, &addrlen);
H A Dsd-netlink.c70 socklen_t addrlen; local
79 addrlen = sizeof(rtnl->sockaddr);
81 r = getsockname(fd, &rtnl->sockaddr.sa, &addrlen);
/systemd/src/udev/
H A Dudev-ctrl.c63 socklen_t addrlen; member in struct:udev_ctrl
108 uctrl->addrlen = offsetof(struct sockaddr_un, sun_path) + strlen(uctrl->saddr.un.sun_path);
120 err = bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen);
123 err = bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen);
253 if (connect(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen) < 0) {
/systemd/src/libudev/
H A Dlibudev-monitor.c62 socklen_t addrlen; member in struct:udev_monitor
155 socklen_t addrlen; local
163 addrlen = sizeof(struct sockaddr_nl);
164 r = getsockname(udev_monitor->sock, &snl.sa, &addrlen);

Completed in 2069 milliseconds