/net/llc/ |
D | llc_sap.c | 235 ev->saddr.lsap = sap->laddr.lsap; in llc_build_and_send_test_pkt() 261 ev->saddr.lsap = sap->laddr.lsap; in llc_build_and_send_xid_pkt() 294 const struct llc_addr *laddr, in llc_dgram_match() argument 300 llc->laddr.lsap == laddr->lsap && in llc_dgram_match() 301 ether_addr_equal(llc->laddr.mac, laddr->mac); in llc_dgram_match() 313 const struct llc_addr *laddr) in llc_lookup_dgram() argument 317 int slot = llc_sk_laddr_hashfn(sap, laddr); in llc_lookup_dgram() 323 if (llc_dgram_match(sap, laddr, rc)) { in llc_lookup_dgram() 328 !llc_dgram_match(sap, laddr, rc))) { in llc_lookup_dgram() 349 const struct llc_addr *laddr, in llc_mcast_match() argument [all …]
|
D | llc_conn.c | 455 const struct llc_addr *laddr, in llc_estab_match() argument 460 return llc->laddr.lsap == laddr->lsap && in llc_estab_match() 462 ether_addr_equal(llc->laddr.mac, laddr->mac) && in llc_estab_match() 479 struct llc_addr *laddr) in __llc_lookup_established() argument 483 int slot = llc_sk_laddr_hashfn(sap, laddr); in __llc_lookup_established() 489 if (llc_estab_match(sap, daddr, laddr, rc)) { in __llc_lookup_established() 494 !llc_estab_match(sap, daddr, laddr, rc))) { in __llc_lookup_established() 516 struct llc_addr *laddr) in llc_lookup_established() argument 521 sk = __llc_lookup_established(sap, daddr, laddr); in llc_lookup_established() 527 const struct llc_addr *laddr, in llc_listener_match() argument [all …]
|
D | llc_if.c | 86 struct llc_addr laddr, daddr; in llc_establish_connection() local 91 laddr.lsap = llc->sap->laddr.lsap; in llc_establish_connection() 94 memcpy(laddr.mac, lmac, sizeof(laddr.mac)); in llc_establish_connection() 95 existing = llc_lookup_established(llc->sap, &daddr, &laddr); in llc_establish_connection()
|
D | llc_c_ac.c | 207 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_disc_cmd_p_set_x() 234 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_p() 258 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_1() 291 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_frmr_rsp_f_set_x() 318 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_frmr_rsp_f_set_0() 348 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_frmr_rsp_f_set_p() 370 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_cmd_p_set_1() 388 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_cmd_p_set_0() 406 llc_pdu_header_init(skb, LLC_PDU_TYPE_I, sap->laddr.lsap, in llc_conn_ac_send_i_xxx_x_set_0() 439 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() [all …]
|
D | af_llc.c | 209 llc->laddr.lsap, llc->daddr.lsap); in llc_ui_release() 298 llc->laddr.lsap = llc_ui_autoport(); in llc_ui_autobind() 299 if (!llc->laddr.lsap) in llc_ui_autobind() 302 sap = llc_sap_open(llc->laddr.lsap, NULL); in llc_ui_autobind() 305 memcpy(llc->laddr.mac, llc->dev->dev_addr, IFHWADDRLEN); in llc_ui_autobind() 383 struct llc_addr laddr, daddr; in llc_ui_bind() local 386 memset(&laddr, 0, sizeof(laddr)); in llc_ui_bind() 392 memcpy(laddr.mac, addr->sllc_mac, IFHWADDRLEN); in llc_ui_bind() 393 laddr.lsap = addr->sllc_sap; in llc_ui_bind() 395 ask = llc_lookup_established(sap, &daddr, &laddr); in llc_ui_bind() [all …]
|
D | llc_core.c | 54 if (sap->laddr.lsap == sap_value) in __llc_sap_find() 105 sap->laddr.lsap = lsap; in llc_sap_open()
|
D | llc_s_ac.c | 114 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap, in llc_sap_action_send_xid_r() 165 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, dsap, in llc_sap_action_send_test_r()
|
D | llc_proc.c | 99 sk = laddr_hash_next(sap, llc_sk_laddr_hashfn(sap, &llc->laddr)); in llc_seq_next() 148 seq_printf(seq, "@%02X ", llc->sap->laddr.lsap); in llc_seq_socket_show()
|
D | llc_output.c | 69 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_build_and_send_ui_pkt()
|
/net/netfilter/ |
D | xt_TPROXY.c | 67 __be32 laddr; in tproxy_laddr4() local 72 laddr = 0; in tproxy_laddr4() 76 laddr = ifa->ifa_local; in tproxy_laddr4() 81 return laddr ? laddr : daddr; in tproxy_laddr4() 254 __be32 laddr, __be16 lport, struct sock *sk) in tproxy_handle_time_wait4() argument 271 iph->saddr, laddr ? laddr : iph->daddr, in tproxy_handle_time_wait4() 293 tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport, in tproxy_tg4() argument 313 laddr = tproxy_laddr4(skb, laddr, iph->daddr); in tproxy_tg4() 320 sk = tproxy_handle_time_wait4(net, skb, laddr, lport, sk); in tproxy_tg4() 325 iph->saddr, laddr, in tproxy_tg4() [all …]
|
D | xt_socket.c | 42 __be32 *laddr, in extract_icmp4_fields() argument 87 *laddr = inside_iph->saddr; in extract_icmp4_fields() 275 const struct in6_addr **laddr, in extract_icmp6_fields() argument 319 *laddr = &inside_iph->saddr; in extract_icmp6_fields()
|
/net/sctp/ |
D | bind_addr.c | 320 struct sctp_sockaddr_entry *laddr; in sctp_bind_addr_match() local 324 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_match() 325 if (!laddr->valid) in sctp_bind_addr_match() 327 if (opt->pf->cmp_addr(&laddr->a, addr, opt)) { in sctp_bind_addr_match() 345 struct sctp_sockaddr_entry *laddr; in sctp_bind_addr_conflict() local 361 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_conflict() 362 if (!laddr->valid) in sctp_bind_addr_conflict() 365 conflict = sp->pf->cmp_addr(&laddr->a, addr, sp); in sctp_bind_addr_conflict() 378 struct sctp_sockaddr_entry *laddr; in sctp_bind_addr_state() local 387 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_state() [all …]
|
D | input.c | 65 const union sctp_addr *laddr, 68 const union sctp_addr *laddr); 763 const union sctp_addr *laddr) in __sctp_rcv_lookup_endpoint() argument 770 hash = sctp_ep_hashfn(net, ntohs(laddr->v4.sin_port)); in __sctp_rcv_lookup_endpoint() 775 if (sctp_endpoint_is_match(ep, net, laddr)) in __sctp_rcv_lookup_endpoint() 889 const union sctp_addr *laddr, in sctp_lookup_association() argument 896 asoc = __sctp_lookup_association(net, laddr, paddr, transportp); in sctp_lookup_association() 904 const union sctp_addr *laddr, in sctp_has_association() argument 910 if ((asoc = sctp_lookup_association(net, laddr, paddr, &transport))) { in sctp_has_association() 938 const union sctp_addr *laddr, struct sctp_transport **transportp) in __sctp_rcv_init_lookup() argument [all …]
|
D | ipv6.c | 241 struct sctp_sockaddr_entry *laddr; in sctp_v6_get_dst() local 289 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst() 290 if (!laddr->valid || laddr->state == SCTP_ADDR_DEL || in sctp_v6_get_dst() 291 (laddr->state != SCTP_ADDR_SRC && in sctp_v6_get_dst() 296 if ((laddr->a.sa.sa_family == AF_INET6) && in sctp_v6_get_dst() 297 (sctp_v6_cmp_addr(&dst_saddr, &laddr->a))) { in sctp_v6_get_dst() 316 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst() 320 if (!laddr->valid || in sctp_v6_get_dst() 321 laddr->state != SCTP_ADDR_SRC || in sctp_v6_get_dst() 322 laddr->a.sa.sa_family != AF_INET6 || in sctp_v6_get_dst() [all …]
|
D | protocol.c | 441 struct sctp_sockaddr_entry *laddr; in sctp_v4_get_dst() local 484 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst() 485 if (!laddr->valid || (laddr->state == SCTP_ADDR_DEL) || in sctp_v4_get_dst() 486 (laddr->state != SCTP_ADDR_SRC && in sctp_v4_get_dst() 489 if (sctp_v4_cmp_addr(&dst_saddr, &laddr->a)) in sctp_v4_get_dst() 505 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst() 508 if (!laddr->valid) in sctp_v4_get_dst() 510 if (laddr->state != SCTP_ADDR_SRC || in sctp_v4_get_dst() 511 AF_INET != laddr->a.sa.sa_family) in sctp_v4_get_dst() 514 fl4->fl4_sport = laddr->a.v4.sin_port; in sctp_v4_get_dst() [all …]
|
D | proc.c | 124 struct sctp_sockaddr_entry *laddr; in sctp_seq_dump_local_addrs() local 142 list_for_each_entry_rcu(laddr, &epb->bind_addr.address_list, list) { in sctp_seq_dump_local_addrs() 143 if (!laddr->valid) in sctp_seq_dump_local_addrs() 146 addr = &laddr->a; in sctp_seq_dump_local_addrs()
|
D | endpointola.c | 302 const union sctp_addr *laddr) in sctp_endpoint_is_match() argument 306 if ((htons(ep->base.bind_addr.port) == laddr->v4.sin_port) && in sctp_endpoint_is_match() 308 if (sctp_bind_addr_match(&ep->base.bind_addr, laddr, in sctp_endpoint_is_match()
|
/net/rds/ |
D | connection.c | 52 static struct hlist_head *rds_conn_bucket(__be32 laddr, __be32 faddr) in rds_conn_bucket() argument 61 hash = __inet_ehashfn(be32_to_cpu(laddr), 0, in rds_conn_bucket() 75 __be32 laddr, __be32 faddr, in rds_conn_lookup() argument 81 if (conn->c_faddr == faddr && conn->c_laddr == laddr && in rds_conn_lookup() 88 &laddr, &faddr); in rds_conn_lookup() 122 __be32 laddr, __be32 faddr, in __rds_conn_create() argument 127 struct hlist_head *head = rds_conn_bucket(laddr, faddr); in __rds_conn_create() 133 conn = rds_conn_lookup(net, head, laddr, faddr, trans); in __rds_conn_create() 135 laddr == faddr && !is_outgoing) { in __rds_conn_create() 154 conn->c_laddr = laddr; in __rds_conn_create() [all …]
|
/net/ipv6/ |
D | ip6_tunnel.c | 148 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6_tnl_lookup() 157 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6_tnl_lookup() 166 ipv6_addr_any(&t->parms.laddr) && in ip6_tnl_lookup() 193 const struct in6_addr *local = &p->laddr; in ip6_tnl_bucket() 338 const struct in6_addr *local = &p->laddr; in ip6_tnl_locate() 346 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6_tnl_locate() 721 const struct in6_addr *laddr, in ip6_tnl_get_cap() argument 725 int ltype = ipv6_addr_type(laddr); in ip6_tnl_get_cap() 746 const struct in6_addr *laddr, in ip6_tnl_rcv_ctl() argument 755 (ip6_tnl_get_cap(t, laddr, raddr) & IP6_TNL_F_CAP_RCV))) { in ip6_tnl_rcv_ctl() [all …]
|
D | ip6_vti.c | 101 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_tnl_lookup() 110 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_tnl_lookup() 143 const struct in6_addr *local = &p->laddr; in vti6_tnl_bucket() 262 const struct in6_addr *local = &p->laddr; in vti6_locate() 270 if (ipv6_addr_equal(local, &t->parms.laddr) && in vti6_locate() 480 if (!vti6_state_check(x, &t->parms.raddr, &t->parms.laddr)) in vti6_xmit() 647 memcpy(dev->dev_addr, &p->laddr, sizeof(struct in6_addr)); in vti6_link_config() 652 p->flags |= ip6_tnl_get_cap(t, &p->laddr, &p->raddr); in vti6_link_config() 671 t->parms.laddr = p->laddr; in vti6_tnl_change() 699 p->laddr = u->laddr; in vti6_parm_from_user() [all …]
|
D | ip6_gre.c | 131 if (!ipv6_addr_equal(local, &t->parms.laddr) || in ip6gre_tunnel_lookup() 180 if ((!ipv6_addr_equal(local, &t->parms.laddr) && in ip6gre_tunnel_lookup() 242 const struct in6_addr *local = &p->laddr; in __ip6gre_bucket() 290 const struct in6_addr *local = &parms->laddr; in ip6gre_tunnel_find() 300 if (ipv6_addr_equal(local, &t->parms.laddr) && in ip6gre_tunnel_find() 916 if (!ip6_tnl_xmit_ctl(t, &t->parms.laddr, &t->parms.raddr)) in ip6gre_tunnel_xmit() 951 memcpy(dev->dev_addr, &p->laddr, sizeof(struct in6_addr)); in ip6gre_tnl_link_config() 956 fl6->saddr = p->laddr; in ip6gre_tnl_link_config() 967 p->flags |= ip6_tnl_get_cap(t, &p->laddr, &p->raddr); in ip6gre_tnl_link_config() 991 &p->raddr, &p->laddr, in ip6gre_tnl_link_config() [all …]
|
D | inet6_hashtables.c | 27 const struct in6_addr *laddr, const u16 lport, in inet6_ehashfn() argument 38 lhash = (__force u32)laddr->s6_addr32[3]; in inet6_ehashfn()
|
/net/l2tp/ |
D | l2tp_ip.c | 50 static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id) in __l2tp_ip_bind_lookup() argument 63 !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && in __l2tp_ip_bind_lookup() 73 static inline struct sock *l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_i… in l2tp_ip_bind_lookup() argument 75 struct sock *sk = __l2tp_ip_bind_lookup(net, laddr, dif, tunnel_id); in l2tp_ip_bind_lookup()
|
D | l2tp_ip6.c | 59 struct in6_addr *laddr, in __l2tp_ip6_bind_lookup() argument 73 !(addr && ipv6_addr_equal(addr, laddr)) && in __l2tp_ip6_bind_lookup() 84 struct in6_addr *laddr, in l2tp_ip6_bind_lookup() argument 87 struct sock *sk = __l2tp_ip6_bind_lookup(net, laddr, dif, tunnel_id); in l2tp_ip6_bind_lookup()
|
/net/802/ |
D | p8022.c | 31 llc_build_and_send_ui_pkt(dl->sap, skb, dest, dl->sap->laddr.lsap); in p8022_request()
|