• Home
  • Raw
  • Download

Lines Matching refs:v4

88 			addr->a.v4.sin_family = AF_INET;  in sctp_v4_copy_addrlist()
89 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist()
161 laddr.v4.sin_port = htons(bp->port); in sctp_copy_local_addr_list()
220 struct sockaddr_in *sa = &addr->v4; in sctp_v4_from_skb()
222 addr->v4.sin_family = AF_INET; in sctp_v4_from_skb()
237 addr->v4.sin_family = AF_INET; in sctp_v4_from_sk()
238 addr->v4.sin_port = 0; in sctp_v4_from_sk()
239 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk()
240 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_from_sk()
246 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr()
252 inet_sk(sk)->inet_daddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_daddr()
260 if (ntohs(param->v4.param_hdr.length) < sizeof(struct sctp_ipv4addr_param)) in sctp_v4_from_addr_param()
263 addr->v4.sin_family = AF_INET; in sctp_v4_from_addr_param()
264 addr->v4.sin_port = port; in sctp_v4_from_addr_param()
265 addr->v4.sin_addr.s_addr = param->v4.addr.s_addr; in sctp_v4_from_addr_param()
266 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_from_addr_param()
279 param->v4.param_hdr.type = SCTP_PARAM_IPV4_ADDRESS; in sctp_v4_to_addr_param()
280 param->v4.param_hdr.length = htons(length); in sctp_v4_to_addr_param()
281 param->v4.addr.s_addr = addr->v4.sin_addr.s_addr; in sctp_v4_to_addr_param()
290 saddr->v4.sin_family = AF_INET; in sctp_v4_dst_saddr()
291 saddr->v4.sin_port = port; in sctp_v4_dst_saddr()
292 saddr->v4.sin_addr.s_addr = fl4->saddr; in sctp_v4_dst_saddr()
293 memset(saddr->v4.sin_zero, 0, sizeof(saddr->v4.sin_zero)); in sctp_v4_dst_saddr()
302 if (addr1->v4.sin_port != addr2->v4.sin_port) in sctp_v4_cmp_addr()
304 if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) in sctp_v4_cmp_addr()
313 addr->v4.sin_family = AF_INET; in sctp_v4_inaddr_any()
314 addr->v4.sin_addr.s_addr = htonl(INADDR_ANY); in sctp_v4_inaddr_any()
315 addr->v4.sin_port = port; in sctp_v4_inaddr_any()
316 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_inaddr_any()
322 return htonl(INADDR_ANY) == addr->v4.sin_addr.s_addr; in sctp_v4_is_any()
341 if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin_addr.s_addr)) in sctp_v4_addr_valid()
355 int ret = inet_addr_type(net, addr->v4.sin_addr.s_addr); in sctp_v4_available()
358 if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && in sctp_v4_available()
392 if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
394 } else if (ipv4_is_loopback(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
396 } else if (ipv4_is_linklocal_169(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
398 } else if (ipv4_is_private_10(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
399 ipv4_is_private_172(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
400 ipv4_is_private_192(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
401 ipv4_is_test_198(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
431 fl4->daddr = daddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
432 fl4->fl4_dport = daddr->v4.sin_port; in sctp_v4_get_dst()
440 fl4->saddr = saddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
442 fl4->fl4_sport = saddr->v4.sin_port; in sctp_v4_get_dst()
499 fl4->fl4_sport = laddr->a.v4.sin_port; in sctp_v4_get_dst()
503 daddr->v4.sin_addr.s_addr, in sctp_v4_get_dst()
504 laddr->a.v4.sin_addr.s_addr); in sctp_v4_get_dst()
513 odev = __ip_dev_find(sock_net(sk), laddr->a.v4.sin_addr.s_addr, in sctp_v4_get_dst()
556 saddr->v4.sin_family = AF_INET; in sctp_v4_get_saddr()
557 saddr->v4.sin_addr.s_addr = fl->u.ip4.saddr; in sctp_v4_get_saddr()
594 newinet->inet_daddr = asoc->peer.primary_addr.v4.sin_addr.s_addr; in sctp_v4_create_accept_sk()
610 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_addr_to_user()
617 seq_printf(seq, "%pI4 ", &addr->v4.sin_addr); in sctp_v4_seq_dump_addr()
711 if (addrw->a.v4.sin_addr.s_addr == in sctp_addr_wq_lookup()
712 addr->a.v4.sin_addr.s_addr) in sctp_addr_wq_lookup()
789 addr->a.v4.sin_family = AF_INET; in sctp_inetaddr_event()
790 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_inetaddr_event()
803 addr->a.v4.sin_addr.s_addr == in sctp_inetaddr_event()
910 sinfrom = &asoc->peer.primary_addr.v4; in sctp_inet_event_msgname()
944 if (htonl(INADDR_ANY) == addr1->v4.sin_addr.s_addr || in sctp_inet_cmp_addr()
945 htonl(INADDR_ANY) == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()
947 if (addr1->v4.sin_addr.s_addr == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()