• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sctp/

Lines Matching defs:peer

389 	/* Tell peer that we'll do ECN only if peer advertised such cap.  */
390 if (asoc->peer.ecn_capable)
393 if (asoc->peer.prsctp_capable)
396 if (asoc->peer.asconf_capable) {
405 if (asoc->peer.auth_capable) {
449 if (asoc->peer.ecn_capable)
459 if (asoc->peer.prsctp_capable)
469 if (asoc->peer.auth_capable) {
493 * It is sent by the initiator of an association to its peer to complete
531 cookie = asoc->peer.cookie;
532 cookie_len = asoc->peer.cookie_len;
602 * its next outbound TCP segment to indicate to its peer that it has
721 struct sctp_tsnmap *map = (struct sctp_tsnmap *)&asoc->peer.tsn_map;
777 retval->transport = asoc->peer.last_data_from;
804 ctsn = sctp_tsnmap_get_ctsn(&asoc->peer.tsn_map);
1185 /* Get the first hmac that the peer told us to use */
1567 cookie->c.prsctp_capable = asoc->peer.prsctp_capable;
1570 cookie->c.adaptation_ind = asoc->peer.adaptation_ind;
1576 /* Copy the peer's init packet. */
1638 * There must be enough room for our cookie and our peer's
1754 /* Set up our peer's port number. */
1755 retval->peer.port = ntohs(chunk->sctp_hdr->source);
1776 retval->peer.prsctp_capable = retval->c.prsctp_capable;
1777 retval->peer.adaptation_ind = retval->c.adaptation_ind;
1872 * send back an indicator to the peer.
1943 !asoc->peer.prsctp_capable)
1944 asoc->peer.prsctp_capable = 1;
1947 /* if the peer reports AUTH, assume that he
1951 asoc->peer.auth_capable = 1;
1956 asoc->peer.asconf_capable = 1;
2021 * to the peer and the association won't be
2076 /* Tell the peer, we won't support this param. */
2252 if (asoc->peer.auth_capable && (!asoc->peer.peer_random ||
2253 !asoc->peer.peer_hmacs))
2254 asoc->peer.auth_capable = 0;
2256 /* In a non-backward compatible mode, if the peer claims
2263 (asoc->peer.asconf_capable && !asoc->peer.auth_capable)) {
2264 asoc->peer.addip_disabled_mask |= (SCTP_PARAM_ADD_IP |
2267 asoc->peer.asconf_capable = 0;
2272 list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) {
2282 asoc->peer.i.init_tag =
2284 asoc->peer.i.a_rwnd =
2286 asoc->peer.i.num_outbound_streams =
2288 asoc->peer.i.num_inbound_streams =
2290 asoc->peer.i.initial_tsn =
2293 /* Apply the upper bounds for output streams based on peer's
2309 asoc->c.peer_vtag = asoc->peer.i.init_tag;
2311 /* Peer Rwnd : Current calculated value of the peer's rwnd. */
2312 asoc->peer.rwnd = asoc->peer.i.a_rwnd;
2315 cookie = asoc->peer.cookie;
2317 asoc->peer.cookie = kmemdup(cookie, asoc->peer.cookie_len, gfp);
2318 if (!asoc->peer.cookie)
2326 list_for_each_entry(transport, &asoc->peer.transport_addr_list,
2328 transport->ssthresh = asoc->peer.i.a_rwnd;
2332 if (!sctp_tsnmap_init(&asoc->peer.tsn_map, SCTP_TSN_MAP_INITIAL,
2333 asoc->peer.i.initial_tsn, gfp))
2370 asoc->peer.addip_serial = asoc->peer.i.initial_tsn - 1;
2375 list_for_each_safe(pos, temp, &asoc->peer.transport_addr_list) {
2428 af->from_addr_param(&addr, param.addr, htons(asoc->peer.port), 0);
2454 * ones are really set by the peer.
2456 asoc->peer.ipv4_address = 0;
2457 asoc->peer.ipv6_address = 0;
2459 /* Assume that peer supports the address family
2463 asoc->peer.ipv6_address = 1;
2465 asoc->peer.ipv4_address = 1;
2475 asoc->peer.ipv4_address = 1;
2480 asoc->peer.ipv6_address = 1;
2484 asoc->peer.hostname_address = 1;
2494 asoc->peer.cookie_len =
2496 asoc->peer.cookie = param.cookie->body;
2508 asoc->peer.ecn_capable = 1;
2512 asoc->peer.adaptation_ind = ntohl(param.aind->adaptation_ind);
2523 htons(asoc->peer.port), 0);
2541 asoc->peer.prsctp_capable = 1;
2551 /* Save peer's random parameter */
2552 asoc->peer.peer_random = kmemdup(param.p,
2554 if (!asoc->peer.peer_random) {
2564 /* Save peer's HMAC list */
2565 asoc->peer.peer_hmacs = kmemdup(param.p,
2567 if (!asoc->peer.peer_hmacs) {
2572 /* Set the default HMAC the peer requested*/
2580 asoc->peer.peer_chunks = kmemdup(param.p,
2582 if (!asoc->peer.peer_chunks)
2883 struct sctp_transport *peer;
2898 if (!asoc->peer.ipv6_address)
2902 if (!asoc->peer.ipv4_address)
2913 af->from_addr_param(&addr, addr_param, htons(asoc->peer.port), 0);
2939 peer = sctp_assoc_add_peer(asoc, &addr, GFP_ATOMIC, SCTP_UNCONFIRMED);
2940 if (!peer)
2944 if (!mod_timer(&peer->hb_timer, sctp_transport_timeout(peer)))
2945 sctp_transport_hold(peer);
2949 * last remaining IP address of a peer endpoint, the receiver
2953 if (asoc->peer.transport_count == 1)
2968 * addresses of the peer except the source address of the
2987 peer = sctp_assoc_lookup_paddr(asoc, &addr);
2988 if (!peer)
2991 sctp_assoc_set_primary(asoc, peer);
3121 asoc->peer.addip_serial++;
3164 list_for_each_entry(transport, &asoc->peer.transport_addr_list,
3177 list_for_each_entry(transport, &asoc->peer.transport_addr_list,
3314 asoc->peer.addip_disabled_mask |=