Lines Matching refs:uaddr
3171 static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_bind_spkt() argument
3175 char name[sizeof(uaddr->sa_data) + 1]; in packet_bind_spkt()
3186 memcpy(name, uaddr->sa_data, sizeof(uaddr->sa_data)); in packet_bind_spkt()
3187 name[sizeof(uaddr->sa_data)] = 0; in packet_bind_spkt()
3192 static int packet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in packet_bind() argument
3194 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; in packet_bind()
3444 static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_getname_spkt() argument
3453 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3454 memset(uaddr->sa_data, 0, sizeof(uaddr->sa_data)); in packet_getname_spkt()
3458 strlcpy(uaddr->sa_data, dev->name, sizeof(uaddr->sa_data)); in packet_getname_spkt()
3461 return sizeof(*uaddr); in packet_getname_spkt()
3464 static int packet_getname(struct socket *sock, struct sockaddr *uaddr, in packet_getname() argument
3470 DECLARE_SOCKADDR(struct sockaddr_ll *, sll, uaddr); in packet_getname()