Lines Matching defs:net

55 #include <net/if.h>
56 #include <net/if_types.h>
57 #include <net/route.h>
238 struct sctp_nets *net,
248 if ((inp == NULL) || (stcb == NULL) || (net == NULL) ||
287 if (net->mtu > nxtsz) {
288 net->mtu = nxtsz;
319 if (net->flight_size >= chk->book_size) {
320 net->flight_size -= chk->book_size;
322 net->flight_size = 0;
348 struct sctp_nets *net)
351 if ((inp == NULL) || (stcb == NULL) || (net == NULL) ||
379 if (net->dest_state & SCTP_ADDR_REACHABLE) {
381 net->dest_state &= ~SCTP_ADDR_REACHABLE;
382 net->dest_state |= SCTP_ADDR_NOT_REACHABLE;
383 net->error_count = net->failure_threshold + 1;
386 (void *)net);
435 struct sctp_nets *net;
456 &inp, &net, 1);
467 net);
470 sctp_notify_mbuf(inp, stcb, net, ip, sh);
1714 struct sctp_nets *net;
1750 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
1752 (rtcache_getdst(&net->ro)->sa_family == AF_INET6)) {
1754 } else if (rtcache_getdst(&net->ro)->sa_family == AF_INET) {
1774 struct sctp_nets *net;
1804 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
1807 family = rtcache_getdst(&net->ro)->sa_family;
1829 in6_sin_2_v4mapsin6((const struct sockaddr_in *) rtcache_getdst(&net->ro),
1832 memcpy(sas, rtcache_getdst(&net->ro), cpsz);
1907 struct sctp_nets *net;
1926 net = NULL;
1938 net = sctp_findnet(stcb, (struct sockaddr *)&paddrp->spp_address);
1963 net = sctp_findnet(stcb, (struct sockaddr *)&paddrp->spp_address);
1972 &net, NULL, NULL);
2000 if (net) {
2001 paddrp->spp_pathmaxrxt = net->failure_threshold;
2028 struct sctp_nets *net;
2039 net = NULL;
2048 net = sctp_findnet(stcb,
2058 &net, NULL, NULL);
2069 if ((stcb == NULL) || (net == NULL)) {
2074 paddri->spinfo_state = net->dest_state & (SCTP_REACHABLE_MASK|SCTP_ADDR_NOHB);
2075 paddri->spinfo_cwnd = net->cwnd;
2076 paddri->spinfo_srtt = ((net->lastsa >> 2) + net->lastsv) >> 1;
2077 paddri->spinfo_rto = net->RTO;
2101 struct sctp_nets *net;
2153 net = stcb->asoc.primary_destination;
2159 sstat->sstat_primary.spinfo_state = net->dest_state & SCTP_REACHABLE_MASK;
2160 sstat->sstat_primary.spinfo_cwnd = net->cwnd;
2161 sstat->sstat_primary.spinfo_srtt = net->lastsa;
2162 sstat->sstat_primary.spinfo_rto = net->RTO;
2163 sstat->sstat_primary.spinfo_mtu = net->mtu;
2342 struct sctp_nets *net;
2349 &net, NULL, NULL);
2570 struct sctp_nets *net;
2582 net = sctp_findnet(stcb, sa);
2589 stcb = sctp_findassociation_ep_addr(&inp, sa, &net, NULL, NULL);
2800 struct sctp_nets *net;
2806 net = NULL;
2813 net = sctp_findnet(stcb, (struct sockaddr *)&paddrp->spp_address);
2833 net = sctp_findnet(stcb,
2843 &net, NULL, NULL);
2857 if (net) {
2859 net->failure_threshold = paddrp->spp_pathmaxrxt;
2868 if (net) {
2869 net->dest_state &= ~SCTP_ADDR_NOHB;
2875 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net);
2880 sctp_send_hb(stcb, 1, net);
2882 if (net == NULL) {
2895 sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net);
2899 net->dest_state |= SCTP_ADDR_NOHB;
3035 struct sctp_nets *net, *lnet;
3061 &net, NULL, NULL);
3070 /* find the net, associd or connected lookup type */
3071 net = sctp_findnet(stcb, (struct sockaddr *)&spa->ssp_addr);
3072 if (net == NULL) {
3078 if ((net != stcb->asoc.primary_destination) &&
3079 (!(net->dest_state & SCTP_ADDR_UNCONFIRMED))) {
3082 lnet->next_tsn_at_change = net->next_tsn_at_change = stcb->asoc.sending_seq;
3085 net) == 0) {
3086 if (net->dest_state & SCTP_ADDR_SWITCH_PRIMARY) {
3087 net->dest_state |= SCTP_ADDR_DOUBLE_SWITCH;
3089 net->dest_state |= SCTP_ADDR_SWITCH_PRIMARY;
3721 struct sctp_nets *net;
3731 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
3732 sin_a = (const struct sockaddr_in *)rtcache_getdst(&net->ro);
3744 stcb, (struct route *)&net->ro, net, 0);
3782 struct sctp_nets *net;
3811 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
3812 sin_a = (const struct sockaddr_in *)rtcache_getdst(&net->ro);
3899 CTLTYPE_NODE, "net", NULL,