Lines Matching defs:to

19  *    contributors may be used to endorse or promote products derived
1911 /* ok to use deprecated addresses? */
2267 /* ok to use deprecated addresses? no lets not! */
2288 * theory be done slicker (it used to be), but this is
2289 * straightforward and easier to validate :-)
2328 * allow for NAT which means its ok to have a global dest and a
2370 /* ok to use deprecated addresses? */
2375 /* Special case, linklocal to loop */
2383 * theory be done slicker (it used to be), but this is
2384 * straightforward and easier to validate :-)
2507 * ok, now we now need to find one on the list of the addresses. We
2685 * bound to pick one at first preferable then secondly acceptable.
2813 * don't allow fe80::1 to be a src on loop ::1, we
2814 * don't list it to the peer so we will get an
2823 * link-local <-> link-local must belong to the same
2835 * Check if the IPv6 address matches to next-hop. In the
2838 * addresses. We should use one corresponding to the
2965 * we use it. Otherwise we next try to get an address on the
2966 * interface, which we should be able to do (unless non_asoc_addr_ok
3010 * may vary from call to call due to addresses being deprecated
3025 /* if sctp_ifa is NULL something changed??, fall to plan b. */
3036 * no preferred fall through to plan_c.
3060 SCTPDBG(SCTP_DEBUG_OUTPUT2, "No preferred -- skipping to next\n");
3069 * use, this may vary from call to call due to addresses
3098 SCTPDBG(SCTP_DEBUG_OUTPUT2, "Jump to Plan D - no emit_ifn\n");
3303 struct sockaddr_in *to = (struct sockaddr_in *)&ro->ro_dst;
3318 * Do we need to pay attention to scope. We can have a private address
3319 * or a global address we are sourcing or sending to. So if we draw
3349 * And then we add to that what happens if there are multiple addresses
3350 * assigned to an interface. Remember the ifa on a ifn is a linked
3353 * address? Do we then use context of destination to sort out which
3363 * - if there are more than one, then we need to worry about scope P
3365 * Then as a secondary fall back to mixed types G->P being a last
3367 * - The above all works for bound all, but bound specific we need to
3369 * addresses. If the bound set is NOT assigned to the interface then
3374 * Need a route to cache.
3388 if (IN4_ISLOOPBACK_ADDRESS(&to->sin_addr)) {
3394 } else if ((IN4_ISPRIVATE_ADDRESS(&to->sin_addr))) {
3955 struct sockaddr *to,
3972 /* nofragment_flag to tell if IP_DF should be set (IPv4 only) */
4025 switch (to->sa_family) {
4090 memcpy(&ro->ro_dst, to, to->sa_len);
4095 ip->ip_dst.s_addr = ((struct sockaddr_in *)to)->sin_addr.s_addr;
4097 /* call the routine to select the src address */
4113 /* No route to host */
4177 * src addr selection failed to find a route
4197 /* failed to prepend data, give up */
4326 sin6 = (struct sockaddr_in6 *)to;
4375 * to a limited degree the kame src-addr-sel, since
4409 SCTPDBG(SCTP_DEBUG_OUTPUT3, "V6:No route to host\n");
4450 * src addr selection failed to find a route
4508 /* Copy to be sure something bad is not happening */
4529 /* failed to prepend data, give up */
4612 ((struct sockaddr *)to)->sa_family);
4634 /* INIT's always go to the primary (and usually ONLY address) */
4642 /* we confirm any address we send an INIT to */
4646 /* we confirm any address we send an INIT to */
4653 * special hook, if we are sending to link local it will not
4883 * this is a quick hack to get the address stuff teased apart.
4926 * being equal to the beginning of the params i.e. (iphlen +
4927 * sizeof(struct sctp_init_msg) parse through the parameters to the
4931 * UNRECOGNIZED_PARAMETER errors. If the flags indicate to stop
4932 * processing this chunk stop, and set *abort_processing to 1.
4934 * By having param_offset be pre-set to where parameters begin it is
4972 * is the generic routine processor's can call to get back
4973 * an operr.. to either incorporate (init-ack) or send.
5153 /* Ok need to try to get an mbuf */
5275 * Given a INIT chunk, look through the parameters to verify that there
5442 /* ok, sa_touse points to one to check */
5494 * a pullup to include IPv6/4header, SCTP header and initial part of INIT
5526 struct sockaddr *to;
5607 * zero out the cookie to avoid putting uninitialized memory on the
5636 * If we wanted to honor cookie life extensions, we would add to
5653 to = src;
5705 * source to be added implicitly. We
5769 to = (struct sockaddr *)&net->ro._l_addr;
5770 switch (to->sa_family) {
5773 sin = (struct sockaddr_in *)to;
5806 sin6 = (struct sockaddr_in6 *)to;
5878 /* get a TSN to use too */
5890 /* get a TSN to use too */
5896 /* save away my tag to */
6089 * is a quick hack to get the address stuff teased apart.
6138 /* Now append the cookie to the end and update the space/size */
6157 * Time to sign the cookie, we don't sign over the cookie signature
6165 * We sifa 0 here to NOT set IP_DF if its IPv4, we ignore the return
6186 if ((error = sctp_lowlevel_chunk_output(inp, NULL, NULL, to, m, 0, NULL, 0, 0,
6234 * Lower numbers equates to higher
6237 * we want to drop the data and NOT
6265 /* Here we must move to the sent queue and mark */
6352 * Time to live is a priority stored in tv_sec when doing
6374 * Time to live is a the number or retransmissions stored in
6466 * still have to hunt through the chain since we need to setup the
6611 /* tack on to the end */
6720 * We add one here to keep the assoc from dis-appearing on
6728 * refcnt .. we do this to prevent it being freed and things
6731 * to the iterator lock.. But as a consequence of that the
6732 * stcb will return to us un-locked.. since free_asoc
6734 * relock.. to unlock in the iterator timer :-0
6753 * there is nothing queued to send, so I'm
6778 * we still got (or just got) data to send,
6784 * we will allow user data to be sent first
6785 * and move to SHUTDOWN-PENDING
6852 * have is "memory" related and if you cannot get an mbuf to send
6853 * the data you surely can't get an mbuf to send up to notify the
6859 /* Lets clear the flag to allow others to run. */
6886 /* Align data to the end */
6954 * take off the sendall flag, it would be bad if we failed to do
7067 /* on to the sent queue */
7072 /* need to move back */
7178 * If we are doing EEOR we need to always send it if its the
7186 * arrives to transmit - wait for more data
7205 * get a full msg in so we have to allow splitting.
7217 * to split it for the sake of packet putting together?
7220 /* Its ok to split it */
7238 /* Move from the stream to the send_queue keeping track of the total */
7302 /* back to get the next msg */
7314 /* is there some to get */
7374 /* Nothing to take. */
7475 * since we always lower to_move to the size
7604 * previous loop prior to padding.
7828 * LAST to the out queue in one pass) and assigning TSN's. This
7830 * chunks its ok to not send the entire message ;-)
7831 * - Check to see if the cwnd/rwnd allows any output, if so we go ahead and
7832 * formulate and send the low level chunks. Making sure to combine
7856 * JRS 5/14/07 - Add flag for whether a heartbeat is sent to the
7875 * in the flight size, attempt to pull an MTU's worth out of the
7888 /* Nothing to possible to send? */
7910 /* Nothing but ECNe to send - we don't do that */
7932 * the queue, no need to do a fill-up.
7945 * its's got space in cwnd and has data sent to it
7989 /* Nothing to send? */
8001 /* null so to beginning */
8076 /* We are always allowed to send one MTU out */
8116 * requires it, make sure to account for it. We
8135 * of tracking to do if for some reason
8136 * output fails. Then I have got to
8204 * it is used to do appropriate
8298 * to where the sack is going..
8302 * Don't transmit it to where its
8308 * But do transmit it to this
8343 * requires it, make sure to account for it. We
8362 * of tracking to do if for some reason
8363 * output fails. Then I have got to
8404 /* Mark things to be removed, if needed */
8448 * place to do it (we used
8449 * to do it in the queue of
8483 * flag as it is used to do
8576 /* JRI: if dest is in PF state, do not send data to it */
8592 * buffer. We also need to check the number of messages per
8674 * to big for its destination and
8807 /* Is there something to send for this destination? */
8817 /* We may need to start a control timer or two */
8824 * used to do appropriate source address
8849 /* Now send it, if there is anything to send :> */
8886 * I add this line to be paranoid. As far as
8887 * I can tell the continue, takes us back to
8888 * the top of the for, but just to make sure
8892 continue; /* This takes us back to the
9078 /* first the change from param to cookie */
9163 /* formulate and queue a cookie-ack back to sender */
9210 /* formulate and queue a SHUTDOWN-ACK back to the sender */
9253 /* formulate and queue a SHUTDOWN to the sender */
9319 * formulate and queue an ASCONF to the peer. ASCONF parameters
9369 * formulate and queue a asconf-ack back to sender. the asconf-ack
9470 * marked for resend and bundle them all together (up to a MTU of
9471 * destination). The address to send to should have been
9504 SCTPDBG(SCTP_DEBUG_OUTPUT1, "SCTP hits empty queue with cnt set to %d?\n",
9550 /* do we have control chunks to retransmit? */
9592 * We don't want to mark the net->sent time here since this
9608 * Ok, it is just data retransmission we need to do or that and a
9625 /* No, not sent to this net or not ready for rtx */
9709 * Mark the destination net to have FR recovery
9718 * make sure to account for it. We don't apply the size
9770 * now are there anymore forward from chk to pick
9833 /* Is there something to send for this destination? */
9855 /* Now lets send it, if there is anything to send :> */
9880 * We don't want to mark the net->sent time here
9921 * need to double the book size on
9964 * this case we want to give
9965 * some more time to get a
9986 /* all done we have no more to retran */
10038 * FIRST/MIDDLE and LAST to the out queue in one pass) and assigning
10040 * - Check to see if the cwnd/rwnd allows any output, if so we
10042 * to combine any control in the control chunk queue also.
10077 /* Nothing to do unless there is something to be sent left */
10081 * Do we have something to send, data or control AND a sack timer
10092 * packet with a single call off to the retran code.
10162 /* No more retrans to send */
10174 * still may send below due to the dormant state but
10175 * we try to find an alternate address to send to
10177 * out wheel to this alternate address.
10257 /* Nothing left to send */
10261 /* Nothing left to send */
10287 * Now we need to clean up the control chunk chain if a ECNE is on
10289 * to send it until such time that we get a CWR, to remove it.
10345 /* mark it to unsent */
10365 * but to tell if we are sending a fwd-tsn by the stack during
10392 /* no more to look at */
10416 /* trim to a mtu size */
10462 * last now points to last one I can report, update
10490 * Move pointer to after the fwdtsn and transfer to the
10507 * would mean 300+ stream seq's would have to be reported in
10508 * one FWD-TSN. With a bit of work we can later FIX this to
10548 * We must first check to see if a SACK or NR-SACK is
10635 * we can select an alternate to asoc->last_data_chunk_from
10702 * received, then set high bit to 1, else 0. Reset
10755 * Clear all bits corresponding to TSNs
10756 * smaller or equal to the cumulative TSN.
10763 * Backup, left and right edges were ok to
10828 * Clear all bits corresponding to
10829 * TSNs smaller or equal to the
10838 * ok to merge.
10883 /* now we must add any dups we are going to report. */
10898 * now that the chunk is prepared queue it to the control chunk
11507 /* nope could not find one to update so we must build one */
11588 /* break to abort land */
11596 * We don't respond with an PKT-DROP to an ABORT
11597 * or PKT-DROP. We also do not respond to an
11641 * Len is already adjusted to size minus overhead above take
11706 * found a previous CWR queued to same destination
11765 /* get to new offset for the param. */
11811 * Need to worry about the pad we may end up adding to the
11812 * end. This is easy since the struct is either aligned to 4
11838 /* get to new offset for the param. */
11852 * Need to worry about the pad we may end up adding to the
11853 * end. This is easy since the struct is either aligned to 4
11878 /* get to new offset for the param. */
11906 /* get to new offset for the param. */
11936 * Reset our last reset action to the new one IP -> response
11937 * (PERFORMED probably). This assures that if we fail to send, a
11998 /* get to new offset for the param. */
12030 /* get to new offset for the param. */
12063 /* get to new offset for the param. */
12175 * Already one pending, must get ACK back to clear the flag.
12182 /* nothing to do */
12249 /* Need to allocate more */
12370 /* Don't respond to an ABORT with an ABORT. */
12445 * processing is up and running so care must be taken to spl...()
12446 * when you need to do something that may effect the stcb/asoc. The
12799 * User asks to abort a non-existent assoc,
12822 * Turn on queue only flag to prevent data from
12841 * we may want to dig in after this call and adjust the MTU
12842 * value. It defaulted to 1500 (constant) but the ro
12843 * structure may now have an update and thus we may need to
12872 /* Use a local copy to have a consistent view. */
12892 /* It has to be up before we abort. */
12951 * still abort we just don't get to
12971 * In this case top is already chained to mm avoid double
12984 ("Association about to be freed"));
13070 ("Association about to be freed"));
13172 ("Association about to be freed"));
13214 * association is about to be shut down.
13241 * Just got locked to this guy in case of an
13282 ("Association about to be freed"));
13307 * We need to get out. Peer probably
13334 /* Tack it to the end. */
13361 ("Association about to be freed"));
13425 * data unless we have a "full" segment to send.
13452 * need to start chunk output
13456 * and I don't need to start output :-D
13470 * so_snd buffer to get the wakeup. After the LOCK
13471 * is applied the sack_processing will also need to
13472 * LOCK the so->so_snd to do the actual sowwakeup(). So
13474 * size we KNOW we will get to sleep safely with the
13531 ("Association about to be freed"));
13573 ("Association about to be freed"));
13587 /* there is nothing queued to send, so I'm done... */
13612 * we still got (or just got) data to send, so set
13618 * data to be sent first and move to
13660 ("Association about to be freed"));
13681 ("Association about to be freed"));
13704 * data unless wen have a "full" segment to send.
13730 ("Association about to be freed"));
13740 /* We get to have a probe outstanding */
13760 ("Association about to be freed"));
13837 /* update length and return pointer to the auth chunk */