Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dnf_nat_proto_tcp.c43 int hdrsize = 8; /* TCP connection tracking guarantees this much */ in tcp_manip_pkt() local
49 hdrsize = sizeof(struct tcphdr); in tcp_manip_pkt()
51 if (!skb_make_writable(skb, hdroff + hdrsize)) in tcp_manip_pkt()
69 if (hdrsize < sizeof(*hdr)) in tcp_manip_pkt()
Dnf_nat_proto_dccp.c45 int hdrsize = 8; /* DCCP connection tracking guarantees this much */ in dccp_manip_pkt() local
48 hdrsize = sizeof(struct dccp_hdr); in dccp_manip_pkt()
50 if (!skb_make_writable(skb, hdroff + hdrsize)) in dccp_manip_pkt()
66 if (hdrsize < sizeof(*hdr)) in dccp_manip_pkt()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_uc.c247 u32 hdrsize; in qib_uc_rcv() local
258 hdrsize = 8 + 12; /* LRH + BTH */ in qib_uc_rcv()
261 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in qib_uc_rcv()
371 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
382 hdrsize += 4; in qib_uc_rcv()
394 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
397 tlen -= (hdrsize + pad + 4); in qib_uc_rcv()
431 hdrsize += sizeof(*reth); in qib_uc_rcv()
462 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
473 hdrsize += 4; in qib_uc_rcv()
[all …]
Dqib_ud.c433 u32 hdrsize; in qib_ud_rcv() local
443 hdrsize = 8 + 12 + 8; /* LRH + BTH + DETH */ in qib_ud_rcv()
446 hdrsize = 8 + 40 + 12 + 8; /* LRH + GRH + BTH + DETH */ in qib_ud_rcv()
456 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_ud_rcv()
459 tlen -= hdrsize + pad + 4; in qib_ud_rcv()
Dqib_rc.c1404 u32 psn, u32 hdrsize, u32 pmtu, in qib_rc_rcv_resp() argument
1489 hdrsize += 4; in qib_rc_rcv_resp()
1509 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv_resp()
1549 if (unlikely(tlen < (hdrsize + pad + 8))) in qib_rc_rcv_resp()
1574 if (unlikely(tlen <= (hdrsize + pad + 8))) in qib_rc_rcv_resp()
1577 tlen -= hdrsize + pad + 8; in qib_rc_rcv_resp()
1870 u32 hdrsize; in qib_rc_rcv() local
1883 hdrsize = 8 + 12; /* LRH + BTH */ in qib_rc_rcv()
1886 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in qib_rc_rcv()
1905 hdrsize, pmtu, rcd); in qib_rc_rcv()
[all …]
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_uc.c245 u32 hdrsize; in ipath_uc_rcv() local
260 hdrsize = 8 + 12; /* LRH + BTH */ in ipath_uc_rcv()
265 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in ipath_uc_rcv()
365 if (unlikely(tlen != (hdrsize + pmtu + 4))) { in ipath_uc_rcv()
388 hdrsize += 4; in ipath_uc_rcv()
397 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_uc_rcv()
403 tlen -= (hdrsize + pad + 4); in ipath_uc_rcv()
436 hdrsize += sizeof(*reth); in ipath_uc_rcv()
471 if (unlikely(tlen != (hdrsize + pmtu + 4))) { in ipath_uc_rcv()
492 hdrsize += 4; in ipath_uc_rcv()
[all …]
Dipath_ud.c413 u32 hdrsize; in ipath_ud_rcv() local
424 hdrsize = 8 + 12 + 8; /* LRH + BTH + DETH */ in ipath_ud_rcv()
430 hdrsize = 8 + 40 + 12 + 8; /* LRH + GRH + BTH + DETH */ in ipath_ud_rcv()
487 hdrsize += sizeof(u32); in ipath_ud_rcv()
498 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_ud_rcv()
503 tlen -= hdrsize + pad + 4; in ipath_ud_rcv()
Dipath_rc.c1122 u32 psn, u32 hdrsize, u32 pmtu, in ipath_rc_rcv_resp() argument
1188 hdrsize += 4; in ipath_rc_rcv_resp()
1215 if (unlikely(tlen != (hdrsize + pmtu + 4))) in ipath_rc_rcv_resp()
1254 if (unlikely(tlen < (hdrsize + pad + 8))) in ipath_rc_rcv_resp()
1285 if (unlikely(tlen <= (hdrsize + pad + 8))) in ipath_rc_rcv_resp()
1288 tlen -= hdrsize + pad + 8; in ipath_rc_rcv_resp()
1575 u32 hdrsize; in ipath_rc_rcv() local
1592 hdrsize = 8 + 12; /* LRH + BTH */ in ipath_rc_rcv()
1597 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in ipath_rc_rcv()
1621 hdrsize, pmtu, header_in_data); in ipath_rc_rcv()
[all …]
/linux-4.4.14/drivers/net/wireless/orinoco/
Dfw.c59 u16 hdrsize; in validate_fw() local
66 hdrsize = le16_to_cpu(hdr->headersize); in validate_fw()
67 if (hdrsize > len) in validate_fw()
69 if ((hdrsize + le32_to_cpu(hdr->block_offset)) > len) in validate_fw()
71 if ((hdrsize + le32_to_cpu(hdr->pdr_offset)) > len) in validate_fw()
73 if ((hdrsize + le32_to_cpu(hdr->pri_offset)) > len) in validate_fw()
75 if ((hdrsize + le32_to_cpu(hdr->compat_offset)) > len) in validate_fw()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Duc.c272 u32 hdrsize = packet->hlen; in hfi1_uc_rcv() local
412 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
434 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
437 tlen -= (hdrsize + pad + 4); in hfi1_uc_rcv()
512 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_uc_rcv()
529 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
532 tlen -= (hdrsize + pad + 4); in hfi1_uc_rcv()
556 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_uc_rcv()
559 tlen -= (hdrsize + pad + 4); in hfi1_uc_rcv()
Drc.c1433 u32 opcode, u32 psn, u32 hdrsize, u32 pmtu, in rc_rcv_resp() argument
1513 if (unlikely(tlen != (hdrsize + pmtu + 4))) in rc_rcv_resp()
1552 if (unlikely(tlen < (hdrsize + pad + 4))) in rc_rcv_resp()
1576 if (unlikely(tlen <= (hdrsize + pad + 4))) in rc_rcv_resp()
1579 tlen -= hdrsize + pad + 4; in rc_rcv_resp()
1948 u32 hdrsize = packet->hlen; in hfi1_rc_rcv() local
1992 hdrsize, pmtu, rcd); in hfi1_rc_rcv()
2057 if (unlikely(tlen != (hdrsize + pmtu + 4))) in hfi1_rc_rcv()
2100 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_rc_rcv()
2103 tlen -= (hdrsize + pad + 4); in hfi1_rc_rcv()
Dud.c645 u32 hdrsize = packet->hlen; in hfi1_ud_rcv() local
710 if (unlikely(tlen < (hdrsize + pad + 4))) in hfi1_ud_rcv()
713 tlen -= hdrsize + pad + 4; in hfi1_ud_rcv()
/linux-4.4.14/drivers/crypto/nx/
Dnx-842.c172 unsigned int hdrsize) in compress() argument
183 if (p->oremain == 0 || hdrsize + c->minimum > dlen) in compress()
203 dst += hdrsize; in compress()
204 dlen -= hdrsize; in compress()
238 dskip += hdrsize; in compress()
266 unsigned int groups, hdrsize, h; in nx842_crypto_compress() local
283 hdrsize = NX842_CRYPTO_HEADER_SIZE(groups); in nx842_crypto_compress()
308 h = !n && add_header ? hdrsize : 0; in nx842_crypto_compress()
/linux-4.4.14/net/rxrpc/
Dar-peer.c82 peer->hdrsize = sizeof(struct iphdr); in rxrpc_alloc_peer()
85 peer->hdrsize += sizeof(struct udphdr); in rxrpc_alloc_peer()
95 peer->hdrsize += sizeof(struct rxrpc_header); in rxrpc_alloc_peer()
96 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_alloc_peer()
Dar-error.c98 if (mtu < peer->hdrsize) in rxrpc_UDP_error_report()
99 mtu = peer->hdrsize + 4; in rxrpc_UDP_error_report()
106 peer->maxdata = peer->mtu - peer->hdrsize; in rxrpc_UDP_error_report()
Dar-ack.c622 peer->mtu = mtu + peer->hdrsize; in rxrpc_extract_ackinfo()
1219 mtu -= call->conn->trans->peer->hdrsize; in rxrpc_process_call()
Dar-internal.h184 unsigned short hdrsize; /* header size (IP + UDP + RxRPC) */ member
/linux-4.4.14/include/net/
Dgenetlink.h52 unsigned int hdrsize; member
205 family->hdrsize - in genlmsg_nlhdr()
223 return nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
/linux-4.4.14/fs/quota/
Dnetlink.c25 .hdrsize = 0,
/linux-4.4.14/net/irda/
Dirnetlink.c30 .hdrsize = 0,
/linux-4.4.14/net/tipc/
Dnetlink.c65 .hdrsize = 0,
Dnetlink_compat.c1146 .hdrsize = TIPC_GENL_HDRLEN,
/linux-4.4.14/drivers/scsi/aacraid/
Dcomminit.c269 unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; in aac_comm_init() local
288 size = hdrsize + queuesize; in aac_comm_init()
293 queues = (struct aac_entry *)(((ulong)headers) + hdrsize); in aac_comm_init()
/linux-4.4.14/net/ieee802154/
Dnetlink.c33 .hdrsize = 0,
Dnl802154.c39 .hdrsize = 0, /* no private header */
261 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl802154_fam.hdrsize, in nl802154_prepare_wpan_dev_dump()
575 int ret = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl802154_fam.hdrsize, in nl802154_dump_wpan_phy_parse()
/linux-4.4.14/drivers/net/wireless/b43/
Ddma.c1264 size_t hdrsize = b43_txhdr_size(ring->dev); in dma_tx_fragment() local
1279 header = &(ring->txhdr_cache[(slot / TX_SLOTS_PER_FRAME) * hdrsize]); in dma_tx_fragment()
1290 hdrsize, 1); in dma_tx_fragment()
1291 if (b43_dma_mapping_error(ring, meta_hdr->dmaaddr, hdrsize, 1)) { in dma_tx_fragment()
1297 hdrsize, 1, 0, 0); in dma_tx_fragment()
1346 hdrsize, 1); in dma_tx_fragment()
/linux-4.4.14/net/netlink/
Dgenetlink.c503 family->hdrsize, flags); in genlmsg_put()
557 hdrlen = GENL_HDRLEN + family->hdrsize; in genl_family_rcv_msg()
698 nla_put_u32(skb, CTRL_ATTR_HDRSIZE, family->hdrsize) || in ctrl_fill_info()
/linux-4.4.14/include/linux/
Dpe.h31 uint16_t hdrsize; /* header size in "paragraphs" */ member
Dgenl_magic_func.h267 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),
/linux-4.4.14/fs/xfs/libxfs/
Dxfs_dir2_leaf.c1658 int hdrsize; in xfs_dir3_leaf_size() local
1663 hdrsize = sizeof(struct xfs_dir2_leaf_hdr); in xfs_dir3_leaf_size()
1665 hdrsize = sizeof(struct xfs_dir3_leaf_hdr); in xfs_dir3_leaf_size()
1667 return hdrsize + entries * sizeof(xfs_dir2_leaf_entry_t) in xfs_dir3_leaf_size()
/linux-4.4.14/net/core/
Ddrop_monitor.c64 .hdrsize = 0,
/linux-4.4.14/net/wimax/
Dstack.c579 .hdrsize = 0,
/linux-4.4.14/net/hsr/
Dhsr_netlink.c131 .hdrsize = 0,
/linux-4.4.14/net/openvswitch/
Ddatapath.c665 .hdrsize = sizeof(struct ovs_header),
1418 .hdrsize = sizeof(struct ovs_header),
1804 .hdrsize = sizeof(struct ovs_header),
2185 .hdrsize = sizeof(struct ovs_header),
/linux-4.4.14/net/netlabel/
Dnetlabel_mgmt.c63 .hdrsize = 0,
Dnetlabel_cipso_v4.c64 .hdrsize = 0,
Dnetlabel_unlabeled.c128 .hdrsize = 0,
/linux-4.4.14/net/nfc/
Dnetlink.c43 .hdrsize = 0,
127 rc = nlmsg_parse(cb->nlh, GENL_HDRLEN + nfc_genl_family.hdrsize, in __get_device_from_cb()
/linux-4.4.14/net/ipv4/
Dfou.c545 .hdrsize = 0,
Dtcp_metrics.c746 .hdrsize = 0,
/linux-4.4.14/net/l2tp/
Dl2tp_netlink.c38 .hdrsize = 0,
/linux-4.4.14/drivers/target/
Dtarget_core_user.c149 .hdrsize = 0,
/linux-4.4.14/net/wireless/
Dnl80211.c44 .hdrsize = 0, /* no private header */
498 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_prepare_wdev_dump()
1751 int ret = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_dump_wiphy_parse()
7739 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_testmode_dump()
10188 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_prepare_vendor_dump()
/linux-4.4.14/drivers/net/wireless/
Dmac80211_hwsim.c563 .hdrsize = 0,
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_ctl.c2804 .hdrsize = 0,
/linux-4.4.14/drivers/scsi/
Dpmcraid.c1447 ((struct genl_family *)&pmcraid_event_family)->hdrsize) in pmcraid_notify_aen()