Searched refs:mru (Results 1 - 22 of 22) sorted by relevance

/freebsd-11-stable/usr.sbin/bluetooth/btpand/
H A Dserver.c97 uint16_t mru; local
118 mru = BNEP_MTU_MIN;
120 SO_L2CAP_IMTU, &mru, sizeof(mru)) == -1) {
121 log_err("Could not set L2CAP IMTU (%d): %m", mru);
160 uint16_t mru, mtu; local
174 len = sizeof(mru);
175 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) {
180 if(mru < BNEP_MTU_MIN) {
181 log_err("L2CAP IMTU too small (%d)", mru);
[all...]
H A Dclient.c54 uint16_t mru, mtu; local
80 mru = BNEP_MTU_MIN;
81 if (setsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, sizeof(mru)) == -1) {
82 log_err("Could not set L2CAP IMTU (%d): %m", mru);
96 len = sizeof(mru);
97 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) {
101 if (mru < BNEP_MTU_MIN) {
102 log_err("L2CAP IMTU too small (%d)", mru);
111 if (n < (mru * 1
[all...]
H A Dpacket.c43 pkt = malloc(sizeof(packet_t) + chan->mru);
H A Dtap.c114 chan->mru = ETHER_HDR_LEN + ETHER_MAX_LEN;
H A Dbtpand.h89 size_t mru; member in struct:channel
H A Dchannel.c214 nr = read(fd, pkt->buf, chan->mru);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntp_monitor.c65 mon_entry mon_mru_list; /* mru listhead */
72 u_int mru_alloc; /* mru list + free list count */
73 u_int mru_entries; /* mru list count */
116 INIT_DLIST(mon_mru_list, mru);
166 UNLINK_DLIST(m, mru);
257 ITER_DLIST_BEGIN(mon_mru_list, mon, mru, mon_entry)
263 INIT_DLIST(mon_mru_list, mru);
269 * mon_clearinterface -- remove mru entries referring to a local address
280 ITER_DLIST_BEGIN(mon_mru_list, mon, mru, mon_entry)
282 /* remove from mru lis
[all...]
H A Dntp_control.c4176 mon = PREV_DLIST(mon_mru_list, mon, mru);
4178 mon = TAIL_DLIST(mon_mru_list, mru);
4190 mon = PREV_DLIST(mon_mru_list, mon, mru)) {
/freebsd-11-stable/usr.sbin/ppp/
H A Dlcp.c185 if (lcp->cfg.mru)
187 lcp->cfg.mru, lcp->cfg.max_mru);
260 lcp->cfg.mru = 0;
305 if ((lcp->want_mru = lcp->cfg.mru) == 0)
669 u_short mru, phmtu, maxmtu, maxmru, wantmtu, wantmru, proto; local
689 ua_ntohs(opt->data, &mru);
690 log_Printf(LogLCP, "%s %u\n", request, mru);
699 if (mru > MAX_MRU) {
706 } else if (mru < MIN_MRU) {
714 lcp->his_mrru = mru;
[all...]
H A Dlcp.h87 u_short mru; /* Preferred MRU value */ member in struct:lcp::__anon8871
H A Dcommand.c1894 change = &l->lcp.cfg.mru;
1935 if (l->lcp.cfg.mru > *change)
1936 l->lcp.cfg.mru = *change;
2430 {"mru", NULL, SetVariable, LOCAL_AUTH | LOCAL_CX,
2431 "MRU value", "set mru [max[imum]] [value]", (const void *)VAR_MRU},
/freebsd-11-stable/sys/netgraph/
H A Dng_ppp.h127 u_int16_t mru; /* peer MRU */ member in struct:ng_ppp_link_conf
137 { "mru", &ng_parse_uint16_type }, \
H A Dng_ppp.c1323 uint16_t mru; local
1342 mru = link->conf.mru;
1343 if (mru != 0 && m->m_pkthdr.len > mru) {
2075 frags += (distrib[activeLinkNum] + link->conf.mru - hdr_len - 1) /
2076 (link->conf.mru - hdr_len);
2104 if (len > link->conf.mru - hdr_len)
2105 len = link->conf.mru - hdr_len;
2578 if (newConf->links[i].mru < MP_MIN_LINK_MR
[all...]
/freebsd-11-stable/contrib/ntp/ntpq/
H A Dntpq-subs.c291 typedef struct mru_tag mru; typedef in typeref:struct:mru_tag
293 mru * hlink; /* next in hash table bucket */
294 DECL_DLIST_LINK(mru, mlink);
347 static mru * add_mru(mru *);
371 static mru mru_list; /* listhead */
372 static mru ** hash_table;
2456 * add_mru Add and entry to mru list, hash table, and allocate
2460 static mru *
2462 mru *ad
[all...]
/freebsd-11-stable/sys/net/
H A Dif_sppp.h31 u_long mru; /* our max receive unit */ member in struct:slcp
H A Dif_tun.c941 uint32_t family, mru; local
953 mru = TUNMRU;
955 mru += sizeof(family);
956 if (uio->uio_resid < 0 || uio->uio_resid > mru) {
H A Dif_spppsubr.c2141 sp->lcp.mru = sp->lcp.their_mru = PP_MTU;
2160 sp->lcp.mru = sp->lcp.their_mru = PP_MTU;
2593 u_int mru = p[2] * 256 + p[3]; local
2595 log(-1, "%d ", mru);
2596 if (mru < PP_MTU || mru > PP_MAX_MRU)
2597 mru = PP_MTU;
2598 sp->lcp.mru = mru;
2753 char opt[6 /* magicnum */ + 4 /* mru */
[all...]
/freebsd-11-stable/sys/dev/bnxt/
H A Dbnxt.h431 uint16_t mru; member in struct:bnxt_vnic_info
H A Dbnxt_hwrm.c655 req.mru = htole16(vnic->mru);
H A Dhsi_struct_def.h6662 uint16_t mru; member in struct:hwrm_func_qcfg_output
7150 /* This bit must be '1' for the mru field to be configured. */
7208 uint16_t mru; member in struct:hwrm_func_cfg_input
7211 * that the mru of the function does not exceed the mru of the physical
7213 * configuring mru per function, it is possible to configure mru per
7214 * vnic. By default, the mru of each vnic associated with a function is
7215 * equal to the mru of the function. The HWRM should make sure that the
7216 * mru o
9750 uint16_t mru; member in struct:hwrm_port_mac_cfg_output
9843 uint16_t mru; member in struct:hwrm_port_mac_qcfg_output
14837 uint16_t mru; member in struct:hwrm_vnic_cfg_input
14958 uint16_t mru; member in struct:hwrm_vnic_qcfg_output
15071 uint16_t mru; member in struct:hwrm_vnic_qcaps_output
[all...]
H A Dif_bnxt.c1104 softc->vnic_info.mru = softc->scctx->isc_max_frame_size;
/freebsd-11-stable/contrib/ntp/include/
H A Dntp.h784 DECL_DLIST_LINK(mon_entry, mru);/* MRU list link pointers */

Completed in 414 milliseconds