Home
last modified time | relevance | path

Searched refs:ETHERMIN (Results 1 – 11 of 11) sorted by relevance

/openbsd/usr.sbin/npppd/pppoe/
H A Dpppoe_session.c194 char pad[ETHERMIN]; in pppoe_session_output()
223 if (tlen < ETHERMIN) { in pppoe_session_output()
224 memset(pad, 0, ETHERMIN - tlen); in pppoe_session_output()
226 iov[niov++].iov_len = ETHERMIN - tlen; in pppoe_session_output()
H A Dpppoed.c768 u_char pad[ETHERMIN]; in pppoed_output()
783 if (lpkt < ETHERMIN) { in pppoed_output()
784 memset(pad, 0, ETHERMIN - lpkt); in pppoed_output()
786 iov[2].iov_len = ETHERMIN - lpkt; in pppoed_output()
/openbsd/sys/arch/macppc/dev/
H A Dif_mc.c851 if (totlen < ETHERMIN + sizeof(struct ether_header)) { in maceput()
852 int pad = ETHERMIN + sizeof(struct ether_header) - totlen; in maceput()
854 totlen = ETHERMIN + sizeof(struct ether_header); in maceput()
H A Dif_bm.c429 bzero(data, sizeof(*eh) + ETHERMIN); in bmac_init()
432 bmac_transmit_packet(sc, sc->sc_txbuf_pa, sizeof(*eh) + ETHERMIN); in bmac_init()
/openbsd/sys/netinet/
H A Dif_ether.h138 #define ETHERMIN (ETHER_MIN_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN) macro
/openbsd/sys/net/
H A Dif_tun.c556 if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > TUNMRU) in tun_ioctl()
711 if (tunp->mtu < ETHERMIN || tunp->mtu > TUNMRU) { in tun_dev_ioctl()
H A Dpipex.c1268 static const u_char pipex_pppoe_padding[ETHERMIN];
1343 padlen = ETHERMIN - m0->m_pkthdr.len; in pipex_pppoe_output()
H A Dif_ethersubr.c182 if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ifp->if_hardmtu) in ether_ioctl()
H A Dif_aggr.c2629 if (mtu < ETHERMIN || mtu > ifp->if_hardmtu) in aggr_set_mtu()
/openbsd/sys/dev/usb/
H A Dif_upl.c762 if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ifp->if_hardmtu) in upl_ioctl()
/openbsd/sys/dev/ic/
H A Dlemac.c260 length - sizeof(eh) < ETHERMIN) in lemac_input()