Home
last modified time | relevance | path

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

12

/net/netfilter/
Dnft_inner.c44 u8 hdrsize; member
61 u32 hdrsize; in nft_inner_parse_l2l3() local
71 hdrsize = sizeof(_eth); in nft_inner_parse_l2l3()
80 hdrsize = sizeof(_veth); in nft_inner_parse_l2l3()
88 off += hdrsize; in nft_inner_parse_l2l3()
188 *off += priv->hdrsize; in nft_inner_parse_tunhdr()
296 u32 flags, hdrsize, type, num; in nft_inner_init() local
315 hdrsize = ntohl(nla_get_be32(tb[NFTA_INNER_HDRSIZE])); in nft_inner_init()
322 if (hdrsize == 0 || hdrsize > 64) in nft_inner_init()
327 priv->hdrsize = hdrsize; in nft_inner_init()
[all …]
Dnf_flow_table_ip.c170 u32 hdrsize; member
196 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ip()
199 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ip()
203 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ip()
213 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ip()
393 if (skb_try_make_writable(skb, thoff + ctx->hdrsize)) in nf_flow_offload_forward()
596 ctx->hdrsize = sizeof(struct tcphdr); in nf_flow_tuple_ipv6()
599 ctx->hdrsize = sizeof(struct udphdr); in nf_flow_tuple_ipv6()
603 ctx->hdrsize = sizeof(struct gre_base_hdr); in nf_flow_tuple_ipv6()
613 if (!pskb_may_pull(skb, thoff + ctx->hdrsize)) in nf_flow_tuple_ipv6()
[all …]
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()
191 int hdrsize = 8; /* DCCP connection tracking guarantees this much */ in dccp_manip_pkt() local
194 hdrsize = sizeof(struct dccp_hdr); in dccp_manip_pkt()
[all …]
/net/rxrpc/
Dpeer_object.c249 peer->hdrsize = sizeof(struct iphdr); in rxrpc_init_peer()
253 peer->hdrsize = sizeof(struct ipv6hdr); in rxrpc_init_peer()
262 peer->hdrsize += sizeof(struct udphdr); in rxrpc_init_peer()
268 peer->hdrsize += sizeof(struct rxrpc_wire_header); in rxrpc_init_peer()
269 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_init_peer()
Dpeer_event.c118 if (mtu < peer->hdrsize) in rxrpc_adjust_mtu()
119 mtu = peer->hdrsize + 4; in rxrpc_adjust_mtu()
126 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_adjust_mtu()
Dconn_event.c153 mtu -= conn->peer->hdrsize; in rxrpc_conn_retransmit_call()
Doutput.c124 mtu -= conn->peer->hdrsize; in rxrpc_fill_out_ack()
Dinput.c721 peer->mtu = mtu + peer->hdrsize; in rxrpc_input_ack_trailer()
/net/sched/
Dact_ct.c520 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv4() local
536 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv4()
539 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv4()
543 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv4()
553 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv4()
593 size_t hdrsize; in tcf_ct_flow_table_fill_tuple_ipv6() local
605 hdrsize = sizeof(struct tcphdr); in tcf_ct_flow_table_fill_tuple_ipv6()
608 hdrsize = sizeof(*ports); in tcf_ct_flow_table_fill_tuple_ipv6()
612 hdrsize = sizeof(struct gre_base_hdr); in tcf_ct_flow_table_fill_tuple_ipv6()
622 if (!pskb_network_may_pull(skb, thoff + hdrsize)) in tcf_ct_flow_table_fill_tuple_ipv6()
/net/smc/
Dsmc_netlink.c137 .hdrsize = 0,
/net/ipv6/ila/
Dila_main.c47 .hdrsize = 0,
/net/ieee802154/
Dnetlink.c127 .hdrsize = 0,
/net/tipc/
Dnetlink.c290 .hdrsize = 0,
/net/core/
Ddrop_monitor.c561 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_packet_report_size()
755 size = nlmsg_msg_size(GENL_HDRLEN + net_drop_monitor_family.hdrsize); in net_dm_hw_packet_report_size()
1655 .hdrsize = 0,
/net/netlabel/
Dnetlabel_calipso.c364 .hdrsize = 0,
Dnetlabel_cipso_v4.c762 .hdrsize = 0,
Dnetlabel_mgmt.c821 .hdrsize = 0,
Dnetlabel_unlabeled.c1369 .hdrsize = 0,
/net/netlink/
Dgenetlink.c756 family->hdrsize, flags); in genlmsg_put()
1027 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
1098 nla_put_u32(skb, CTRL_ATTR_HDRSIZE, family->hdrsize) || in ctrl_fill_info()
/net/ipv6/
Dseg6.c498 .hdrsize = 0,
/net/openvswitch/
Ddatapath.c710 .hdrsize = sizeof(struct ovs_header),
1535 .hdrsize = sizeof(struct ovs_header),
2084 .hdrsize = sizeof(struct ovs_header),
2576 .hdrsize = sizeof(struct ovs_header),
Dmeter.c714 .hdrsize = sizeof(struct ovs_header),
/net/hsr/
Dhsr_netlink.c514 .hdrsize = 0,
/net/sunrpc/
Dclnt.c1352 unsigned int hdrsize) in rpc_prepare_reply_pages() argument
1354 hdrsize += RPC_REPHDRSIZE + req->rq_cred->cr_auth->au_ralign; in rpc_prepare_reply_pages()
1356 xdr_inline_pages(&req->rq_rcv_buf, hdrsize << 2, pages, base, len); in rpc_prepare_reply_pages()
/net/ipv4/
Dtcp_metrics.c984 .hdrsize = 0,

12