Searched refs:v4 (Results 1 – 15 of 15) sorted by relevance
/net/sctp/ |
D | protocol.c | 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() [all …]
|
D | ipv6.c | 561 addr->v4.sin_addr.s_addr; in sctp_v6_to_sk_saddr() 574 sk->sk_v6_daddr.s6_addr32[3] = addr->v4.sin_addr.s_addr; in sctp_v6_to_sk_daddr() 631 addr1->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr() 638 addr2->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr() 828 memset(addr->v4.sin_zero, 0, sizeof(addr->v4.sin_zero)); in sctp_v6_addr_to_user() 873 addr->v4.sin_family = AF_INET; in sctp_inet6_event_msgname() 874 addr->v4.sin_port = htons(asoc->peer.port); in sctp_inet6_event_msgname() 875 addr->v4.sin_addr = paddr->v4.sin_addr; in sctp_inet6_event_msgname() 904 addr->v4.sin_family = AF_INET; in sctp_inet6_skb_msgname() 905 addr->v4.sin_port = sh->source; in sctp_inet6_skb_msgname() [all …]
|
D | diag.c | 55 r->id.idiag_src[0] = laddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill() 56 r->id.idiag_dst[0] = paddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill() 435 laddr.v4.sin_port = req->id.idiag_sport; in sctp_diag_dump_one() 436 laddr.v4.sin_addr.s_addr = req->id.idiag_src[0]; in sctp_diag_dump_one() 437 laddr.v4.sin_family = AF_INET; in sctp_diag_dump_one() 439 paddr.v4.sin_port = req->id.idiag_dport; in sctp_diag_dump_one() 440 paddr.v4.sin_addr.s_addr = req->id.idiag_dst[0]; in sctp_diag_dump_one() 441 paddr.v4.sin_family = AF_INET; in sctp_diag_dump_one()
|
D | bind_addr.c | 159 if (!addr->a.v4.sin_port) in sctp_add_bind_addr() 160 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr() 247 af = sctp_get_af_specific(addr->a.v4.sin_family); in sctp_bind_addrs_to_raw() 442 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_find_unmatch_addr()
|
D | input.c | 848 addr = (__force __u32)paddr->v4.sin_addr.s_addr; in sctp_hashfn() 850 return jhash_3words(addr, ((__force __u32)paddr->v4.sin_port) << 16 | in sctp_hashfn() 867 lport = laddr->v4.sin_port; in __sctp_rcv_lookup_endpoint() 1011 .lport = laddr->v4.sin_port, in sctp_addrs_lookup_transport() 1347 &laddr->v4.sin_addr, ntohs(laddr->v4.sin_port), in __sctp_rcv_lookup() 1348 &paddr->v4.sin_addr, ntohs(paddr->v4.sin_port)); in __sctp_rcv_lookup()
|
D | socket.c | 391 snum = ntohs(addr->v4.sin_port); in sctp_do_bind() 431 addr->v4.sin_port = htons(snum); in sctp_do_bind() 600 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_send_asconf_add_ip() 633 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_send_asconf_add_ip() 716 if (sa_addr->v4.sin_port && in sctp_bindx_rem() 717 sa_addr->v4.sin_port != htons(bp->port)) { in sctp_bindx_rem() 722 if (!sa_addr->v4.sin_port) in sctp_bindx_rem() 723 sa_addr->v4.sin_port = htons(bp->port); in sctp_bindx_rem() 804 af = sctp_get_af_specific(laddr->v4.sin_family); in sctp_send_asconf_del_ip() 837 asoc->asconf_addr_del_pending->v4.sin_port = in sctp_send_asconf_del_ip() [all …]
|
D | endpointola.c | 253 if ((htons(ep->base.bind_addr.port) == laddr->v4.sin_port) && in sctp_endpoint_is_match()
|
D | sm_make_chunk.c | 1817 if (chunk->sctp_hdr->source != bear_cookie->peer_addr.v4.sin_port || in sctp_unpack_cookie() 2814 struct sctp_af *af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf() 2881 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_update_ip() 2909 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_update_ip() 2922 af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_update_ip() 2951 struct sctp_af *af = sctp_get_af_specific(addr->v4.sin_family); in sctp_make_asconf_set_prim()
|
D | associola.c | 596 port = ntohs(addr->v4.sin_port); in sctp_assoc_add_peer() 1615 if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) && in sctp_assoc_lookup_laddr()
|
D | sm_statefuns.c | 1273 &from_addr.v4.sin_addr.s_addr); in sctp_sf_backbeat_8_3() 1322 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 | 176 struct ip_vs_sync_v4 v4; member 722 s->v4.type = (cp->af == AF_INET6 ? STYPE_F_INET6 : 0); in ip_vs_sync_conn() 723 s->v4.ver_size = htons(len & SVER_MASK); /* Version 0 */ in ip_vs_sync_conn() 724 s->v4.flags = htonl(cp->flags & ~IP_VS_CONN_F_HASHED); in ip_vs_sync_conn() 725 s->v4.state = htons(cp->state); in ip_vs_sync_conn() 726 s->v4.protocol = cp->protocol; in ip_vs_sync_conn() 727 s->v4.cport = cp->cport; in ip_vs_sync_conn() 728 s->v4.vport = cp->vport; in ip_vs_sync_conn() 729 s->v4.dport = cp->dport; in ip_vs_sync_conn() 730 s->v4.fwmark = htonl(cp->fwmark); in ip_vs_sync_conn() [all …]
|
/net/ipv4/ |
D | ip_fragment.c | 89 q->key.v4 = *key; in ip4_frag_init() 185 if (frag_expire_skip_icmp(qp->q.key.v4.user) && in ip_expire() 399 return qp->q.key.v4.user == IP_DEFRAG_LOCAL_DELIVER; in ip_frag_coalesce_ok() 468 net_info_ratelimited("Oversized IP packet from %pI4\n", &qp->q.key.v4.saddr); in ip_frag_reasm() 718 return jhash2((const u32 *)&fq->key.v4, in ip4_obj_hashfn()
|
D | tcp_metrics.c | 796 unsigned int *hash, int optional, int v4, int v6) in __parse_nl_addr() argument 800 a = info->attrs[v4]; in __parse_nl_addr()
|
/net/bpf/ |
D | test_run.c | 970 ctx.v4.daddr = (__force __be32)user_ctx->local_ip4; in bpf_prog_test_run_sk_lookup() 971 ctx.v4.saddr = (__force __be32)user_ctx->remote_ip4; in bpf_prog_test_run_sk_lookup()
|
/net/core/ |
D | filter.c | 10750 v4.saddr, 4, target_size)); in sk_lookup_convert_ctx_access() 10756 v4.daddr, 4, target_size)); in sk_lookup_convert_ctx_access()
|