Lines Matching refs:v4

189 			addr->a.v4.sin_family = AF_INET;  in sctp_v4_copy_addrlist()
190 addr->a.v4.sin_port = 0; in sctp_v4_copy_addrlist()
191 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist()
282 port = &addr->v4.sin_port; in sctp_v4_from_skb()
283 addr->v4.sin_family = AF_INET; in sctp_v4_from_skb()
293 memcpy(&addr->v4.sin_addr.s_addr, from, sizeof(struct in_addr)); in sctp_v4_from_skb()
299 addr->v4.sin_family = AF_INET; in sctp_v4_from_sk()
300 addr->v4.sin_port = 0; in sctp_v4_from_sk()
301 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk()
307 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr()
313 inet_sk(sk)->inet_daddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_daddr()
321 addr->v4.sin_family = AF_INET; in sctp_v4_from_addr_param()
322 addr->v4.sin_port = port; in sctp_v4_from_addr_param()
323 addr->v4.sin_addr.s_addr = param->v4.addr.s_addr; in sctp_v4_from_addr_param()
334 param->v4.param_hdr.type = SCTP_PARAM_IPV4_ADDRESS; in sctp_v4_to_addr_param()
335 param->v4.param_hdr.length = htons(length); in sctp_v4_to_addr_param()
336 param->v4.addr.s_addr = addr->v4.sin_addr.s_addr; in sctp_v4_to_addr_param()
346 saddr->v4.sin_family = AF_INET; in sctp_v4_dst_saddr()
347 saddr->v4.sin_port = port; in sctp_v4_dst_saddr()
348 saddr->v4.sin_addr.s_addr = rt->rt_src; in sctp_v4_dst_saddr()
357 if (addr1->v4.sin_port != addr2->v4.sin_port) in sctp_v4_cmp_addr()
359 if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) in sctp_v4_cmp_addr()
368 addr->v4.sin_family = AF_INET; in sctp_v4_inaddr_any()
369 addr->v4.sin_addr.s_addr = htonl(INADDR_ANY); in sctp_v4_inaddr_any()
370 addr->v4.sin_port = port; in sctp_v4_inaddr_any()
376 return htonl(INADDR_ANY) == addr->v4.sin_addr.s_addr; in sctp_v4_is_any()
395 if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin_addr.s_addr)) in sctp_v4_addr_valid()
408 int ret = inet_addr_type(&init_net, addr->v4.sin_addr.s_addr); in sctp_v4_available()
411 if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && in sctp_v4_available()
445 if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
447 } else if (ipv4_is_loopback(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
449 } else if (ipv4_is_linklocal_169(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
451 } else if (ipv4_is_private_10(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
452 ipv4_is_private_172(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
453 ipv4_is_private_192(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
478 fl4.daddr = daddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
479 fl4.fl4_dport = daddr->v4.sin_port; in sctp_v4_get_dst()
487 fl4.saddr = saddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
488 fl4.fl4_sport = saddr->v4.sin_port; in sctp_v4_get_dst()
536 fl4.saddr = laddr->a.v4.sin_addr.s_addr; in sctp_v4_get_dst()
537 fl4.fl4_sport = laddr->a.v4.sin_port; in sctp_v4_get_dst()
573 saddr->v4.sin_family = AF_INET; in sctp_v4_get_saddr()
574 saddr->v4.sin_port = htons(asoc->base.bind_addr.port); in sctp_v4_get_saddr()
575 saddr->v4.sin_addr.s_addr = rt->rt_src; in sctp_v4_get_saddr()
609 newinet->inet_daddr = asoc->peer.primary_addr.v4.sin_addr.s_addr; in sctp_v4_create_accept_sk()
631 seq_printf(seq, "%pI4 ", &addr->v4.sin_addr); in sctp_v4_seq_dump_addr()
660 addr->a.v4.sin_family = AF_INET; in sctp_inetaddr_event()
661 addr->a.v4.sin_port = 0; in sctp_inetaddr_event()
662 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_inetaddr_event()
674 addr->a.v4.sin_addr.s_addr == in sctp_inetaddr_event()
780 sinfrom = &asoc->peer.primary_addr.v4; in sctp_inet_event_msgname()
814 if (htonl(INADDR_ANY) == addr1->v4.sin_addr.s_addr || in sctp_inet_cmp_addr()
815 htonl(INADDR_ANY) == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()
817 if (addr1->v4.sin_addr.s_addr == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()