Home
last modified time | relevance | path

Searched refs:hdrsize (Results 1 – 25 of 43) sorted by relevance

12

/linux/net/netfilter/
H A Dnft_inner.c51 u8 hdrsize; in nft_inner_parse_l2l3()
68 u32 hdrsize; in nft_inner_parse_l2l3()
78 hdrsize = sizeof(_eth); in nft_inner_parse_l2l3()
87 hdrsize = sizeof(_veth); in nft_inner_parse_l2l3()
95 off += hdrsize; in nft_inner_parse_l2l3()
195 *off += priv->hdrsize; in nft_inner_parse_tunhdr()
341 u32 flags, hdrsize, type, num; in nft_inner_init()
360 hdrsize = ntohl(nla_get_be32(tb[NFTA_INNER_HDRSIZE])); in nft_inner_init()
367 if (hdrsize == 0 || hdrsize > 6 in nft_inner_init()
44 u8 hdrsize; global() member
61 u32 hdrsize; nft_inner_parse_l2l3() local
329 u32 flags, hdrsize, type, num; nft_inner_init() local
[all...]
H A Dnf_flow_table_ip.c190 u32 hdrsize; in nf_flow_tuple_ip()
216 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip()
219 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip()
223 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ip()
233 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ip()
456 if (skb_try_make_writable(skb, thoff + ctx->hdrsize)) in nf_flow_offload_ip_hook()
795 ctx->hdrsize = sizeof(struct tcphdr);
798 ctx->hdrsize = sizeof(struct udphdr);
802 ctx->hdrsize = sizeof(struct gre_base_hdr);
812 if (!pskb_may_pull(skb, thoff + ctx->hdrsize))
174 u32 hdrsize; global() member
[all...]
H A Dnf_nat_proto.c106 int hdrsize = 8; in sctp_manip_pkt() local
113 hdrsize = sizeof(*hdr); in sctp_manip_pkt()
115 if (skb_ensure_writable(skb, hdroff + hdrsize)) in sctp_manip_pkt()
128 if (hdrsize < sizeof(*hdr)) in sctp_manip_pkt()
148 int hdrsize = 8; /* TCP connection tracking guarantees this much */ in tcp_manip_pkt() local
154 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt()
156 if (skb_ensure_writable(skb, hdroff + hdrsize)) in tcp_manip_pkt()
174 if (hdrsize < sizeof(*hdr)) in tcp_manip_pkt()
/linux/net/rxrpc/
H A Dpeer_object.c164 if (peer->max_data < peer->if_mtu - peer->hdrsize) { in rxrpc_assess_MTU_size()
165 trace_rxrpc_pmtud_reduce(peer, 0, peer->if_mtu - peer->hdrsize, in rxrpc_assess_MTU_size()
167 peer->max_data = peer->if_mtu - peer->hdrsize; in rxrpc_assess_MTU_size()
206 peer->hdrsize += dst->header_len + dst->trailer_len; in rxrpc_assess_MTU_size()
210 peer->max_data = umin(RXRPC_JUMBO(1), peer->if_mtu - peer->hdrsize); in rxrpc_assess_MTU_size()
212 peer->pmtud_bad = peer->if_mtu - peer->hdrsize + 1; in rxrpc_assess_MTU_size()
258 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer()
262 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer()
271 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer()
277 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer()
[all …]
H A Dpeer_event.c120 if (mtu < peer->hdrsize) in rxrpc_adjust_mtu()
121 mtu = peer->hdrsize + 4; in rxrpc_adjust_mtu()
125 max_data = max_t(int, mtu - peer->hdrsize, 500); in rxrpc_adjust_mtu()
H A Dconn_event.c161 if_mtu = conn->peer->if_mtu - conn->peer->hdrsize; in rxrpc_conn_retransmit_call()
/linux/drivers/infiniband/hw/hfi1/
H A Duc.c267 u32 hdrsize = packet->hlen; in hfi1_uc_rcv() local
379 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_uc_rcv()
399 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_uc_rcv()
402 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
475 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
490 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
493 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
515 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
518 tlen -= (hdrsize + extra_bytes); in hfi1_uc_rcv()
H A Drc.c2318 u16 hdrsize = packet->hlen; in rc_rcv_resp() local
2388 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in rc_rcv_resp()
2425 if (unlikely(tlen < (hdrsize + extra_bytes))) in rc_rcv_resp()
2447 if (unlikely(tlen <= (hdrsize + extra_bytes))) in rc_rcv_resp()
2450 tlen -= hdrsize + extra_bytes; in rc_rcv_resp()
2773 u32 hdrsize = packet->hlen; in hfi1_rc_rcv() local
2872 if (unlikely(tlen != (hdrsize + pmtu + extra_bytes))) in hfi1_rc_rcv()
2926 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_rc_rcv()
2929 tlen -= (hdrsize + extra_bytes); in hfi1_rc_rcv()
H A Dud.c810 u32 hdrsize = packet->hlen; in hfi1_ud_rcv() local
861 if (unlikely(tlen < (hdrsize + extra_bytes))) in hfi1_ud_rcv()
864 tlen -= hdrsize + extra_bytes; in hfi1_ud_rcv()
/linux/scripts/dtc/libfdt/
H A Dfdt_sw.c111 const int hdrsize = FDT_ALIGN(sizeof(struct fdt_header), in fdt_create_with_flags() local
115 if (bufsize < hdrsize) in fdt_create_with_flags()
136 fdt_set_off_mem_rsvmap(fdt, hdrsize); in fdt_create_with_flags()
/linux/net/sched/
H A Dact_ct.c518 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv4() local
534 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv4()
537 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv4()
541 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv4()
551 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv4()
591 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv6() local
603 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv6()
606 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv6()
610 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv6()
620 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv6()
[all...]
/linux/fs/smb/client/
H A Dnetlink.c48 .hdrsize = 0,
/linux/fs/quota/
H A Dnetlink.c18 .hdrsize = 0,
/linux/net/smc/
H A Dsmc_netlink.c137 .hdrsize = 0,
/linux/net/ipv6/ila/
H A Dila_main.c47 .hdrsize = 0,
/linux/drivers/scsi/aacraid/
H A Dcomminit.c370 unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; in aac_comm_init() local
389 size = hdrsize + queuesize; in aac_comm_init()
394 queues = (struct aac_entry *)(((ulong)headers) + hdrsize); in aac_comm_init()
/linux/net/ieee802154/
H A Dnetlink.c127 .hdrsize = 0,
/linux/drivers/net/wireless/broadcom/b43/
H A Ddma.c1202 size_t hdrsize = b43_txhdr_size(ring->dev); in dma_tx_fragment() local
1217 header = &(ring->txhdr_cache[(slot / TX_SLOTS_PER_FRAME) * hdrsize]); in dma_tx_fragment()
1228 hdrsize, 1); in dma_tx_fragment()
1229 if (b43_dma_mapping_error(ring, meta_hdr->dmaaddr, hdrsize, 1)) { in dma_tx_fragment()
1235 hdrsize, 1, 0, 0); in dma_tx_fragment()
1284 hdrsize, 1); in dma_tx_fragment()
/linux/net/tipc/
H A Dnetlink.c290 .hdrsize = 0,
/linux/include/linux/
H A Dpe.h250 uint16_t hdrsize; /* header size in "paragraphs" */ member
H A Dgenl_magic_func.h291 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),
/linux/net/netlabel/
H A Dnetlabel_calipso.c364 .hdrsize = 0,
/linux/net/core/
H A Ddrop_monitor.c564 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_packet_report_size()
758 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_hw_packet_report_size()
1658 .hdrsize = 0,
/linux/net/openvswitch/
H A Ddatapath.c739 .hdrsize = sizeof(struct ovs_header),
1564 .hdrsize = sizeof(struct ovs_header),
2112 .hdrsize = sizeof(struct ovs_header),
2609 .hdrsize = sizeof(struct ovs_header),
/linux/net/hsr/
H A Dhsr_netlink.c552 .hdrsize = 0,

12