/lxc/src/lxc/ |
H A D | af_unix.c | 41 struct sockaddr_un addr; local 51 memset(&addr, 0, sizeof(addr)); 56 addr.sun_family = AF_UNIX; 60 if (len >= sizeof(addr.sun_path)) { 65 /* addr.sun_path[0] has already been set to 0 by memset() */ 66 strncpy(&addr.sun_path[1], &path[1], strlen(&path[1])); 68 if (bind(fd, (struct sockaddr *)&addr, offsetof(struct sockaddr_un, sun_path) + len + 1)) { 87 struct sockaddr_un addr; local 88 socklen_t addrlen = sizeof(addr); 103 struct sockaddr_un addr; local [all...] |
H A D | monitor.c | 165 int lxc_monitor_sock_name(const char *lxcpath, struct sockaddr_un *addr) { argument 171 /* addr.sun_path is only 108 bytes, so we hash the full name and 174 memset(addr, 0, sizeof(*addr)); 175 addr->sun_family = AF_UNIX; 186 /* Note: snprintf() will \0-terminate addr->sun_path on the 106th byte 191 len = sizeof(addr->sun_path) - 1; 193 ret = snprintf(addr->sun_path, len, "@lxc/%016" PRIx64 "/%s", hash, lxcpath); 200 addr->sun_path[0] = '\0'; 201 INFO("using monitor socket name \"%s\" (length of socket name %zu must be <= %zu)", &addr 208 struct sockaddr_un addr; local [all...] |
H A D | lxc_monitord.c | 233 struct sockaddr_un addr; local 236 if (lxc_monitor_sock_name(mon->lxcpath, &addr) < 0) 239 fd = lxc_abstract_unix_open(addr.sun_path, SOCK_STREAM, O_TRUNC); 251 struct sockaddr_un addr; local 253 if (lxc_monitor_sock_name(mon->lxcpath, &addr) < 0) 255 if (addr.sun_path[0]) 256 unlink(addr.sun_path);
|
H A D | network.c | 1030 void *addr, void *bcast, void *acast, int prefix) 1067 if (nla_put_buffer(nlmsg, IFA_LOCAL, addr, addrlen)) 1070 if (nla_put_buffer(nlmsg, IFA_ADDRESS, addr, addrlen)) 1091 int lxc_ipv6_addr_add(int ifindex, struct in6_addr *addr, argument 1095 return ip_addr_add(AF_INET6, ifindex, addr, mcast, acast, prefix); 1098 int lxc_ipv4_addr_add(int ifindex, struct in_addr *addr, argument 1101 return ip_addr_add(AF_INET, ifindex, addr, bcast, NULL, prefix); 1029 ip_addr_add(int family, int ifindex, void *addr, void *bcast, void *acast, int prefix) argument
|
H A D | conf.h | 63 struct in_addr addr; member in struct:lxc_inetdev 69 struct in_addr addr; member in struct:lxc_route 80 struct in6_addr addr; member in struct:lxc_inet6dev 87 struct in6_addr addr; member in struct:lxc_route6
|
H A D | confile.c | 460 static int config_ip_prefix(struct in_addr *addr) argument 462 if (IN_CLASSA(addr->s_addr)) 464 if (IN_CLASSB(addr->s_addr)) 466 if (IN_CLASSC(addr->s_addr)) 791 char *cursor, *slash, *addr = NULL, *bcast = NULL, *prefix = NULL; local 817 addr = strdup(value); 818 if (!addr) { 825 cursor = strstr(addr, " "); 831 slash = strstr(addr, "/"); 837 if (!inet_pton(AF_INET, addr, [all...] |
H A D | utils.c | 1874 void *lxc_strmmap(void *addr, size_t length, int prot, int flags, int fd, argument 1881 tmp = mmap(addr, length + 1, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 1896 int lxc_strmunmap(void *addr, size_t length) argument 1898 return munmap(addr, length + 1);
|
H A D | lxccontainer.c | 3979 unsigned char *addr; local 3982 addr = (void *)opts + sizeof(*opts); 3984 for (; addr < end; addr++) { 3985 if (*addr) {
|