Lines Matching defs:conf
163 ((priv)->conf.recvShortSeq ? \
169 ((priv)->conf.recvShortSeq ? \
200 struct ng_ppp_link_conf conf; /* link configuration */
211 struct ng_ppp_bund_conf conf; /* bundle config */
547 if (priv->links[linkNum].conf.enableLink &&
548 !priv->conf.enableMultilink && priv->numActiveLinks >= 1)
596 struct ng_ppp_node_conf *const conf =
601 if (msg->header.arglen != sizeof(*conf))
603 if (!ng_ppp_config_valid(node, conf))
607 priv->conf = conf->bund;
609 priv->links[i].conf = conf->links[i];
615 struct ng_ppp_node_conf *conf;
618 NG_MKRESPONSE(resp, msg, sizeof(*conf), M_NOWAIT);
621 conf = (struct ng_ppp_node_conf *)resp->data;
622 conf->bund = priv->conf;
624 conf->links[i] = priv->links[i].conf;
791 if (!priv->conf.enableIP) {
820 if (!priv->conf.enableIPv6) {
836 if (!priv->conf.enableAtalk) {
852 if (!priv->conf.enableIPX) {
942 if (priv->conf.enableIP)
946 if (priv->conf.enableIPv6)
950 if (priv->conf.enableAtalk)
954 if (priv->conf.enableIPX)
977 priv->conf.enableVJCompression &&
998 if (!priv->conf.enableVJCompression) {
1014 if (!priv->conf.enableVJCompression) {
1030 if (!priv->conf.enableVJCompression) {
1042 if (priv->conf.enableVJDecompression && priv->vjCompHooked) {
1075 if (!priv->conf.enableVJDecompression) {
1091 if (priv->conf.enableCompression &&
1124 switch (priv->conf.enableCompression) {
1157 ((proto == PROT_COMPD && priv->conf.enableDecompression) ||
1158 priv->conf.enableDecompression == NG_PPP_DECOMPRESS_FULL) &&
1162 if (priv->conf.enableDecompression == NG_PPP_DECOMPRESS_FULL) {
1196 if (!priv->conf.enableDecompression) {
1223 if (priv->conf.enableEncryption &&
1254 if (!priv->conf.enableEncryption) {
1267 if (priv->conf.enableDecryption &&
1296 if (!priv->conf.enableDecryption) {
1344 mru = link->conf.mru;
1351 if ((m = ng_ppp_addproto(m, proto, link->conf.enableProtoComp)) ==
1357 if (proto == PROT_LCP || !link->conf.enableACFComp) {
1381 if (priv->conf.enableMultilink && !priv->allLinksEqual &&
1382 !priv->conf.enableRoundRobin) {
1451 if (!link->conf.enableLink)
1532 if ((!priv->conf.enableMultilink) || proto != PROT_MP) {
1551 if (priv->conf.recvShortSeq) {
1992 const int hdr_len = priv->conf.xmitShortSeq ? 2 : 4;
2010 if (!priv->conf.enableMultilink) {
2016 if (plen > priv->conf.mrru) {
2036 if (priv->conf.enableRoundRobin) {
2076 frags += (distrib[activeLinkNum] + link->conf.mru - hdr_len - 1) /
2077 (link->conf.mru - hdr_len);
2084 if (priv->conf.xmitShortSeq) {
2105 if (len > link->conf.mru - hdr_len)
2106 len = link->conf.mru - hdr_len;
2126 if (priv->conf.xmitShortSeq) {
2310 xmitBytes = (alink->conf.bandwidth * 10 * diff.tv_sec)
2311 + (alink->conf.bandwidth * (diff.tv_usec / 1000)) / 100;
2317 (100 * alink->bytesInQueue) / alink->conf.bandwidth;
2333 priv->activeLinks[sortByLatency[i]]].conf.bandwidth)
2343 priv->activeLinks[sortByLatency[i]]].conf.bandwidth;
2353 priv->activeLinks[sortByLatency[i]]].conf.bandwidth;
2371 if (link->conf.bandwidth > fastLink->conf.bandwidth) {
2389 link->conf.bandwidth < slowLink->conf.bandwidth)) {
2489 if (priv->links[i].conf.bandwidth == 0)
2493 + (priv->links[i].conf.enableACFComp ? 0 : 2)
2494 + (priv->links[i].conf.enableProtoComp ? 1 : 2)
2495 + (priv->conf.xmitShortSeq ? 2 : 4);
2497 priv->links[i].conf.latency +
2498 (hdrBytes / priv->links[i].conf.bandwidth + 50) / 100;
2510 if (link->conf.enableLink && link->hook != NULL) {
2519 || link->conf.bandwidth != link0->conf.bandwidth)
2532 if (priv->conf.enableMultilink && priv->numActiveLinks > 0)
2549 if (priv->conf.enableIP == 1 &&
2551 priv->conf.enableMultilink == 0 &&
2552 priv->conf.enableCompression == 0 &&
2553 priv->conf.enableEncryption == 0 &&
2554 priv->conf.enableVJCompression == 0)
2591 if (!priv->conf.enableMultilink
2593 || !priv->conf.xmitShortSeq != !newConf->bund.xmitShortSeq
2594 || !priv->conf.recvShortSeq != !newConf->bund.recvShortSeq)