Searched refs:peer (Results 1 - 25 of 89) sorted by relevance

1234

/net/rxrpc/
H A Dar-peer.c33 * assess the MTU size for the network interface through which this peer is
36 static void rxrpc_assess_MTU_size(struct rxrpc_peer *peer) argument
41 peer->if_mtu = 1500;
44 peer->srx.transport.sin.sin_addr.s_addr, 0,
52 peer->if_mtu = dst_mtu(&rt->dst);
55 _leave(" [if_mtu %u]", peer->if_mtu);
59 * allocate a new peer
64 struct rxrpc_peer *peer; local
68 peer = kzalloc(sizeof(struct rxrpc_peer), gfp);
69 if (peer) {
108 struct rxrpc_peer *peer, *candidate; local
198 struct rxrpc_peer *peer; local
241 rxrpc_put_peer(struct rxrpc_peer *peer) argument
261 struct rxrpc_peer *peer = local
[all...]
H A Dar-error.c33 struct rxrpc_peer *peer; local
55 peer = rxrpc_find_peer(local, addr, port);
56 if (IS_ERR(peer)) {
58 _leave(" [no peer]");
62 trans = rxrpc_find_transport(local, peer);
64 rxrpc_put_peer(peer);
79 if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) {
80 peer->if_mtu = mtu;
86 mtu = peer
[all...]
H A Dar-transport.c35 struct rxrpc_peer *peer,
45 trans->peer = peer;
56 if (peer->srx.transport.family == AF_INET) {
57 switch (peer->srx.transport_type) {
79 struct rxrpc_peer *peer,
89 &peer->srx.transport.sin.sin_addr,
90 ntohs(peer->srx.transport.sin.sin_port));
95 if (trans->local == local && trans->peer == peer)
34 rxrpc_alloc_transport(struct rxrpc_local *local, struct rxrpc_peer *peer, gfp_t gfp) argument
78 rxrpc_get_transport(struct rxrpc_local *local, struct rxrpc_peer *peer, gfp_t gfp) argument
153 rxrpc_find_transport(struct rxrpc_local *local, struct rxrpc_peer *peer) argument
[all...]
H A DMakefile17 ar-peer.o \
H A Dar-proc.c69 &trans->peer->srx.transport.sin.sin_addr,
70 ntohs(trans->peer->srx.transport.sin.sin_port));
152 &trans->peer->srx.transport.sin.sin_addr,
153 ntohs(trans->peer->srx.transport.sin.sin_port));
H A Dar-ack.c333 * - these indicate packets the peer has or has not received, but hasn't yet
602 struct rxrpc_peer *peer; local
617 peer = call->conn->trans->peer;
618 if (mtu < peer->maxdata) {
619 spin_lock_bh(&peer->lock);
620 peer->maxdata = mtu;
621 peer->mtu = mtu + peer->hdrsize;
622 spin_unlock_bh(&peer
[all...]
H A Dar-call.c95 /* Step through the peer address in 16-bit portions for speed */
286 trans->peer->srx.transport.sin.sin_addr.s_addr;
290 trans->peer->srx.transport.sin6.sin6_addr.in6_u.u6_addr8,
300 spin_lock(&call->conn->trans->peer->lock);
301 list_add(&call->error_link, &call->conn->trans->peer->error_targets);
302 spin_unlock(&call->conn->trans->peer->lock);
514 spin_lock(&conn->trans->peer->lock);
515 list_add(&call->error_link, &conn->trans->peer->error_targets);
516 spin_unlock(&conn->trans->peer->lock);
528 conn->trans->peer
[all...]
H A Dar-accept.c70 * accept an incoming call that needs peer, transport and/or connection setting
81 struct rxrpc_peer *peer; local
100 peer = rxrpc_get_peer(srx, GFP_NOIO);
101 if (IS_ERR(peer)) {
102 _debug("no peer");
107 trans = rxrpc_get_transport(local, peer, GFP_NOIO);
108 rxrpc_put_peer(peer);
204 * accept incoming calls that need peer, transport and/or connection setting up
H A Dar-output.c106 * abort a call, sending an ABORT packet to the peer
349 msg.msg_name = &trans->peer->srx.transport.sin;
350 msg.msg_namelen = sizeof(trans->peer->srx.transport.sin);
357 if (skb->len - sizeof(struct rxrpc_header) < trans->peer->maxdata) {
363 * message and update the peer record
372 _leave(" = %d [%u]", ret, trans->peer->maxdata);
394 _leave(" = %d [frag %u]", ret, trans->peer->maxdata);
585 max = call->conn->trans->peer->maxdata;
732 ret = call->conn->trans->peer->net_error;
/net/sctp/
H A Dassociola.c180 asoc->peer.rwnd = SCTP_DEFAULT_MAXWINDOW;
215 INIT_LIST_HEAD(&asoc->peer.transport_addr_list);
228 asoc->peer.sack_needed = 1;
229 asoc->peer.sack_generation = 1;
231 /* Assume that the peer will tell us if he recognizes ASCONF
237 asoc->peer.asconf_capable = 1;
249 /* Assume that peer would support both address types unless we are
252 asoc->peer.ipv4_address = 1;
254 asoc->peer.ipv6_address = 1;
358 sctp_tsnmap_free(&asoc->peer
487 sctp_assoc_rm_peer(struct sctp_association *asoc, struct sctp_transport *peer) argument
581 struct sctp_transport *peer; local
[all...]
H A Dtransport.c56 struct sctp_transport *peer,
61 peer->ipaddr = *addr;
62 peer->af_specific = sctp_get_af_specific(addr->sa.sa_family);
63 memset(&peer->saddr, 0, sizeof(union sctp_addr));
65 peer->sack_generation = 0;
73 peer->rto = msecs_to_jiffies(net->sctp.rto_initial);
75 peer->last_time_heard = ktime_get();
76 peer->last_time_ecne_reduced = jiffies;
78 peer->param_flags = SPP_HB_DISABLE |
83 peer
55 sctp_transport_init(struct net *net, struct sctp_transport *peer, const union sctp_addr *addr, gfp_t gfp) argument
[all...]
H A Dsm_make_chunk.c427 /* Tell peer that we'll do ECN only if peer advertised such cap. */
428 if (asoc->peer.ecn_capable)
431 if (asoc->peer.prsctp_capable)
434 if (asoc->peer.asconf_capable) {
443 if (asoc->peer.auth_capable) {
487 if (asoc->peer.ecn_capable)
497 if (asoc->peer.prsctp_capable)
507 if (asoc->peer.auth_capable) {
531 * It is sent by the initiator of an association to its peer t
3001 struct sctp_transport *peer; local
[all...]
H A Dsm_sideeffect.c93 * its peer that it has reduced its congestion window. This
108 * and then ACK our peer that we we've done so by
158 struct sctp_transport *trans = asoc->peer.last_data_from;
164 asoc->peer.sack_needed = 1;
166 ctsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map);
167 max_tsn_seen = sctp_tsnmap_get_max_tsn_seen(&asoc->peer.tsn_map);
180 asoc->peer.sack_needed = 1;
190 if (!asoc->peer.sack_needed) {
191 asoc->peer.sack_cnt++;
200 if (asoc->peer
242 sctp_generate_t3_rtx_event(unsigned long peer) argument
[all...]
H A Dprobe.c143 sp = asoc->peer.primary_path;
146 asoc->peer.port == port ||
159 ep->base.bind_addr.port, asoc->peer.port,
160 asoc->pathmtu, asoc->peer.rwnd, asoc->unack_data);
162 list_for_each_entry(sp, &asoc->peer.transport_addr_list,
164 if (sp == asoc->peer.primary_path)
H A Doutqueue.c221 list_for_each_entry(transport, &q->asoc->peer.transport_addr_list,
306 * association on each peer will stop accepting new
393 * stop considering it 'outstanding'. Our peer
402 q->asoc->peer.rwnd += sctp_data_size(chunk);
422 q->asoc->peer.rwnd += sctp_data_size(chunk);
477 if (transport == transport->asoc->peer.retran_path)
711 __u16 dport = asoc->peer.port;
712 __u32 vtag = asoc->peer.i.init_tag;
777 new_transport = asoc->peer.active_path;
797 new_transport = asoc->peer
[all...]
H A Dproc.c125 struct sctp_transport *peer; local
132 peer = asoc->peer.primary_path;
133 if (unlikely(peer == NULL)) {
138 primary = &peer->saddr;
163 primary = &assoc->peer.primary_addr;
165 list_for_each_entry_rcu(transport, &assoc->peer.transport_addr_list,
347 assoc->peer.port);
456 list_for_each_entry_rcu(tsp, &assoc->peer.transport_addr_list,
H A Doutput.c206 /* if the peer did not request this chunk to be authenticated,
245 pkt->transport->asoc->peer.sack_generation)
256 asoc->peer.sack_needed = 0;
555 * any problems protocol-wise even if our peer ignores it.
570 if (asoc->peer.last_sent_to != tp)
574 asoc->peer.last_sent_to = tp;
644 * any destination transport address if its peer's rwnd indicates
645 * that the peer has no buffer space (i.e. rwnd is 0, see Section
654 rwnd = asoc->peer.rwnd;
725 u32 rwnd = asoc->peer
[all...]
H A Dauth.c235 /* Make a key vector based on peer's parameters */
240 return sctp_auth_make_key_vector(asoc->peer.peer_random,
241 asoc->peer.peer_chunks,
242 asoc->peer.peer_hmacs,
392 /* If we don't support AUTH, or peer is not capable
395 if (!asoc->ep->auth_enable || !asoc->peer.auth_capable)
531 hmacs = asoc->peer.peer_hmacs;
664 /* Check if peer requested that this chunk is authenticated */
670 if (!asoc->ep->auth_enable || !asoc->peer.auth_capable)
673 return __sctp_auth_cid(chunk, asoc->peer
[all...]
/net/bluetooth/
H A D6lowpan.c72 /* peer addresses in various formats */
94 static inline void peer_add(struct lowpan_dev *dev, struct lowpan_peer *peer) argument
96 list_add(&peer->list, &dev->peers);
100 static inline bool peer_del(struct lowpan_dev *dev, struct lowpan_peer *peer) argument
102 list_del(&peer->list);
107 BT_DBG("last peer");
117 struct lowpan_peer *peer, *tmp; local
122 list_for_each_entry_safe(peer, tmp, &dev->peers, list) {
124 &peer->chan->dst, peer
139 struct lowpan_peer *peer, *tmp; local
152 struct lowpan_peer *peer, *tmp; local
166 struct lowpan_peer *peer, *tmp; local
213 struct lowpan_peer *peer = NULL; local
273 struct lowpan_peer *peer; local
378 struct lowpan_peer *peer; local
434 struct lowpan_peer *peer; local
785 struct lowpan_peer *peer; local
914 struct lowpan_peer *peer; local
1075 struct lowpan_peer *peer; local
1156 struct lowpan_peer *peer, *tmp_peer, *new_peer; local
1251 struct lowpan_peer *peer; local
1292 struct lowpan_peer *peer, *tmp_peer; local
[all...]
/net/mac80211/
H A Dtdls.c31 tdls_dbg(sdata, "TDLS del peer %pM\n", sdata->u.mgd.tdls_peer);
74 struct sk_buff *skb, const u8 *peer,
82 rsp_addr = peer;
84 init_addr = peer;
168 struct sk_buff *skb, const u8 *peer,
182 /* we should have the peer STA if we're already responding */
184 sta = sta_info_get(sdata, peer);
264 /* the peer caps are already intersected with our own */
281 ieee80211_tdls_add_link_ie(sdata, skb, peer, initiator);
286 struct sk_buff *skb, const u8 *peer,
73 ieee80211_tdls_add_link_ie(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, const u8 *peer, bool initiator) argument
167 ieee80211_tdls_add_setup_start_ies(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, const u8 *peer, u8 action_code, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
285 ieee80211_tdls_add_setup_cfm_ies(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, const u8 *peer, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
365 ieee80211_tdls_add_ies(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb, const u8 *peer, u8 action_code, u16 status_code, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
401 ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, struct sk_buff *skb) argument
470 ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, struct sk_buff *skb) argument
506 ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capability, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
635 ieee80211_tdls_mgmt_setup(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capability, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
690 ieee80211_tdls_mgmt_teardown(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capability, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
735 ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capability, bool initiator, const u8 *extra_ies, size_t extra_ies_len) argument
796 ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, const u8 *peer, enum nl80211_tdls_operation oper) argument
872 ieee80211_tdls_oper_request(struct ieee80211_vif *vif, const u8 *peer, enum nl80211_tdls_operation oper, u16 reason_code, gfp_t gfp) argument
[all...]
/net/unix/
H A Ddiag.c40 struct sock *peer; local
43 peer = unix_peer_get(sk);
44 if (peer) {
45 unix_state_lock(peer);
46 ino = sock_i_ino(peer);
47 unix_state_unlock(peer);
48 sock_put(peer);
74 struct sock *req, *peer; local
83 peer = unix_sk(req)->peer;
[all...]
/net/x25/
H A Dx25_forward.c101 struct net_device *peer = NULL; local
112 peer = frwd->dev2;
114 peer = frwd->dev1;
121 if ( (nb = x25_get_neigh(peer)) == NULL)
/net/wireless/
H A Drdev-ops.h544 struct net_device *dev, const u8 *peer,
548 trace_rdev_set_bitrate_mask(&rdev->wiphy, dev, peer, mask);
549 ret = rdev->ops->set_bitrate_mask(&rdev->wiphy, dev, peer, mask);
751 struct net_device *dev, u8 *peer,
757 trace_rdev_tdls_mgmt(&rdev->wiphy, dev, peer, action_code,
760 ret = rdev->ops->tdls_mgmt(&rdev->wiphy, dev, peer, action_code,
768 struct net_device *dev, u8 *peer,
772 trace_rdev_tdls_oper(&rdev->wiphy, dev, peer, oper);
773 ret = rdev->ops->tdls_oper(&rdev->wiphy, dev, peer, oper);
779 struct net_device *dev, const u8 *peer,
543 rdev_set_bitrate_mask(struct cfg80211_registered_device *rdev, struct net_device *dev, const u8 *peer, const struct cfg80211_bitrate_mask *mask) argument
750 rdev_tdls_mgmt(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *peer, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capability, bool initiator, const u8 *buf, size_t len) argument
767 rdev_tdls_oper(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 *peer, enum nl80211_tdls_operation oper) argument
778 rdev_probe_client(struct cfg80211_registered_device *rdev, struct net_device *dev, const u8 *peer, u64 *cookie) argument
919 rdev_add_tx_ts(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 tsid, const u8 *peer, u8 user_prio, u16 admitted_time) argument
936 rdev_del_tx_ts(struct cfg80211_registered_device *rdev, struct net_device *dev, u8 tsid, const u8 *peer) argument
[all...]
H A Dtrace.h1336 const u8 *peer, const struct cfg80211_bitrate_mask *mask),
1337 TP_ARGS(wiphy, netdev, peer, mask),
1341 MAC_ENTRY(peer)
1346 MAC_ASSIGN(peer, peer);
1348 TP_printk(WIPHY_PR_FMT ", " NETDEV_PR_FMT ", peer: " MAC_PR_FMT,
1349 WIPHY_PR_ARG, NETDEV_PR_ARG, MAC_PR_ARG(peer))
1455 u8 *peer, u8 action_code, u8 dialog_token,
1458 TP_ARGS(wiphy, netdev, peer, action_code, dialog_token, status_code,
1463 MAC_ENTRY(peer)
[all...]
/net/ipv4/
H A Droute.c839 struct inet_peer *peer; local
853 peer = inet_getpeer_v4(net->ipv4.peers, ip_hdr(skb)->saddr, 1);
854 if (!peer) {
863 if (time_after(jiffies, peer->rate_last + ip_rt_redirect_silence))
864 peer->rate_tokens = 0;
869 if (peer->rate_tokens >= ip_rt_redirect_number) {
870 peer->rate_last = jiffies;
877 if (peer->rate_tokens == 0 ||
879 (peer->rate_last +
880 (ip_rt_redirect_load << peer
902 struct inet_peer *peer; local
[all...]

Completed in 1602 milliseconds

1234