• Home
  • Raw
  • Download

Lines Matching refs:v4

89 			addr->a.v4.sin_family = AF_INET;  in sctp_v4_copy_addrlist()
90 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist()
162 laddr.v4.sin_port = htons(bp->port); in sctp_copy_local_addr_list()
221 struct sockaddr_in *sa = &addr->v4; in sctp_v4_from_skb()
223 addr->v4.sin_family = AF_INET; in sctp_v4_from_skb()
238 addr->v4.sin_family = AF_INET; in sctp_v4_from_sk()
239 addr->v4.sin_port = 0; in sctp_v4_from_sk()
240 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk()
241 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_from_sk()
247 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr()
253 inet_sk(sk)->inet_daddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_daddr()
261 if (ntohs(param->v4.param_hdr.length) < sizeof(struct sctp_ipv4addr_param)) in sctp_v4_from_addr_param()
264 addr->v4.sin_family = AF_INET; in sctp_v4_from_addr_param()
265 addr->v4.sin_port = port; in sctp_v4_from_addr_param()
266 addr->v4.sin_addr.s_addr = param->v4.addr.s_addr; in sctp_v4_from_addr_param()
267 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_from_addr_param()
280 param->v4.param_hdr.type = SCTP_PARAM_IPV4_ADDRESS; in sctp_v4_to_addr_param()
281 param->v4.param_hdr.length = htons(length); in sctp_v4_to_addr_param()
282 param->v4.addr.s_addr = addr->v4.sin_addr.s_addr; in sctp_v4_to_addr_param()
291 saddr->v4.sin_family = AF_INET; in sctp_v4_dst_saddr()
292 saddr->v4.sin_port = port; in sctp_v4_dst_saddr()
293 saddr->v4.sin_addr.s_addr = fl4->saddr; in sctp_v4_dst_saddr()
294 memset(saddr->v4.sin_zero, 0, sizeof(saddr->v4.sin_zero)); in sctp_v4_dst_saddr()
303 if (addr1->v4.sin_port != addr2->v4.sin_port) in sctp_v4_cmp_addr()
305 if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) in sctp_v4_cmp_addr()
314 addr->v4.sin_family = AF_INET; in sctp_v4_inaddr_any()
315 addr->v4.sin_addr.s_addr = htonl(INADDR_ANY); in sctp_v4_inaddr_any()
316 addr->v4.sin_port = port; in sctp_v4_inaddr_any()
317 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_inaddr_any()
323 return htonl(INADDR_ANY) == addr->v4.sin_addr.s_addr; in sctp_v4_is_any()
342 if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin_addr.s_addr)) in sctp_v4_addr_valid()
356 int ret = inet_addr_type(net, addr->v4.sin_addr.s_addr); in sctp_v4_available()
359 if (addr->v4.sin_addr.s_addr != htonl(INADDR_ANY) && in sctp_v4_available()
393 if (IS_IPV4_UNUSABLE_ADDRESS(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
395 } else if (ipv4_is_loopback(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
397 } else if (ipv4_is_linklocal_169(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
399 } else if (ipv4_is_private_10(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
400 ipv4_is_private_172(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
401 ipv4_is_private_192(addr->v4.sin_addr.s_addr) || in sctp_v4_scope()
402 ipv4_is_test_198(addr->v4.sin_addr.s_addr)) { in sctp_v4_scope()
432 fl4->daddr = daddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
433 fl4->fl4_dport = daddr->v4.sin_port; in sctp_v4_get_dst()
441 fl4->saddr = saddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
443 fl4->fl4_sport = saddr->v4.sin_port; in sctp_v4_get_dst()
500 fl4->fl4_sport = laddr->a.v4.sin_port; in sctp_v4_get_dst()
504 daddr->v4.sin_addr.s_addr, in sctp_v4_get_dst()
505 laddr->a.v4.sin_addr.s_addr); in sctp_v4_get_dst()
514 odev = __ip_dev_find(sock_net(sk), laddr->a.v4.sin_addr.s_addr, in sctp_v4_get_dst()
557 saddr->v4.sin_family = AF_INET; in sctp_v4_get_saddr()
558 saddr->v4.sin_addr.s_addr = fl->u.ip4.saddr; in sctp_v4_get_saddr()
595 newinet->inet_daddr = asoc->peer.primary_addr.v4.sin_addr.s_addr; in sctp_v4_create_accept_sk()
611 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v4_addr_to_user()
618 seq_printf(seq, "%pI4 ", &addr->v4.sin_addr); in sctp_v4_seq_dump_addr()
712 if (addrw->a.v4.sin_addr.s_addr == in sctp_addr_wq_lookup()
713 addr->a.v4.sin_addr.s_addr) in sctp_addr_wq_lookup()
790 addr->a.v4.sin_family = AF_INET; in sctp_inetaddr_event()
791 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_inetaddr_event()
804 addr->a.v4.sin_addr.s_addr == in sctp_inetaddr_event()
980 sinfrom = &asoc->peer.primary_addr.v4; in sctp_inet_event_msgname()
1014 if (htonl(INADDR_ANY) == addr1->v4.sin_addr.s_addr || in sctp_inet_cmp_addr()
1015 htonl(INADDR_ANY) == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()
1017 if (addr1->v4.sin_addr.s_addr == addr2->v4.sin_addr.s_addr) in sctp_inet_cmp_addr()