/freebsd-10.0-release/contrib/ipfilter/ipsend/ |
H A D | iptest.c | 72 \t\t-m mtu\t\tfake MTU to use when sending out\n\ 97 int mtu = 1500, tests = 0, pointtest = 0, c; local 126 mtu = atoi(optarg); 127 if (mtu < 28) 129 fprintf(stderr, "mtu must be > 28\n"); 182 printf("mtu: %d\n", mtu); 187 ip_test1(dev, mtu, (ip_t *)ti, gwip, pointtest); 190 ip_test2(dev, mtu, (ip_t *)ti, gwip, pointtest); 193 ip_test3(dev, mtu, (ip_ [all...] |
H A D | iptests.c | 125 void ip_test1(dev, mtu, ip, gwip, ptest) 127 int mtu; 295 (void) send_ip(nfd, mtu, ip, gwip, 1); 303 (void) send_ip(nfd, mtu, ip, gwip, 1); 311 (void) send_ip(nfd, mtu, ip, gwip, 1); 319 (void) send_ip(nfd, mtu, ip, gwip, 1); 341 (void) send_ip(nfd, mtu, ip, gwip, 1); 344 ip->ip_len = MIN(768 + 20, mtu - 68); 348 (void) send_ip(nfd, mtu, ip, gwip, 1); 355 (void) send_ip(nfd, mtu, i [all...] |
H A D | ipresend.c | 79 \t\t-m mtu\t\tfake MTU to use when sending out\n\ 93 int mtu = 1500, c; local 105 mtu = atoi(optarg); 106 if (mtu < 28) 108 fprintf(stderr, "mtu must be > 28\n"); 148 printf("mtu: %d\n", mtu); 150 return ip_resend(dev, mtu, ipr, gwip, resend);
|
H A D | ip.c | 89 int send_ip(nfd, mtu, ip, gwip, frag) 90 int nfd, mtu; 148 if (!frag || (sizeof(*eh) + iplen < mtu)) 169 if (mtu < (hlen + 8)) { 170 fprintf(stderr, "mtu (%d) < ip header size (%d) + 8\n", 171 mtu, hlen); 212 if ((sent + (mtu - hlen)) >= iplen) 218 ts = (mtu - hlen); 250 int send_tcp(nfd, mtu, ip, gwip) 251 int nfd, mtu; [all...] |
/freebsd-10.0-release/sbin/natd/ |
H A D | natd.h | 25 extern int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu);
|
/freebsd-10.0-release/tools/tools/netrate/tcpp/ |
H A D | runit.pl | 26 print OUTFILE "kernel,tso,lro,mtu,cores,trial,"; 37 my ($kernel, $tso, $lro, $mtu) = @_; 39 $prefix = "$kernel,$tso,$lro,$mtu"; 42 system("ssh root\@hydra1 ifconfig cxgb0 $tso $lro mtu $mtu"); 44 system("ssh root\@hydra2 ifconfig cxgb0 $tso $lro mtu $mtu"); 57 foreach $mtu (@mtu_options) { 61 test($kernel, $tso, $lro, $mtu);
|
/freebsd-10.0-release/tools/tools/net80211/scripts/mesh/ |
H A D | common | 12 ifconfig $WLAN meshid $MESHID channel $CHANNEL mtu 1500
|
/freebsd-10.0-release/contrib/ofed/libibverbs/examples/ |
H A D | pingpong.h | 40 enum ibv_mtu pp_mtu_to_enum(int mtu);
|
H A D | pingpong.c | 39 enum ibv_mtu pp_mtu_to_enum(int mtu) argument 41 switch (mtu) {
|
/freebsd-10.0-release/sys/net/ |
H A D | if_tun.h | 32 short mtu; /* maximum transmission unit */ member in struct:tuninfo
|
H A D | if_tap.h | 48 short mtu; /* maximum transmission unit */ member in struct:tapinfo
|
/freebsd-10.0-release/tools/tools/net80211/scripts/ |
H A D | setup.local | 11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
|
H A D | setup.simple2 | 12 ifconfig $WLAN ssid $SSID-1 channel $CHANNEL mtu 1500 20 #ifconfig $WLAN ssid $SSID-2 channel $CHANNEL mtu 1500 21 ifconfig $WLAN ssid $SSID-2 mtu 1500 -ht
|
H A D | setup.dfs | 18 ifconfig $WLAN ssid $SSID-$COUNTRY channel $CHANNEL mtu 1500
|
H A D | setup.fixed | 11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
|
H A D | setup.simple | 11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
|
H A D | setup.updown | 17 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
|
/freebsd-10.0-release/usr.sbin/ppp/ |
H A D | tun.c | 98 ifr.ifr_mtu = bundle->iface->mtu; 109 info.mtu = bundle->iface->mtu;
|
H A D | iface.h | 42 unsigned long mtu; /* struct tuninfo MTU */ member in struct:iface
|
/freebsd-10.0-release/usr.sbin/bluetooth/btpand/ |
H A D | client.c | 51 uint16_t mru, mtu; local 111 len = sizeof(mtu); 112 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { 116 if (mtu < BNEP_MTU_MIN) { 117 log_err("L2CAP OMTU too small (%d)", mtu); 127 if (n < (mtu * 2)) { 128 n = mtu * 2; 135 n = mtu; 149 chan->mtu = mtu; [all...] |
H A D | server.c | 154 uint16_t mru, mtu; local 192 len = sizeof(mtu); 193 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { 198 if (mtu < BNEP_MTU_MIN) { 199 log_err("L2CAP OMTU too small (%d)", mtu); 211 if (n < (mtu * 2)) { 212 n = mtu * 2; 220 n = mtu; 245 chan->mtu = mtu; [all...] |
/freebsd-10.0-release/contrib/ofed/libibverbs/include/infiniband/ |
H A D | sa.h | 57 uint8_t mtu; member in struct:ibv_sa_path_rec 71 uint8_t mtu; member in struct:ibv_sa_mcmember_rec 113 uint8_t mtu; /* mtu selector-7:6 mtu-5:0 */ member in struct:ibv_path_record
|
H A D | sa-kern-abi.h | 51 __u32 mtu; member in struct:ibv_kern_path_rec
|
/freebsd-10.0-release/sys/netinet/ |
H A D | sctp_cc_functions.c | 65 net->cwnd = min((net->mtu * 4), max((2 * net->mtu), SCTP_INITIAL_CWND)); 73 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; 79 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { 80 net->cwnd = net->mtu - sizeof(struct sctphdr); 140 (uint64_t) net->mtu * 161 (uint64_t) net->mtu * 171 if (net->ssthresh < net->mtu) { 172 net->ssthresh = net->mtu; 176 if (net->ssthresh < (net->mtu * [all...] |
/freebsd-10.0-release/sys/ofed/include/rdma/ |
H A D | ib_addr.h | 205 static inline enum ib_mtu iboe_get_mtu(int mtu) argument 211 mtu = mtu - IB_GRH_BYTES - IB_BTH_BYTES - 28; 213 if (mtu >= ib_mtu_enum_to_int(IB_MTU_4096)) 215 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_2048)) 217 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_1024)) 219 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_512)) 221 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_256))
|