Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/decnet/
Daf_decnet.c281 int dn_sockaddr2username(struct sockaddr_dn *sdn, unsigned char *buf, unsigned char type) in dn_sockaddr2username() argument
289 *buf++ = sdn->sdn_objnum; in dn_sockaddr2username()
293 *buf++ = le16_to_cpu(sdn->sdn_objnamel); in dn_sockaddr2username()
294 memcpy(buf, sdn->sdn_objname, le16_to_cpu(sdn->sdn_objnamel)); in dn_sockaddr2username()
295 len = 3 + le16_to_cpu(sdn->sdn_objnamel); in dn_sockaddr2username()
300 *buf++ = le16_to_cpu(sdn->sdn_objnamel); in dn_sockaddr2username()
301 memcpy(buf, sdn->sdn_objname, le16_to_cpu(sdn->sdn_objnamel)); in dn_sockaddr2username()
302 len = 7 + le16_to_cpu(sdn->sdn_objnamel); in dn_sockaddr2username()
316 int dn_username2sockaddr(unsigned char *data, int len, struct sockaddr_dn *sdn, unsigned char *fmt) in dn_username2sockaddr() argument
322 sdn->sdn_objnum = 0; in dn_username2sockaddr()
[all …]
Ddn_dev.c416 struct sockaddr_dn *sdn = (struct sockaddr_dn *)&ifr->ifr_addr; in dn_dev_ioctl() local
435 if (sdn->sdn_family != AF_DECnet) in dn_dev_ioctl()
464 *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; in dn_dev_ioctl()
477 if (ifa->ifa_local == dn_saddr2dn(sdn)) in dn_dev_ioctl()
482 ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn); in dn_dev_ioctl()