Searched refs:mtu (Results 1 - 25 of 229) sorted by relevance

12345678910

/freebsd-10.0-release/contrib/ipfilter/ipsend/
H A Diptest.c72 \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 Diptests.c125 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 Dipresend.c79 \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 Dip.c89 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 Dnatd.h25 extern int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu);
/freebsd-10.0-release/tools/tools/netrate/tcpp/
H A Drunit.pl26 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 Dcommon12 ifconfig $WLAN meshid $MESHID channel $CHANNEL mtu 1500
/freebsd-10.0-release/contrib/ofed/libibverbs/examples/
H A Dpingpong.h40 enum ibv_mtu pp_mtu_to_enum(int mtu);
H A Dpingpong.c39 enum ibv_mtu pp_mtu_to_enum(int mtu) argument
41 switch (mtu) {
/freebsd-10.0-release/sys/net/
H A Dif_tun.h32 short mtu; /* maximum transmission unit */ member in struct:tuninfo
H A Dif_tap.h48 short mtu; /* maximum transmission unit */ member in struct:tapinfo
/freebsd-10.0-release/tools/tools/net80211/scripts/
H A Dsetup.local11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
H A Dsetup.simple212 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 Dsetup.dfs18 ifconfig $WLAN ssid $SSID-$COUNTRY channel $CHANNEL mtu 1500
H A Dsetup.fixed11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
H A Dsetup.simple11 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
H A Dsetup.updown17 ifconfig $WLAN ssid $SSID channel $CHANNEL mtu 1500
/freebsd-10.0-release/usr.sbin/ppp/
H A Dtun.c98 ifr.ifr_mtu = bundle->iface->mtu;
109 info.mtu = bundle->iface->mtu;
H A Diface.h42 unsigned long mtu; /* struct tuninfo MTU */ member in struct:iface
/freebsd-10.0-release/usr.sbin/bluetooth/btpand/
H A Dclient.c51 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 Dserver.c154 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 Dsa.h57 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 Dsa-kern-abi.h51 __u32 mtu; member in struct:ibv_kern_path_rec
/freebsd-10.0-release/sys/netinet/
H A Dsctp_cc_functions.c65 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 Dib_addr.h205 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))

Completed in 162 milliseconds

12345678910