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

1234567891011>>

/freebsd-head/share/examples/libifconfig/
H A Dsetmtu.c44 int mtu; local
55 mtu = (int)strtol(argv[2], &ptr, 10);
58 printf("New MTU: %d", mtu);
66 if (ifconfig_set_mtu(lifh, ifname, mtu) == 0) {
67 printf("Successfully changed MTU of %s to %d\n", ifname, mtu);
/freebsd-head/contrib/ipfilter/ipsend/
H A Diptest.c59 \t\t-m mtu\t\tfake MTU to use when sending out\n\
84 int mtu = 1500, tests = 0, pointtest = 0, c; local
113 mtu = atoi(optarg);
114 if (mtu < 28)
116 fprintf(stderr, "mtu must be > 28\n");
169 printf("mtu: %d\n", mtu);
174 ip_test1(dev, mtu, (ip_t *)ti, gwip, pointtest);
177 ip_test2(dev, mtu, (ip_t *)ti, gwip, pointtest);
180 ip_test3(dev, mtu, (ip_
[all...]
H A Diptests.c105 void ip_test1(dev, mtu, ip, gwip, ptest)
107 int mtu;
275 (void) send_ip(nfd, mtu, ip, gwip, 1);
283 (void) send_ip(nfd, mtu, ip, gwip, 1);
291 (void) send_ip(nfd, mtu, ip, gwip, 1);
299 (void) send_ip(nfd, mtu, ip, gwip, 1);
321 (void) send_ip(nfd, mtu, ip, gwip, 1);
324 ip->ip_len = MIN(768 + 20, mtu - 68);
328 (void) send_ip(nfd, mtu, ip, gwip, 1);
335 (void) send_ip(nfd, mtu, i
[all...]
H A Dipresend.c69 \t\t-m mtu\t\tfake MTU to use when sending out\n\
83 int mtu = 1500, c; local
95 mtu = atoi(optarg);
96 if (mtu < 28)
98 fprintf(stderr, "mtu must be > 28\n");
138 printf("mtu: %d\n", mtu);
140 return ip_resend(dev, mtu, ipr, gwip, resend);
H A Dip.c84 int send_ip(nfd, mtu, ip, gwip, frag)
85 int nfd, mtu;
143 if (!frag || (sizeof(*eh) + iplen < mtu))
164 if (mtu < (hlen + 8)) {
165 fprintf(stderr, "mtu (%d) < ip header size (%d) + 8\n",
166 mtu, hlen);
207 if ((sent + (mtu - hlen)) >= iplen)
213 ts = (mtu - hlen);
245 int send_tcp(nfd, mtu, ip, gwip)
246 int nfd, mtu;
[all...]
/freebsd-head/sbin/natd/
H A Dnatd.h25 extern int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu);
/freebsd-head/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-head/tools/tools/net80211/scripts/mesh/
H A Dcommon12 ifconfig $WLAN meshid $MESHID channel $CHANNEL mtu 1500
/freebsd-head/sys/dev/hyperv/netvsc/
H A Dhn_rndis.h36 int hn_rndis_attach(struct hn_softc *sc, int mtu, int *init_done);
44 int hn_rndis_get_mtu(struct hn_softc *sc, uint32_t *mtu);
/freebsd-head/contrib/ofed/libibverbs/examples/
H A Dpingpong.h38 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-head/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
/freebsd-head/sys/dev/qlnx/qlnxe/
H A Decore_hsi_init_func.h73 u32 mtu /* Max packet size (in bytes) */; member in struct:init_ets_req
86 u32 mtu /* Max packet size (in bytes) */; member in struct:init_nig_lb_rl_req
/freebsd-head/tests/sys/netpfil/common/
H A Dfragments.sh50 ifconfig ${epair}b mtu 200
51 jexec iron ifconfig ${epair}a mtu 200
/freebsd-head/sys/net/
H A Dif_tun.h32 unsigned short mtu; /* maximum transmission unit */ member in struct:tuninfo
/freebsd-head/usr.sbin/ppp/
H A Dtun.c100 ifr.ifr_mtu = bundle->iface->mtu;
111 info.mtu = bundle->iface->mtu;
H A Diface.h44 unsigned long mtu; /* struct tuninfo MTU */ member in struct:iface
/freebsd-head/crypto/openssl/ssl/
H A Dd1_lib.c90 d1->mtu = 0;
158 size_t mtu; local
168 mtu = s->d1->mtu;
183 s->d1->mtu = mtu;
233 s->d1->mtu = larg;
366 size_t mtu; local
373 mtu =
375 if (mtu <
937 size_t mtu = s->d1->mtu; local
[all...]
/freebsd-head/usr.sbin/bluetooth/btpand/
H A Dclient.c54 uint16_t mru, mtu; local
117 len = sizeof(mtu);
118 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) {
122 if (mtu < BNEP_MTU_MIN) {
123 log_err("L2CAP OMTU too small (%d)", mtu);
133 if (n < (mtu * 2)) {
134 n = mtu * 2;
141 n = mtu;
155 chan->mtu = mtu;
[all...]
H A Dserver.c160 uint16_t mru, mtu; local
198 len = sizeof(mtu);
199 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) {
204 if (mtu < BNEP_MTU_MIN) {
205 log_err("L2CAP OMTU too small (%d)", mtu);
217 if (n < (mtu * 2)) {
218 n = mtu * 2;
226 n = mtu;
251 chan->mtu = mtu;
[all...]
/freebsd-head/contrib/ofed/libibverbs/
H A Dsa.h58 uint8_t mtu; member in struct:ibv_sa_path_rec
72 uint8_t mtu; member in struct:ibv_sa_mcmember_rec
114 uint8_t mtu; /* mtu selector-7:6 mtu-5:0 */ member in struct:ibv_path_record
/freebsd-head/sys/dev/ixl/
H A Dixl_iw.h59 u16 mtu; member in struct:ixl_iw_pf
/freebsd-head/sys/netinet/
H A Dsctp_cc_functions.c62 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) {
64 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) {
65 net->cwnd = net->mtu - sizeof(struct sctphdr);
80 net->cwnd = min((net->mtu * 4), max((2 * net->mtu), SCTP_INITIAL_CWND));
88 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu;
94 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) {
95 net->cwnd = net->mtu - sizeof(struct sctphdr);
157 (uint64_t)net->mtu *
178 (uint64_t)net->mtu *
[all...]

Completed in 520 milliseconds

1234567891011>>