Home
last modified time | relevance | path

Searched refs:hard_header_len (Results 1 – 25 of 94) sorted by relevance

1234

/linux-2.4.37.9/net/ethernet/
Deth.c102 return dev->hard_header_len; in eth_header()
112 return(dev->hard_header_len); in eth_header()
115 return -dev->hard_header_len; in eth_header()
164 skb_pull(skb,dev->hard_header_len); in eth_type_trans()
/linux-2.4.37.9/drivers/net/
Dnet_init.c420 dev->hard_header_len = ETH_HLEN; in ether_setup()
446 dev->hard_header_len = FDDI_K_SNAP_HLEN+3; /* Assume 802.2 SNAP hdr len + 3 pad bytes */ in fddi_setup()
479 dev->hard_header_len = HIPPI_HLEN; in hippi_setup()
520 dev->hard_header_len = LTALK_HLEN; in ltalk_setup()
591 dev->hard_header_len = TR_HLEN; in tr_setup()
668 dev->hard_header_len = FC_HLEN; in fc_setup()
Dpppoe.c646 dev->hard_header_len); in pppoe_connect()
821 if (total_len > (dev->mtu + dev->hard_header_len)) in pppoe_sendmsg()
825 skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32, in pppoe_sendmsg()
833 skb_reserve(skb, dev->hard_header_len); in pppoe_sendmsg()
895 if (headroom < (sizeof(struct pppoe_hdr) + dev->hard_header_len)) { in __pppoe_xmit()
898 dev->hard_header_len); in __pppoe_xmit()
903 skb_reserve(skb2, dev->hard_header_len + sizeof(struct pppoe_hdr)); in __pppoe_xmit()
Dloopback.c113 dev->hard_header_len = ETH_HLEN; /* 14 */ in loopback_init()
Dshaper.c573 shdev->hard_header_len=dev->hard_header_len; in shaper_attach()
666 dev->hard_header_len = 0; in shaper_probe()
Dppp_generic.c831 ns = alloc_skb(skb->len + dev->hard_header_len, GFP_ATOMIC); in ppp_start_xmit()
834 skb_reserve(ns, dev->hard_header_len); in ppp_start_xmit()
909 dev->hard_header_len = PPP_HDRLEN; in ppp_net_init()
995 new_skb = alloc_skb(skb->len + ppp->dev->hard_header_len - 2, in ppp_send_frame()
1001 skb_reserve(new_skb, ppp->dev->hard_header_len - 2); in ppp_send_frame()
1034 new_skb = alloc_skb(ppp->dev->mtu + ppp->dev->hard_header_len, in ppp_send_frame()
1040 if (ppp->dev->hard_header_len > PPP_HDRLEN) in ppp_send_frame()
1042 ppp->dev->hard_header_len - PPP_HDRLEN); in ppp_send_frame()
2449 if (ppp->dev && hdrlen > ppp->dev->hard_header_len) in ppp_connect_channel()
2450 ppp->dev->hard_header_len = hdrlen; in ppp_connect_channel()
/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_ULOG.c224 if (in && in->hard_header_len > 0 in ipt_ulog_target()
226 && in->hard_header_len <= ULOG_MAC_LEN) { in ipt_ulog_target()
227 memcpy(pm->mac, (*pskb)->mac.raw, in->hard_header_len); in ipt_ulog_target()
228 pm->mac_len = in->hard_header_len; in ipt_ulog_target()
Dipt_LOG.c323 if ((*pskb)->dev && (*pskb)->dev->hard_header_len && (*pskb)->mac.raw != (void*)iph) { in ipt_log_target()
326 for (i = 0; i < (*pskb)->dev->hard_header_len; i++,p++) in ipt_log_target()
328 i==(*pskb)->dev->hard_header_len - 1 in ipt_log_target()
/linux-2.4.37.9/net/sched/
Dsch_teql.c190 if (dev->hard_header_len > m->dev.hard_header_len) in teql_qdisc_init()
371 if (slave->hard_header_len > LL_MAX_HEADER) in teql_master_open()
437 dev->hard_header_len = LL_MAX_HEADER; in teql_master_init()
/linux-2.4.37.9/net/ipv6/
Dip6_output.c206 head_room += sizeof(struct ipv6hdr) + ((dst->dev->hard_header_len + 15)&~15); in ip6_xmit()
416 dst->dev->hard_header_len + 15, in ip6_frag_xmit()
424 skb_reserve(last_skb, (dst->dev->hard_header_len + 15) & ~15); in ip6_frag_xmit()
636 dev->hard_header_len, in ip6_build_xmit()
646 skb_reserve(skb, (dev->hard_header_len + 15) & ~15); in ip6_build_xmit()
811 if (skb_cow(skb, dst->dev->hard_header_len)) in ip6_forward()
Dsit.c553 max_headroom = (((tdev->hard_header_len+15)&~15)+sizeof(struct iphdr)); in ipip6_tunnel_xmit()
747 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); in ipip6_tunnel_init_gen()
780 dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); in ipip6_tunnel_init()
/linux-2.4.37.9/net/appletalk/
Daarp.c116 int len = dev->hard_header_len + sizeof(struct elapaarp) + in __aarp_send_query()
131 skb_reserve(skb, dev->hard_header_len + aarp_dl->header_length); in __aarp_send_query()
171 int len = dev->hard_header_len + sizeof(struct elapaarp) + in aarp_send_reply()
180 skb_reserve(skb, dev->hard_header_len + aarp_dl->header_length); in aarp_send_reply()
222 int len = dev->hard_header_len + sizeof(struct elapaarp) + in aarp_send_probe()
233 skb_reserve(skb, dev->hard_header_len + aarp_dl->header_length); in aarp_send_probe()
/linux-2.4.37.9/net/802/
Dllc_sendpdu.c251 fr = (frameptr) (skb->data + lp->dev->hard_header_len); in llc_resend_ipdu()
344 fr = (frameptr) (pp->data + lp->dev->hard_header_len); in llc_free_acknowledged_skbs()
/linux-2.4.37.9/drivers/net/wan/
Dcomx-proto-fr.c90 skb=alloc_skb(dev->hard_header_len + 13, GFP_ATOMIC); in fr_keepalive_send()
95 skb_reserve(skb, dev->hard_header_len); in fr_keepalive_send()
549 skb_push(skb, dev->hard_header_len); in fr_header()
556 return dev->hard_header_len; in fr_header()
740 dev->hard_header_len = 0; in fr_exit()
791 dev->hard_header_len = 4; in fr_master_init()
850 dev->hard_header_len = 4; in fr_slave_init()
Dhdlc_ppp.c64 dev->hard_header_len = 16; in ppp_close()
Dcomx-proto-lapb.c61 return dev->hard_header_len; in comxlapb_header()
400 dev->hard_header_len = 0; in comxlapb_exit()
432 dev->hard_header_len = 4; in comxlapb_init()
Dhdlc_generic.c140 dev->hard_header_len = 16; in register_hdlc_device()
/linux-2.4.37.9/net/ipv4/
Dip_output.c303 if (skb_headroom(skb) < dev->hard_header_len && dev->hard_header) { in ip_queue_xmit2()
306 skb2 = skb_realloc_headroom(skb, (dev->hard_header_len + 15) & ~15); in ip_queue_xmit2()
455 int hh_len = (rt->u.dst.dev->hard_header_len + 15)&~15; in ip_build_xmit_slow()
697 int hh_len = (rt->u.dst.dev->hard_header_len + 15)&~15; in ip_build_xmit()
815 if ((skb2 = alloc_skb(len+hlen+dev->hard_header_len+15,GFP_ATOMIC)) == NULL) { in ip_fragment()
827 skb_reserve(skb2, (dev->hard_header_len+15)&~15); in ip_fragment()
Dip_forward.c121 if (skb_cow(skb, dev2->hard_header_len)) in ip_forward()
Dipip.c603 max_headroom = (((tdev->hard_header_len+15)&~15)+sizeof(struct iphdr)); in ipip_tunnel_xmit()
794 dev->hard_header_len = LL_MAX_HEADER + sizeof(struct iphdr); in ipip_tunnel_init_gen()
827 dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); in ipip_tunnel_init()
/linux-2.4.37.9/net/packet/
Daf_packet.c347 if(len>dev->mtu+dev->hard_header_len) in packet_sendmsg_spkt()
351 skb = sock_wmalloc(sk, len+dev->hard_header_len+15, 0, GFP_KERNEL); in packet_sendmsg_spkt()
370 skb_reserve(skb,(dev->hard_header_len+15)&~15); in packet_sendmsg_spkt()
375 skb->data -= dev->hard_header_len; in packet_sendmsg_spkt()
376 skb->tail -= dev->hard_header_len; in packet_sendmsg_spkt()
377 if (len < dev->hard_header_len) in packet_sendmsg_spkt()
718 reserve = dev->hard_header_len; in packet_sendmsg()
724 skb = sock_alloc_send_skb(sk, len+dev->hard_header_len+15, in packet_sendmsg()
729 skb_reserve(skb, (dev->hard_header_len+15)&~15); in packet_sendmsg()
/linux-2.4.37.9/drivers/ieee1394/
Deth1394.c416 dev->hard_header_len = ETH1394_HLEN; in ether1394_init_dev()
564 return(dev->hard_header_len); in ether1394_header()
570 return dev->hard_header_len; in ether1394_header()
573 return -dev->hard_header_len; in ether1394_header()
864 new->skb = dev_alloc_skb(dg_size + dev->hard_header_len + 15); in new_partial_datagram()
874 skb_reserve(new->skb, (dev->hard_header_len + 15) & ~15); in new_partial_datagram()
936 skb = dev_alloc_skb(len + dev->hard_header_len + 15); in ether1394_data_handler()
942 skb_reserve(skb, (dev->hard_header_len + 15) & ~15); in ether1394_data_handler()
/linux-2.4.37.9/net/8021q/
Dvlan.c460 new_dev->hard_header_len = real_dev->hard_header_len; in register_vlan_device()
463 new_dev->hard_header_len += VLAN_HLEN; in register_vlan_device()
/linux-2.4.37.9/net/decnet/
Ddn_neigh.c200 int headroom = dev->hard_header_len + sizeof(struct dn_long_packet) + 3; in dn_long_output()
246 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_short_output()
289 int headroom = dev->hard_header_len + sizeof(struct dn_short_packet) + 2; in dn_phase3_output()
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_conn.c665 if (unlikely(skb_headroom(skb) < rt->u.dst.dev->hard_header_len)) { in ip_vs_bypass_xmit()
666 if (skb_cow(skb, rt->u.dst.dev->hard_header_len)) { in ip_vs_bypass_xmit()
793 if (ip_vs_skb_cow(skb, rt->u.dst.dev->hard_header_len, &iph, &h.raw)) in ip_vs_nat_xmit()
933 max_headroom = (((tdev->hard_header_len+15)&~15)+sizeof(struct iphdr)); in ip_vs_tunnel_xmit()
1018 if (unlikely(skb_headroom(skb) < rt->u.dst.dev->hard_header_len)) { in ip_vs_dr_xmit()
1019 if (skb_cow(skb, rt->u.dst.dev->hard_header_len)) { in ip_vs_dr_xmit()

1234