Searched refs:ETHER_HEADER_LENGTH (Results 1 – 4 of 4) sorted by relevance
14 #define ETHER_HEADER_LENGTH 14 macro
155 device->mtu = ETHER_MAX_FRAME_SIZE - ETHER_HEADER_LENGTH; in ethernet_init()157 device->header_length = ETHER_HEADER_LENGTH; in ethernet_init()277 if (buffer->size > device->frame_size || buffer->size < ETHER_HEADER_LENGTH) in ethernet_send_data()384 if (mtu > device->frame_size - ETHER_HEADER_LENGTH in ethernet_set_mtu()385 || mtu <= ETHER_HEADER_LENGTH + 10) in ethernet_set_mtu()
30 #define PPP_HEADER_LENGTH (8 + ETHER_HEADER_LENGTH)246 if (mtu > device->frame_size - ETHER_HEADER_LENGTH - 8 in ppp_set_mtu()247 || mtu <= ETHER_HEADER_LENGTH + 8 + 10) in ppp_set_mtu()
689 ETHER_HEADER_LENGTH + offsetof(struct ip, ip_p), in virtio_net_receive()693 ETHER_HEADER_LENGTH + offsetof(struct ip6_hdr, ip6_nxt), in virtio_net_receive()