HomeSort by relevance Sort by last modified time
    Searched refs:mtu (Results 1 - 25 of 411) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/android-clat/
setif.h 22 int if_up(const char *ifname, int mtu);
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);
config.h 30 int16_t mtu, ipv4mtu; member in struct:clat_config
clatd.c 47 #include "mtu.h"
201 if((status = if_up(tunnel->device6, Global_Clatd_Config.mtu)) < 0) {
264 if(Global_Clatd_Config.mtu > MAXMTU) {
265 logmsg(ANDROID_LOG_WARN,"Max MTU is %d, requested %d", MAXMTU, Global_Clatd_Config.mtu);
266 Global_Clatd_Config.mtu = MAXMTU;
268 if(Global_Clatd_Config.mtu <= 0) {
269 Global_Clatd_Config.mtu = getifmtu(Global_Clatd_Config.default_pdp_interface);
270 logmsg(ANDROID_LOG_WARN,"ifmtu=%d",Global_Clatd_Config.mtu);
272 if(Global_Clatd_Config.mtu < 1280)
    [all...]
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
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) {
119 if(mtu > 0 && change_type != ROUTE_DELETE) {
120 // MTU is inside an RTA_METRICS nested message
127 if(nla_put(msg, RTAX_MTU, 4, &mtu) < 0) {
  /system/core/include/netutils/
dhcp.h 35 char *mtu);
45 char *mtu);
  /system/netd/
InterfaceController.h 38 int getMtu(const char *interface, int *mtu);
39 int setMtu(const char *interface, const char *mtu);
InterfaceController.cpp 169 int InterfaceController::getMtu(const char *interface, int *mtu)
174 asprintf(&path, "%s/%s/mtu", sys_net_path, interface);
176 if (!success && mtu)
177 *mtu = atoi(buf);
183 int InterfaceController::setMtu(const char *interface, const char *mtu)
186 asprintf(&path, "%s/%s/mtu", sys_net_path, interface);
187 int success = writeFile(path, mtu, strlen(mtu));
  /external/iproute2/tc/
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...]
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)
tc_core.h 24 int cell_log, unsigned mtu, enum link_layer link_layer);
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, linklayer) < 0)
    [all...]
  /external/bluetooth/bluedroid/stack/rfcomm/
port_rfc.c 72 /* Connection is up and we know local and remote features, select MTU */
77 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
215 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu);
288 ** DLCI parameters (currently only MTU is negotiated).
290 ** Otherwise save the MTU size supported by the peer.
293 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k)
299 RFCOMM_TRACE_EVENT2 ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu);
320 /* Connection is up and we know local and remote features, select MTU */
324 p_port->mtu = (p_port->mtu < mtu) ? p_port->mtu : mtu
    [all...]
  /external/libppp/src/
tun.c 98 ifr.ifr_mtu = bundle->iface->mtu;
109 info.mtu = bundle->iface->mtu;
iface.h 41 unsigned long mtu; /* struct tuninfo MTU */ member in struct:iface
tcpmss.c 73 #define MAXMSS(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr) - 12)
165 MAXMSS(bundle->iface->mtu));
  /external/iputils/
tracepath6.c 64 int mtu; variable
140 progress = mtu;
270 mtu = e->ee_info;
271 progress = mtu;
325 memset(pktbuf, 0, mtu);
343 if (sendto(fd, pktbuf, mtu-overhead, 0, (struct sockaddr *)&target, targetlen) > 0)
356 if (recv(fd, pktbuf, mtu, MSG_DONTWAIT) > 0) {
400 mtu = atoi(optarg);
474 if (!mtu)
475 mtu = 128000
    [all...]
tracepath.c 52 int mtu = 65535; variable
127 progress = mtu;
211 mtu = e->ee_info;
212 progress = mtu;
263 memset(pktbuf, 0, mtu);
273 if (sendto(fd, pktbuf, mtu-overhead, 0, (struct sockaddr*)&target, sizeof(target)) > 0)
286 if (recv(fd, pktbuf, mtu, MSG_DONTWAIT) > 0) {
328 if ((mtu = atoi(optarg)) <= overhead) {
411 pktbuf = malloc(mtu);
431 old_mtu = mtu;
    [all...]
  /external/bluetooth/bluedroid/bta/include/
bta_ar_api.h 99 extern void bta_ar_reg_avct(UINT16 mtu, UINT16 mtu_br, UINT8 sec_mask, tBTA_SYS_ID sys_id);
  /external/dhcpcd/dhcpcd-hooks/
Makefile 7 SCRIPTS+= 10-mtu 20-resolv.conf 29-lookup-hostname 30-hostname
  /external/okhttp/src/main/java/com/squareup/okhttp/
Connection.java 110 // Use MTU-sized buffers to send fewer packets.
111 int mtu = Platform.get().getMtu(socket); local
112 if (mtu < 1024) mtu = 1024;
113 if (mtu > 8192) mtu = 8192;
114 in = new BufferedInputStream(in, mtu);
115 out = new BufferedOutputStream(out, mtu);
  /external/tcpdump/
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);
  /bionic/libc/kernel/common/linux/
icmp.h 84 __u16 mtu; member in struct:icmphdr::__anon384::__anon386
  /development/ndk/platforms/android-3/include/linux/
icmp.h 70 __u16 mtu; member in struct:icmphdr::__anon1064::__anon1066

Completed in 1500 milliseconds

1 2 3 4 5 6 7 8 91011>>