Lines Matching refs:sin
302 struct sockaddr_in *sin; in ip_recv_error() local
328 sin = (struct sockaddr_in *)msg->msg_name; in ip_recv_error()
329 if (sin) { in ip_recv_error()
330 sin->sin_family = AF_INET; in ip_recv_error()
331 sin->sin_addr.s_addr = *(u32*)(skb->nh.raw + serr->addr_offset); in ip_recv_error()
332 sin->sin_port = serr->port; in ip_recv_error()
333 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); in ip_recv_error()
337 sin = &errhdr.offender; in ip_recv_error()
338 sin->sin_family = AF_UNSPEC; in ip_recv_error()
340 sin->sin_family = AF_INET; in ip_recv_error()
341 sin->sin_addr.s_addr = skb->nh.iph->saddr; in ip_recv_error()
342 sin->sin_port = 0; in ip_recv_error()
343 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); in ip_recv_error()