Home
last modified time | relevance | path

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

12

/net/netfilter/
A Dnft_inner.c51 u8 hdrsize; member
68 u32 hdrsize; in nft_inner_parse_l2l3() local
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() local
360 hdrsize = ntohl(nla_get_be32(tb[NFTA_INNER_HDRSIZE])); in nft_inner_init()
367 if (hdrsize == 0 || hdrsize > 64) in nft_inner_init()
372 priv->hdrsize = hdrsize; in nft_inner_init()
[all …]
A Dnf_flow_table_ip.c174 u32 hdrsize; member
200 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip()
203 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip()
207 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ip()
217 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ip()
397 if (skb_try_make_writable(skb, thoff + ctx->hdrsize)) in nf_flow_offload_forward()
600 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ipv6()
603 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ipv6()
607 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ipv6()
617 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ipv6()
[all …]
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()
/net/rxrpc/
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 …]
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()
A Dconn_event.c161 if_mtu = conn->peer->if_mtu - conn->peer->hdrsize; in rxrpc_conn_retransmit_call()
/net/sched/
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()
/net/smc/
A Dsmc_netlink.c137 .hdrsize = 0,
/net/ipv6/ila/
A Dila_main.c47 .hdrsize = 0,
/net/ieee802154/
A Dnetlink.c127 .hdrsize = 0,
/net/tipc/
A Dnetlink.c290 .hdrsize = 0,
/net/core/
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,
/net/netlabel/
A Dnetlabel_calipso.c364 .hdrsize = 0,
A Dnetlabel_cipso_v4.c762 .hdrsize = 0,
A Dnetlabel_mgmt.c816 .hdrsize = 0,
A Dnetlabel_unlabeled.c1361 .hdrsize = 0,
/net/ipv6/
A Dseg6.c492 .hdrsize = 0,
/net/openvswitch/
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),
A Dmeter.c714 .hdrsize = sizeof(struct ovs_header),
/net/hsr/
A Dhsr_netlink.c538 .hdrsize = 0,
/net/netlink/
A Dgenetlink.c900 family->hdrsize, flags); in genlmsg_put()
1171 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
1242 nla_put_u32(skb, CTRL_ATTR_HDRSIZE, family->hdrsize) || in ctrl_fill_info()
/net/sunrpc/
A Dclnt.c1361 unsigned int hdrsize) in rpc_prepare_reply_pages() argument
1363 hdrsize += RPC_REPHDRSIZE + req->rq_cred->cr_auth->au_ralign; in rpc_prepare_reply_pages()
1365 xdr_inline_pages(&req->rq_rcv_buf, hdrsize << 2, pages, base, len); in rpc_prepare_reply_pages()
/net/ipv4/
A Dtcp_metrics.c988 .hdrsize = 0,
A Dfou_core.c908 .hdrsize = 0,
/net/l2tp/
A Dl2tp_netlink.c997 .hdrsize = 0,

Completed in 68 milliseconds

12