Home
last modified time | relevance | path

Searched refs:ETH_HLEN (Results 1 – 25 of 37) sorted by relevance

12

/linux-2.4.37.9/net/ethernet/
Deth.c78 struct ethhdr *eth = (struct ethhdr *)skb_push(skb,ETH_HLEN); in eth_header()
231 hh->hh_len = ETH_HLEN; in eth_header_cache()
/linux-2.4.37.9/net/atm/
Dbr2684.c284 hh->hh_len = PADLEN + ETH_HLEN; in br2684_header_cache()
411 int plen = sizeof(llc_oui_pid_pad) + ETH_HLEN; in br2684_push()
444 plen = PADLEN + ETH_HLEN; /* pad, dstmac,srcmac, ethtype */ in br2684_push()
462 skb->mac.raw = ((char *) (skb->data)) - ETH_HLEN; in br2684_push()
470 skb_pull(skb, plen - ETH_HLEN); in br2684_push()
623 brdev->net_dev.hard_header_len = sizeof(llc_oui_pid_pad) + ETH_HLEN; /* 10 + 14 */ in br2684_create()
Dmpc.c516 skb_pull(skb, ETH_HLEN); /* get rid of Eth header */ in send_via_shortcut()
520 skb_pull(skb, ETH_HLEN); /* get rid of Eth header */ in send_via_shortcut()
/linux-2.4.37.9/drivers/net/pcmcia/
Dray_cs.c1189 data + ETH_HLEN, len - ETH_HLEN); in translate_frame()
1190 return (int) sizeof(struct snaphdr_t) - ETH_HLEN; in translate_frame()
1196 memcpy_toio((UCHAR *)&ptx->var, data + ETH_HLEN, len - ETH_HLEN); in translate_frame()
1197 return 0 - ETH_HLEN; in translate_frame()
1199 memcpy_toio((UCHAR *)&ptx->var, data + ETH_HLEN, len - ETH_HLEN); in translate_frame()
1200 return 0 - ETH_HLEN; in translate_frame()
2325 if (rx_len < (ETH_HLEN + RX_MAC_HEADER_LENGTH) || in rx_data()
2326 rx_len > (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + FCS_LEN)) in rx_data()
2333 if (rx_len < (ETH_HLEN + RX_MAC_HEADER_LENGTH) || in rx_data()
2334 rx_len > (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + FCS_LEN)) in rx_data()
[all …]
/linux-2.4.37.9/include/linux/
Dif_ether.h30 #define ETH_HLEN 14 /* Total octets in header. */ macro
Dif_tr.h30 #define ETH_HLEN 14 /* Total octets in header. */
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_mac.c23 && (skb->mac.raw + ETH_HLEN) <= skb->data in match()
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6t_mac.c23 && (skb->mac.raw + ETH_HLEN) <= skb->data in match()
Dip6t_eui64.c24 && (skb->mac.raw + ETH_HLEN) <= skb->data) in match()
Dip6t_LOG.c386 (p -= ETH_HLEN) < (*pskb)->head) in ip6t_log_target()
/linux-2.4.37.9/net/bluetooth/bnep/
Dcore.c301 ETH_HLEN, /* BNEP_GENERAL */
351 nskb = alloc_skb(2 + ETH_HLEN + skb->len, GFP_KERNEL); in bnep_rx_frame()
362 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); in bnep_rx_frame()
/linux-2.4.37.9/drivers/net/
Dloopback.c113 dev->hard_header_len = ETH_HLEN; /* 14 */ in loopback_init()
Dmyri_sbus.c448 if (len < (ETH_HLEN + MYRI_PAD_LEN) || (skb->data[0] != MYRI_PAD_LEN)) { in myri_rx()
451 if (len < (ETH_HLEN + MYRI_PAD_LEN)) { in myri_rx()
684 struct ethhdr *eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in myri_header()
799 if ((new_mtu < (ETH_HLEN + MYRI_PAD_LEN)) || (new_mtu > MYRINET_MTU)) in myri_change_mtu()
1079 dev->hard_header_len = (ETH_HLEN + MYRI_PAD_LEN); in myri_ether_init()
Dacenic.c537 #define ACE_STD_BUFSIZE (ACE_STD_MTU + ETH_HLEN + 2+4+16)
538 #define ACE_JUMBO_BUFSIZE (ACE_JUMBO_MTU + ETH_HLEN + 2+4+16)
1507 info->rx_std_ctrl.max_len = ACE_STD_MTU + ETH_HLEN + 4; in ace_init()
1967 rd->size = ACE_STD_MTU + ETH_HLEN + 4; in ace_load_std_rx_ring()
2094 rd->size = ACE_JUMBO_MTU + ETH_HLEN + 4; in ace_load_jumbo_rx_ring()
2599 writel(dev->mtu + ETH_HLEN + 4, &regs->IfMtu); in ace_open()
2929 writel(new_mtu + ETH_HLEN + 4, &regs->IfMtu); in ace_change_mtu()
Dmv64340_eth.c70 #define WRAP ETH_HLEN + 2 + 4 + 16
190 pkt_info.byte_cnt = dev->mtu + ETH_HLEN + 4 + 2 + EXTRA_BYTES; in mv64340_eth_rx_task()
198 dev->mtu + ETH_HLEN + 4 + 2 + EXTRA_BYTES, in mv64340_eth_rx_task()
515 ip_h = (struct iphdr *) (skb->data + ETH_HLEN);
Dnet_init.c420 dev->hard_header_len = ETH_HLEN; in ether_setup()
Dtitan_ge.c1462 iph = (struct iphdr*)(skb->data + ETH_HLEN);
1498 skb->nh.raw = skb->data + ETH_HLEN;
/linux-2.4.37.9/net/bridge/
Dbr_device.c57 skb_pull(skb, ETH_HLEN); in __br_dev_xmit()
Dbr_forward.c35 skb_push(skb, ETH_HLEN); in __dev_queue_push_xmit()
Dbr_input.c42 skb_push(skb, ETH_HLEN); in br_pass_frame_up()
/linux-2.4.37.9/drivers/net/wireless/
Dorinoco.c1741 skb = dev_alloc_skb(length+ETH_HLEN+2+1); in __orinoco_ev_rx()
1772 eh = (struct ethhdr *)skb_put(skb, ETH_HLEN); in __orinoco_ev_rx()
2042 priv->nicbuf_size = IEEE802_11_FRAME_LEN + ETH_HLEN; in orinoco_init()
2368 len = max_t(int,skb->len - ETH_HLEN, ETH_ZLEN - ETH_HLEN); in orinoco_xmit()
2393 p = skb->data + ETH_HLEN; in orinoco_xmit()
2414 if (len < ETH_ZLEN - ETH_HLEN) in orinoco_xmit()
2415 len = ETH_ZLEN - ETH_HLEN; in orinoco_xmit()
2417 data_len = len + ETH_HLEN; in orinoco_xmit()
2489 (priv->nicbuf_size - ETH_HLEN) ) in orinoco_change_mtu()
/linux-2.4.37.9/drivers/isdn/
Disdn_net.c1155 int pullsize = (ulong)skb->nh.raw - (ulong)skb->data - ETH_HLEN; in isdn_net_adjust_hdr()
1403 skb_pull(skb, ETH_HLEN); in isdn_net_type_trans()
1914 struct ethhdr *eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in my_eth_header()
1941 return ETH_HLEN /*(dev->hard_header_len)*/; in my_eth_header()
1945 return ETH_HLEN /*dev->hard_header_len*/; in my_eth_header()
1947 return -ETH_HLEN /*dev->hard_header_len*/; in my_eth_header()
2086 ndev->hard_header_len = ETH_HLEN + max_hlhdr_len; in isdn_net_init()
/linux-2.4.37.9/drivers/s390/net/
Dqeth.h332 return QETH_HEADER_SIZE+ETH_HLEN; in qeth_get_hlen()
549 #define QETH_FAKE_LL_LEN ETH_HLEN /* 14 */
/linux-2.4.37.9/drivers/net/bonding/
Dbond_alb.c112 u8 padding[ETH_ZLEN - ETH_HLEN];
916 skb->nh.raw = data + ETH_HLEN; in alb_send_learning_packets()
/linux-2.4.37.9/net/8021q/
Dvlan_dev.c85 memmove(skb->data - ETH_HLEN, in vlan_check_reorder_header()

12