Searched refs:v4 (Results 1 – 13 of 13) sorted by relevance
/net/sctp/ |
D | protocol.c | 153 addr->a.v4.sin_family = AF_INET; in sctp_v4_copy_addrlist() 154 addr->a.v4.sin_port = 0; in sctp_v4_copy_addrlist() 155 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist() 240 port = &addr->v4.sin_port; in sctp_v4_from_skb() 241 addr->v4.sin_family = AF_INET; in sctp_v4_from_skb() 252 memcpy(&addr->v4.sin_addr.s_addr, from, sizeof(struct in_addr)); in sctp_v4_from_skb() 258 addr->v4.sin_family = AF_INET; in sctp_v4_from_sk() 259 addr->v4.sin_port = 0; in sctp_v4_from_sk() 260 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk() 266 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr() [all …]
|
D | ipv6.c | 467 addr->v4.sin_addr.s_addr; in sctp_v6_to_sk_saddr() 480 sk->sk_v6_daddr.s6_addr32[3] = addr->v4.sin_addr.s_addr; in sctp_v6_to_sk_daddr() 532 addr1->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr() 539 addr2->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr() 734 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v6_addr_to_user() 779 addr->v4.sin_family = AF_INET; in sctp_inet6_event_msgname() 780 addr->v4.sin_port = htons(asoc->peer.port); in sctp_inet6_event_msgname() 781 addr->v4.sin_addr = paddr->v4.sin_addr; in sctp_inet6_event_msgname() 810 addr->v4.sin_family = AF_INET; in sctp_inet6_skb_msgname() 811 addr->v4.sin_port = sh->source; in sctp_inet6_skb_msgname() [all …]
|
D | sctp_diag.c | 39 r->id.idiag_src[0] = laddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill() 40 r->id.idiag_dst[0] = paddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill() 442 laddr.v4.sin_port = req->id.idiag_sport; in sctp_diag_dump_one() 443 laddr.v4.sin_addr.s_addr = req->id.idiag_src[0]; in sctp_diag_dump_one() 444 laddr.v4.sin_family = AF_INET; in sctp_diag_dump_one() 446 paddr.v4.sin_port = req->id.idiag_dport; in sctp_diag_dump_one() 447 paddr.v4.sin_addr.s_addr = req->id.idiag_dst[0]; in sctp_diag_dump_one() 448 paddr.v4.sin_family = AF_INET; in sctp_diag_dump_one()
|
D | bind_addr.c | 168 if (!addr->a.v4.sin_port) in sctp_add_bind_addr() 169 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr() 256 af = sctp_get_af_specific(addr->a.v4.sin_family); in sctp_bind_addrs_to_raw() 422 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_find_unmatch_addr()
|
D | input.c | 776 hash = sctp_ep_hashfn(net, ntohs(laddr->v4.sin_port)); in __sctp_rcv_lookup_endpoint() 821 if (x->laddr->v4.sin_port != htons(asoc->base.bind_addr.port)) in sctp_hash_cmp() 845 addr = paddr->v4.sin_addr.s_addr; in sctp_hash_obj() 847 return jhash_3words(addr, ((__u32)paddr->v4.sin_port) << 16 | in sctp_hash_obj() 860 x->laddr->v4.sin_port; in sctp_hash_key() 864 addr = paddr->v4.sin_addr.s_addr; in sctp_hash_key() 866 return jhash_3words(addr, ((__u32)paddr->v4.sin_port) << 16 | in sctp_hash_key()
|
D | socket.c | 375 snum = ntohs(addr->v4.sin_port); in sctp_do_bind() 412 addr->v4.sin_port = htons(snum); in sctp_do_bind() 580 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_send_asconf_add_ip() 613 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_send_asconf_add_ip() 697 if (sa_addr->v4.sin_port && in sctp_bindx_rem() 698 sa_addr->v4.sin_port != htons(bp->port)) { in sctp_bindx_rem() 703 if (!sa_addr->v4.sin_port) in sctp_bindx_rem() 704 sa_addr->v4.sin_port = htons(bp->port); in sctp_bindx_rem() 786 af = sctp_get_af_specific(laddr->v4.sin_family); in sctp_send_asconf_del_ip() 819 asoc->asconf_addr_del_pending->v4.sin_port = in sctp_send_asconf_del_ip() [all …]
|
D | associola.c | 591 port = ntohs(addr->v4.sin_port); in sctp_assoc_add_peer() 982 if ((htons(asoc->base.bind_addr.port) == laddr->v4.sin_port) && in sctp_assoc_is_match() 983 (htons(asoc->peer.port) == paddr->v4.sin_port) && in sctp_assoc_is_match() 1589 if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) && in sctp_assoc_lookup_laddr()
|
D | sm_make_chunk.c | 1778 if (chunk->sctp_hdr->source != bear_cookie->peer_addr.v4.sin_port || in sctp_unpack_cookie() 2764 struct sctp_af *af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf() 2833 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_update_ip() 2861 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_update_ip() 2874 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_update_ip() 2908 struct sctp_af *af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_set_prim() 3128 memcpy(&addr.v4, sctp_source(asconf), sizeof(addr)); in sctp_process_asconf_param()
|
D | endpointola.c | 306 if ((htons(ep->base.bind_addr.port) == laddr->v4.sin_port) && in sctp_endpoint_is_match()
|
D | sm_statefuns.c | 1166 &from_addr.v4.sin_addr.s_addr); in sctp_sf_backbeat_8_3() 1210 struct sctp_af *af = sctp_get_af_specific(ssa->v4.sin_family); in sctp_sf_send_restart_abort()
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 174 struct ip_vs_sync_v4 v4; member 719 s->v4.type = (cp->af == AF_INET6 ? STYPE_F_INET6 : 0); in ip_vs_sync_conn() 720 s->v4.ver_size = htons(len & SVER_MASK); /* Version 0 */ in ip_vs_sync_conn() 721 s->v4.flags = htonl(cp->flags & ~IP_VS_CONN_F_HASHED); in ip_vs_sync_conn() 722 s->v4.state = htons(cp->state); in ip_vs_sync_conn() 723 s->v4.protocol = cp->protocol; in ip_vs_sync_conn() 724 s->v4.cport = cp->cport; in ip_vs_sync_conn() 725 s->v4.vport = cp->vport; in ip_vs_sync_conn() 726 s->v4.dport = cp->dport; in ip_vs_sync_conn() 727 s->v4.fwmark = htonl(cp->fwmark); in ip_vs_sync_conn() [all …]
|
/net/ipv4/ |
D | tcp_probe.c | 63 struct sockaddr_in v4; member 128 tcp_probe_copy_fl_to_si4(inet, p->src.v4, s); in jtcp_rcv_established() 129 tcp_probe_copy_fl_to_si4(inet, p->dst.v4, d); in jtcp_rcv_established()
|
D | tcp_metrics.c | 940 unsigned int *hash, int optional, int v4, int v6) in __parse_nl_addr() argument 944 a = info->attrs[v4]; in __parse_nl_addr()
|