Searched refs:IP_MAXPACKET (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-13-stable/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c143 char buf[IP_MAXPACKET - sizeof(struct ip)];
146 char recvbuf[IP_MAXPACKET];
299 for (i = 0 ; i < IP_MAXPACKET - 60000; i++)
303 for (i = IP_MAXPACKET - 60000; i < IP_MAXPACKET - 100; i += 1000)
307 for (i = IP_MAXPACKET - 100; i < IP_MAXPACKET; i += 10)
310 printf("got %d/%d\n", succ, IP_MAXPACKET);
/freebsd-13-stable/sbin/natd/
H A Dicmp.c41 char icmpBuf[IP_MAXPACKET];
106 LibAliasIn (mla, (char*) ip, IP_MAXPACKET);
H A Dnatd.c516 char buf[IP_MAXPACKET];
585 if (LibAliasOutTry (mla, buf, IP_MAXPACKET, 0) != PKT_ALIAS_IGNORED)
641 char buf[IP_MAXPACKET];
726 LibAliasOut (mla, buf, IP_MAXPACKET);
733 status = LibAliasIn (mla, buf, IP_MAXPACKET);
/freebsd-13-stable/contrib/tcpdump/
H A Dip.h69 #define IP_MAXPACKET 65535 /* maximum packet size */ macro
/freebsd-13-stable/tests/sys/netinet/libalias/
H A Dutil.c95 REQUIRE(len >= 64 && len <= IP_MAXPACKET);
/freebsd-13-stable/sys/netinet/
H A Dip.h74 #define IP_MAXPACKET 65535 /* maximum packet size */ macro
H A Dip_reass.c241 if (ntohs(ip->ip_len) + ntohs(ip->ip_off) > IP_MAXPACKET) {
452 if (next + (ip->ip_hl << 2) > IP_MAXPACKET) {
H A Draw_ip.c471 if (m->m_pkthdr.len + sizeof(struct ip) > IP_MAXPACKET) {
524 if (m->m_pkthdr.len > IP_MAXPACKET) {
H A Dip_options.c515 if (optlen + ntohs(ip->ip_len) > IP_MAXPACKET) {
H A Dtcp_output.c1004 KASSERT(len + hdrlen + ipoptlen <= IP_MAXPACKET,
1005 ("%s: len > IP_MAXPACKET", __func__));
/freebsd-13-stable/contrib/sendmail/src/
H A Dsm_resolve.c1293 # ifndef IP_MAXPACKET
1294 # define IP_MAXPACKET 65535 macro
1337 if (len >= IP_MAXPACKET)
1341 domain, len, SMRBSIZE, IP_MAXPACKET);
1347 domain, len, SMRBSIZE, IP_MAXPACKET);
1348 reply = (unsigned char *)sm_malloc(IP_MAXPACKET);
1355 reply, IP_MAXPACKET);
1387 if (len >= 0 && len < IP_MAXPACKET && reply != NULL)
/freebsd-13-stable/usr.sbin/ipfwpcap/
H A Dipfwpcap.c41 #include <netinet/in_systm.h> /* for IP_MAXPACKET */
42 #include <netinet/ip.h> /* for IP_MAXPACKET */
52 #ifdef IP_MAXPACKET
53 #define BUFMAX IP_MAXPACKET
/freebsd-13-stable/sbin/ping/
H A Dping.c176 static u_char outpackhdr[IP_MAXPACKET], *outpack;
241 u_char *datap, packet[IP_MAXPACKET] __aligned(4);
581 maxpayload = IP_MAXPACKET - icmp_len;
844 hold = IP_MAXPACKET + 128;
911 iov.iov_len = IP_MAXPACKET;
/freebsd-13-stable/sys/dev/vnic/
H A Dnicvf_queues.h138 #define NICVF_TSO_MAXSIZE IP_MAXPACKET
/freebsd-13-stable/sys/netgraph/
H A Dng_device.c468 if (uio->uio_resid < 0 || uio->uio_resid > IP_MAXPACKET)
H A Dng_ksocket.c1084 uio.uio_resid = IP_MAXPACKET;
/freebsd-13-stable/sys/netinet/libalias/
H A Dalias_irc.c87 #define PKTSIZE (IP_MAXPACKET + 1)
/freebsd-13-stable/sys/dev/hyperv/netvsc/
H A Dhn_rndis.c613 tso_maxsz = IP_MAXPACKET;
638 KASSERT(tso_maxsz <= IP_MAXPACKET,
H A Dif_hn.c144 #define HN_TX_DATA_MAXSIZE IP_MAXPACKET
510 static int hn_tso_maxlen = IP_MAXPACKET;
5608 sc->hn_ndis_tso_szmax <= IP_MAXPACKET,
5613 else if (tso_maxlen > IP_MAXPACKET)
5614 tso_maxlen = IP_MAXPACKET;
/freebsd-13-stable/sys/netpfil/pf/
H A Dpf_norm.c568 /* Respect maximum length, IP_MAXPACKET == IPV6_MAXPACKET. */
569 if (frent->fe_off + frent->fe_len > IP_MAXPACKET) {
804 if (hdrlen + total > IP_MAXPACKET) {
1115 if (fragoff + ip_len > IP_MAXPACKET) {
/freebsd-13-stable/sys/netipsec/
H A Dxform_ah.c864 maxpacketsize = IP_MAXPACKET;
H A Dxform_esp.c727 maxpacketsize = IP_MAXPACKET;
H A Dxform_ipcomp.c427 maxpacketsize = IP_MAXPACKET;
/freebsd-13-stable/sys/net/
H A Dif_vxlan.c98 #define VXLAN_MAX_MTU (IP_MAXPACKET - \
3137 if (p->if_hw_tsomax > IP_MAXPACKET - ifp->if_hdrlen)
3138 ifp->if_hw_tsomax = IP_MAXPACKET - ifp->if_hdrlen;
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_socket.c794 linux_args->len > IP_MAXPACKET)

Completed in 320 milliseconds

12