Home
last modified time | relevance | path

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

/Linux-v5.15/net/unix/
Daf_unix.c230 static int unix_mkname(struct sockaddr_un *sunaddr, int len, unsigned int *hashp) in unix_mkname() argument
234 if (len <= sizeof(short) || len > sizeof(*sunaddr)) in unix_mkname()
236 if (!sunaddr || sunaddr->sun_family != AF_UNIX) in unix_mkname()
238 if (sunaddr->sun_path[0]) { in unix_mkname()
246 ((char *)sunaddr)[len] = 0; in unix_mkname()
247 len = strlen(sunaddr->sun_path)+1+sizeof(short); in unix_mkname()
251 *hashp = unix_hash_fold(csum_partial(sunaddr, len, 0)); in unix_mkname()
1153 struct sockaddr_un *sunaddr = (struct sockaddr_un *)uaddr; in unix_bind() local
1154 char *sun_path = sunaddr->sun_path; in unix_bind()
1160 sunaddr->sun_family != AF_UNIX) in unix_bind()
[all …]