/external/android-clat/ |
H A D | setif.h | 22 int if_up(const char *ifname, int mtu);
|
H A D | setroute.h | 25 int if_route(const char *ifname, int family, const void *destination, int cidr, const void *gateway, int metric, int mtu, int change_type);
|
H A D | config.h | 28 int16_t mtu, ipv4mtu; member in struct:clat_config
|
H A D | Android.mk | 4 LOCAL_SRC_FILES:=clatd.c dump.c checksum.c translate.c icmp.c ipv4.c ipv6.c config.c dns64.c logging.c getaddr.c getroute.c netlink_callbacks.c netlink_msg.c setif.c setroute.c mtu.c
|
H A D | clatd.c | 58 #include "mtu.h" 208 if((status = if_up(tunnel->device6, Global_Clatd_Config.mtu)) < 0) { 271 if(Global_Clatd_Config.mtu > MAXMTU) { 272 logmsg(ANDROID_LOG_WARN,"Max MTU is %d, requested %d", MAXMTU, Global_Clatd_Config.mtu); 273 Global_Clatd_Config.mtu = MAXMTU; 275 if(Global_Clatd_Config.mtu <= 0) { 276 Global_Clatd_Config.mtu = getifmtu(Global_Clatd_Config.default_pdp_interface); 277 logmsg(ANDROID_LOG_WARN,"ifmtu=%d",Global_Clatd_Config.mtu); 279 if(Global_Clatd_Config.mtu < 1280) { 280 logmsg(ANDROID_LOG_WARN,"mtu to [all...] |
H A D | setroute.c | 41 * mtu - route-specific mtu or 0 for the interface mtu 44 int if_route(const char *ifname, int family, const void *destination, int prefixlen, const void *gateway, int metric, int mtu, int change_type) { argument 119 if(mtu > 0 && change_type != ROUTE_DELETE) { 127 if(nla_put(msg, RTAX_MTU, 4, &mtu) < 0) {
|
H A D | setif.c | 94 * sets interface link state to up and sets mtu, returns 0 on success and <0 on failure 96 * mtu - new mtu 98 int if_up(const char *ifname, int mtu) { argument 117 if(nla_put(msg, IFLA_MTU, 4, &mtu) < 0) {
|
/external/iproute2/tc/ |
H A D | q_tbf.c | 28 fprintf(stderr, "Usage: ... tbf limit BYTES burst BYTES[/BYTES] rate KBPS [ mtu BYTES[/BYTES] ]\n"); 45 unsigned buffer=0, mtu=0, mpu=0, latency=0; local 89 } else if (strcmp(*argv, "mtu") == 0 || 92 if (mtu) { 93 fprintf(stderr, "Double \"mtu/minburst\" spec\n"); 96 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { 97 explain1("mtu"); 169 if (!mtu) { 170 fprintf(stderr, "\"mtu\" is required, if \"peakrate\" is requested.\n"); 183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu; 222 double buffer, mtu; local [all...] |
H A D | tc_core.c | 110 int cell_log, unsigned mtu, 118 if (mtu == 0) 119 mtu = 2047; 123 while ((mtu >> cell_log) > 255) 149 s->mtu = 0; 157 if (s->mtu == 0) 158 s->mtu = 2047; 163 while ((s->mtu >> s->cell_log) > s->tsize - 1) 109 tc_calc_rtable(struct tc_ratespec *r, __u32 *rtab, int cell_log, unsigned mtu, enum link_layer linklayer) argument
|
H A D | tc_core.h | 24 int cell_log, unsigned mtu, enum link_layer link_layer);
|
H A D | m_police.c | 37 fprintf(stderr, "Usage: ... police rate BPS burst BYTES[/BYTES] [ mtu BYTES[/BYTES] ]\n"); 136 unsigned buffer=0, mtu=0, mpu=0; local 171 } else if (strcmp(*argv, "mtu") == 0 || 174 if (mtu) { 175 fprintf(stderr, "Double \"mtu/minburst\" spec\n"); 178 if (get_size_and_cell(&mtu, &Pcell_log, *argv) < 0) { 179 explain1("mtu"); 271 if (!mtu) { 272 fprintf(stderr, "\"mtu\" is required, if \"peakrate\" is requested.\n"); 280 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklaye [all...] |
H A D | tc_stab.c | 33 "Usage: ... stab [ mtu BYTES ] [ tsize SLOTS ] [ mpu BYTES ] \n" 35 " mtu : max packet size we create rate map for {2047}\n" 65 if (matches(*argv, "mtu") == 0) { 67 if (s.mtu) 68 duparg("mtu", *argv); 69 if (get_u32(&s.mtu, *argv, 10)) { 70 invarg("mtu", "invalid mtu"); 139 if (s.mtu) 140 fprintf(fp, "mtu [all...] |
/external/bluetooth/bluedroid/stack/rfcomm/ |
H A D | port_rfc.c | 77 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); 215 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); 293 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) argument 299 RFCOMM_TRACE_EVENT2 ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu); 324 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu; 384 PORT_ParNegCnf(tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) argument 445 PORT_DlcEstablishInd(tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) argument 497 PORT_DlcEstablishCnf(tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result) argument [all...] |
H A D | port_utils.c | 148 if (p_port->mtu == 0) 156 p_port->mtu = RFCOMM_DEFAULT_MTU; 170 p_port->mtu = ((L2CAP_MTU_SIZE + L2CAP_PKT_OVERHEAD) / packet_size * packet_size) - RFCOMM_DATA_OVERHEAD - L2CAP_PKT_OVERHEAD; 171 RFCOMM_TRACE_DEBUG1 ("port_select_mtu selected %d based on connection speed", p_port->mtu); 175 p_port->mtu = L2CAP_MTU_SIZE - RFCOMM_DATA_OVERHEAD; 176 RFCOMM_TRACE_DEBUG1 ("port_select_mtu selected %d based on l2cap PDU size", p_port->mtu); 182 RFCOMM_TRACE_DEBUG1 ("port_select_mtu application selected %d", p_port->mtu); 184 p_port->credit_rx_max = (PORT_RX_HIGH_WM / p_port->mtu); 187 p_port->credit_rx_low = (PORT_RX_LOW_WM / p_port->mtu); 190 p_port->rx_buf_critical = (PORT_RX_CRITICAL_WM / p_port->mtu); [all...] |
H A D | rfc_port_if.c | 82 void RFCOMM_DlcEstablishReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) argument 104 void RFCOMM_DlcEstablishRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result) argument 129 void RFCOMM_ParNegReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) argument 163 rfc_send_pn (p_mcb, dlci, TRUE, mtu, cl, k); 177 void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) argument 183 rfc_send_pn (p_mcb, dlci, FALSE, mtu, cl, k);
|
/external/libppp/src/ |
H A D | tun.c | 98 ifr.ifr_mtu = bundle->iface->mtu; 109 info.mtu = bundle->iface->mtu;
|
H A D | iface.h | 41 unsigned long mtu; /* struct tuninfo MTU */ member in struct:iface
|
H A D | tcpmss.c | 73 #define MAXMSS(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr) - 12) 165 MAXMSS(bundle->iface->mtu));
|
/external/bluetooth/bluedroid/bta/include/ |
H A D | bta_ar_api.h | 99 extern void bta_ar_reg_avct(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask, tBTA_SYS_ID sys_id);
|
H A D | bta_av_co.h | 189 ** If this is the 2nd audio stream, mtu is the smaller of the 2 197 UINT16 mtu); 212 UINT16 mtu); 222 ** mtu is reported as 0. 229 UINT16 mtu); 243 UINT16 mtu);
|
/external/dhcpcd/dhcpcd-hooks/ |
H A D | Makefile | 7 SCRIPTS+= 10-mtu 20-resolv.conf 29-lookup-hostname 30-hostname
|
/external/tcpdump/ |
H A D | print-igrp.c | 48 u_int metric, mtu; local 65 mtu = EXTRACT_16BITS(igr->igr_mtu); 67 printf(" d=%d b=%d r=%d l=%d M=%d mtu=%d in %d hops", 70 mtu, igr->igr_hct);
|
/external/kernel-headers/original/linux/ |
H A D | icmp.h | 80 __u16 mtu; member in struct:icmphdr::__anon7749::__anon7751
|
/external/ppp/pppd/plugins/pppoatm/ |
H A D | pppoatm.c | 172 static void send_config_pppoa(int mtu, argument 179 if (mtu > pppoatm_max_mtu) 180 error("Couldn't increase MTU to %d", mtu); 185 ifr.ifr_mtu = mtu;
|
/external/iproute2/examples/ |
H A D | SYN-DoS.rate.limit | 36 police rate 1kbit burst 40 mtu 9k drop flowid :1
|