Lines Matching refs:len
42 get_sockopt(int fd, int name, void *val, socklen_t *len)
44 rc = getsockopt(fd, SOL_NETLINK, name, val, len);
50 set_sockopt(int fd, int name, void *val, socklen_t len)
52 rc = setsockopt(fd, SOL_NETLINK, name, val, len);
100 TAIL_ALLOC_OBJECT_CONST_PTR(socklen_t, len);
111 *len = sizeof(*val);
112 get_sockopt(fd, names[i].val, val, len);
118 printf(", [%d]) = %s\n", *len, errstr);
121 *len = sizeof(*val) + 1;
122 get_sockopt(fd, names[i].val, val, len);
129 if ((int) sizeof(*val) + 1 != *len)
130 printf("->%d", *len);
134 *len = 0;
135 get_sockopt(fd, names[i].val, NULL, len);
138 if (*len)
139 printf("->%d", *len);
146 *len = sizeof(*val) - 1;
147 get_sockopt(fd, names[i].val, val, len);
150 if ((int) sizeof(*val) - 1 != *len)
151 printf("->%d", *len);
156 *len = sizeof(*val) - 1;
157 get_sockopt(fd, names[i].val, efault, len);
165 if ((int) sizeof(*val) - 1 != *len)
166 printf("->%d", *len);
172 *len = sizeof(*val);
173 get_sockopt(fd, names[i].val, efault, len);
175 fd, names[i].str, efault, *len, errstr);
178 get_sockopt(fd, names[i].val, val, len + 1);
180 fd, names[i].str, val, len + 1, errstr);