| /src/external/bsd/ppp/dist/pppd/plugins/pppoe/ |
| discovery.c | 145 UINT16_t mru; local 210 if (len == sizeof(mru)) { 211 memcpy(&mru, data, sizeof(mru)); 212 mru = ntohs(mru); 213 info("Max-Payload: %u", (unsigned) mru); 214 if (mru >= ETH_PPPOE_MTU && conn->discoveryState != STATE_RECEIVED_PADO) { 215 if (conn->mtu > mru) 216 conn->mtu = mru; 255 UINT16_t mru; local 357 UINT16_t mru = htons(MIN(conn->mtu, conn->mru)); local 539 UINT16_t mru = htons(MIN(conn->mtu, conn->mru)); local [all...] |
| plugin.c | 160 lcp_allowoptions[0].mru = conn->mtu = conn->storedmtu; 161 lcp_wantoptions[0].mru = conn->mru = conn->storedmru; 163 /* Update maximum MRU */ 177 if (lcp_allowoptions[0].mru > ifr.ifr_mtu - TOTAL_OVERHEAD) 178 lcp_allowoptions[0].mru = conn->mtu = ifr.ifr_mtu - TOTAL_OVERHEAD; 179 if (lcp_wantoptions[0].mru > ifr.ifr_mtu - TOTAL_OVERHEAD) 180 lcp_wantoptions[0].mru = conn->mru = ifr.ifr_mtu - TOTAL_OVERHEAD; 216 /* discovery1() may update conn->mtu and conn->mru */ [all...] |
| pppoe.h | 167 the default MRU. For now, getting up to 1500 is 240 int storedmru; /* Stored MRU */ 242 int mru; member in struct:PPPoEConnectionStruct
|
| /src/external/bsd/openldap/dist/servers/slapd/ |
| mr.c | 386 *mru = &mru_storage; local 415 mru->smru_mr = mr; 416 mru->smru_obsolete = mr->smr_obsolete; 417 mru->smru_applies_oids = NULL; 418 LDAP_SLIST_NEXT(mru, smru_next) = NULL; 419 mru->smru_oid = mr->smr_oid; 420 mru->smru_names = mr->smr_names; 421 mru->smru_desc = mr->smr_desc; 424 mru->smru_oid, 425 mru->smru_names ? mru->smru_names[ 0 ] : "" ) 529 MatchingRuleUse *mru; local [all...] |
| /src/usr.sbin/btpand/ |
| client.c | 49 uint16_t mru, mtu; local 78 mru = BNEP_MTU_MIN; 80 &mru, sizeof(mru)) == -1) { 81 log_err("Could not set L2CAP IMTU (%d): %m", mru); 95 len = sizeof(mru); 96 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { 100 if (mru < BNEP_MTU_MIN) { 101 log_err("L2CAP IMTU too small (%d)", mru); 110 if (n < 10 * mru) { [all...] |
| server.c | 80 uint16_t mru; local 107 mru = BNEP_MTU_MIN; 109 SO_L2CAP_IMTU, &mru, sizeof(mru)) == -1) { 110 log_err("Could not set L2CAP IMTU (%d): %m", mru); 138 uint16_t mru, mtu; local 154 len = sizeof(mru); 155 if (getsockopt(fd, BTPROTO_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { 160 if(mru < BNEP_MTU_MIN) { 161 log_err("L2CAP IMTU too small (%d)", mru); [all...] |
| packet.c | 38 pkt = malloc(sizeof(packet_t) + chan->mru);
|
| btpand.h | 71 size_t mru; member in struct:channel
|
| tap.c | 118 chan->mru = ETHER_HDR_LEN + ETHER_MAX_LEN;
|
| channel.c | 196 nr = read(fd, pkt->buf, chan->mru);
|
| /src/external/bsd/ntp/dist/ntpd/ |
| ntp_monitor.c | 30 * recently-used (MRU) list. When a packet arrives it is looked up in 32 * relinked at the head of the MRU list. If not found, a new entry is 34 * head of the MRU list. 39 * tail for the MRU list, unlinking from the hash table, and 63 * Pointers to the hash table and the MRU list. Memory for the hash 66 mon_entry ** mon_hash; /* MRU hash table */ 67 mon_entry mon_mru_list; /* mru listhead */ 74 u_int mru_alloc; /* mru list + free list count */ 75 u_int mru_entries; /* mru list count */ 99 u_int mru_maxdepth = /* MRU count hard limit * [all...] |
| /src/external/bsd/ppp/dist/pppd/plugins/pppol2tp/ |
| pppol2tp.c | 239 if ((lcp_allowoptions[0].mru > 0) && (mtu > lcp_allowoptions[0].mru)) { 240 warn("Overriding mtu %d to %d", mtu, lcp_allowoptions[0].mru); 241 mtu = lcp_allowoptions[0].mru; 287 static void recv_config_pppol2tp(int mru, 292 if ((lcp_allowoptions[0].mru > 0) && (mru > lcp_allowoptions[0].mru)) { 293 warn("Overriding mru %d to mtu value %d", mru, [all...] |
| /src/external/bsd/openldap/dist/libraries/libldap/ |
| schema.c | 61 ldap_matchingruleuse2name( LDAPMatchingRuleUse * mru ) 63 if (!mru) return NULL; 64 return( choose_name( mru->mru_names, mru->mru_oid ) ); 489 ldap_matchingruleuse2str( LDAPMatchingRuleUse * mru ) 492 if (ldap_matchingruleuse2bv( mru, &bv )) 499 ldap_matchingruleuse2bv( LDAPMatchingRuleUse * mru, struct berval *bv ) 503 if ( !mru || !bv ) 513 print_numericoid(ss, mru->mru_oid); 516 if ( mru->mru_names ) 1859 LDAPMatchingRuleUse * mru; local [all...] |
| /src/external/bsd/ppp/dist/pppd/ |
| lcp.h | 109 bool neg_mru; /* Negotiate the MRU? */ 122 int mru; /* Value of MRU */ member in struct:lcp_options 140 #define MAXMRU 16384 /* Normally limit MRU to this */
|
| lcp.c | 140 { "mru", o_int, &lcp_wantoptions[0].mru, 141 "Set MRU (maximum received packet size) for negotiation", 143 { "default-mru", o_bool, &lcp_wantoptions[0].neg_mru, 144 "Disable MRU negotiation (use default 1500)", 146 { "-mru", o_bool, &lcp_wantoptions[0].neg_mru, 147 "Disable MRU negotiation (use default 1500)", 150 { "mtu", o_int, &lcp_allowoptions[0].mru, 370 wo->mru = DEFMRU; 378 ao->mru = MAXMRU 1880 int mtu, mru; local [all...] |
| multilink.c | 107 /* mrru not specified, default to mru */ 108 wo->mrru = wo->mru; 111 ao->mrru = ao->mru; 151 mtu = ho->neg_mru? ho->mru: PPP_MRU; 152 if (mtu > ao->mru) 153 mtu = ao->mru; 204 mtu = MIN(ho->mrru, ao->mru);
|
| eap-tls.c | 627 int mtu, mru; local 634 mtu = ho->neg_mru? ho->mru: PPP_MRU; 635 mru = go->neg_mru? MAX(wo->mru, go->mru): PPP_MRU; 636 mtu = MIN(MIN(mtu, mru), ao->mru)- PPP_HDRLEN - 10;
|
| demand.c | 90 /* framemax = lcp_allowoptions[0].mru; 103 ppp_set_mtu(0, MIN(lcp_allowoptions[0].mru, PPP_MRU));
|
| /src/external/bsd/openldap/dist/include/ |
| ldap_schema.h | 181 LDAPMatchingRuleUse * mru )); 349 LDAPMatchingRuleUse * mru )); 353 LDAPMatchingRuleUse * mru, struct berval *bv ));
|
| /src/sys/net/ |
| ppp-deflate.c | 63 int mru; member in struct:deflate_state 80 int unit, int hdrlen, int mru, int debug); 408 int mru, int debug) 424 state->mru = mru; 585 if (olen > state->mru + PPP_HDRLEN) 586 printf("ppp_deflate%d: exceeded mru (%d > %d)\n", 587 state->unit, olen, state->mru + PPP_HDRLEN);
|
| bsd-comp.c | 95 u_int mru; member in struct:bsd_db 139 int unit, int hdrlen, int mru, int debug); 395 int mru, int debug, int decomp) 419 db->mru = mru; 440 int mru, int debug) 443 unit, hdrlen, mru, debug, 1); 940 if (explen > db->mru + 1) { 943 printf("bsd_decomp%d: ran out of mru\n", db->unit);
|
| if_sppp.h | 214 u_long mru; member in struct:sppplcpstatus
|
| if_spppvar.h | 48 u_long mru; /* our max receive unit */ member in struct:slcp 237 #define PP_MTU 1500 /* default/minimal MRU */ 238 #define PP_MAX_MRU 2048 /* maximal MRU we want to negotiate */
|
| /src/external/bsd/ppp/dist/pppdump/ |
| pppdump.c | 36 int mru = 1500; variable 65 mru = atoi(optarg); 71 fprintf(stderr, "Usage: %s [-h | -p[d]] [-r] [-m mru] [-a] [file ...]\n", av[0]); 306 if (endp - r > mru) 307 printf(" ERROR: length (%td) > MRU (%d)\n", 308 endp - r, mru);
|
| /src/external/bsd/ntp/dist/ntpq/ |
| ntpq-subs.c | 293 typedef struct mru_tag mru; typedef in typeref:struct:mru_tag 295 mru * hlink; /* next in hash table bucket */ 296 DECL_DLIST_LINK(mru, mlink); 349 static mru * add_mru(mru *); 373 static mru mru_list; /* listhead */ 374 static mru ** hash_table; 2488 * add_mru Add and entry to mru list, hash table, and allocate 2492 static mru * 2494 mru *ad [all...] |