Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/drivers/infiniband/hw/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.c414 u32 hdrsize; in ipath_ud_rcv() local
425 hdrsize = 8 + 12 + 8; /* LRH + BTH + DETH */ in ipath_ud_rcv()
431 hdrsize = 8 + 40 + 12 + 8; /* LRH + GRH + BTH + DETH */ in ipath_ud_rcv()
488 hdrsize += sizeof(u32); in ipath_ud_rcv()
499 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_ud_rcv()
504 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.1.27/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.c1402 u32 psn, u32 hdrsize, u32 pmtu, in qib_rc_rcv_resp() argument
1487 hdrsize += 4; in qib_rc_rcv_resp()
1507 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_rc_rcv_resp()
1547 if (unlikely(tlen < (hdrsize + pad + 8))) in qib_rc_rcv_resp()
1572 if (unlikely(tlen <= (hdrsize + pad + 8))) in qib_rc_rcv_resp()
1575 tlen -= hdrsize + pad + 8; in qib_rc_rcv_resp()
1868 u32 hdrsize; in qib_rc_rcv() local
1881 hdrsize = 8 + 12; /* LRH + BTH */ in qib_rc_rcv()
1884 hdrsize = 8 + 40 + 12; /* LRH + GRH + BTH */ in qib_rc_rcv()
1903 hdrsize, pmtu, rcd); in qib_rc_rcv()
[all …]
/linux-4.1.27/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.1.27/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()
1217 mtu -= call->conn->trans->peer->hdrsize; in rxrpc_process_call()
Dar-internal.h184 unsigned short hdrsize; /* header size (IP + UDP + RxRPC) */ member
/linux-4.1.27/include/net/
Dgenetlink.h52 unsigned int hdrsize; member
206 family->hdrsize - in genlmsg_nlhdr()
224 return nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
/linux-4.1.27/fs/quota/
Dnetlink.c25 .hdrsize = 0,
/linux-4.1.27/net/irda/
Dirnetlink.c30 .hdrsize = 0,
/linux-4.1.27/net/tipc/
Dnetlink.c65 .hdrsize = 0,
Dnetlink_compat.c1055 .hdrsize = TIPC_GENL_HDRLEN,
/linux-4.1.27/drivers/scsi/aacraid/
Dcomminit.c271 unsigned long hdrsize = (sizeof(u32) * NUMBER_OF_COMM_QUEUES) * 2; in aac_comm_init() local
290 size = hdrsize + queuesize; in aac_comm_init()
295 queues = (struct aac_entry *)(((ulong)headers) + hdrsize); in aac_comm_init()
/linux-4.1.27/net/ieee802154/
Dnetlink.c33 .hdrsize = 0,
Dnl802154.c39 .hdrsize = 0, /* no private header */
328 int ret = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl802154_fam.hdrsize, in nl802154_dump_wpan_phy_parse()
/linux-4.1.27/drivers/crypto/nx/
Dnx-842.c337 int ret = 0, max_sync_size, i, bytesleft, size, hdrsize; in nx842_compress() local
368 hdrsize = nx842_header_size(hdr); in nx842_compress()
369 outbuf = (unsigned long)out + hdrsize; in nx842_compress()
370 bytesleft = *outlen - hdrsize; in nx842_compress()
399 hdr->offset = padding + hdrsize; in nx842_compress()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/fs/xfs/libxfs/
Dxfs_dir2_leaf.c1653 int hdrsize; in xfs_dir3_leaf_size() local
1658 hdrsize = sizeof(struct xfs_dir2_leaf_hdr); in xfs_dir3_leaf_size()
1660 hdrsize = sizeof(struct xfs_dir3_leaf_hdr); in xfs_dir3_leaf_size()
1662 return hdrsize + entries * sizeof(xfs_dir2_leaf_entry_t) in xfs_dir3_leaf_size()
/linux-4.1.27/net/core/
Ddrop_monitor.c64 .hdrsize = 0,
/linux-4.1.27/net/wimax/
Dstack.c579 .hdrsize = 0,
/linux-4.1.27/net/hsr/
Dhsr_netlink.c131 .hdrsize = 0,
/linux-4.1.27/net/openvswitch/
Ddatapath.c622 .hdrsize = sizeof(struct ovs_header),
1370 .hdrsize = sizeof(struct ovs_header),
1756 .hdrsize = sizeof(struct ovs_header),
2137 .hdrsize = sizeof(struct ovs_header),
/linux-4.1.27/net/netlabel/
Dnetlabel_mgmt.c63 .hdrsize = 0,
Dnetlabel_cipso_v4.c64 .hdrsize = 0,
Dnetlabel_unlabeled.c128 .hdrsize = 0,
/linux-4.1.27/net/nfc/
Dnetlink.c37 .hdrsize = 0,
119 rc = nlmsg_parse(cb->nlh, GENL_HDRLEN + nfc_genl_family.hdrsize, in __get_device_from_cb()
/linux-4.1.27/net/ipv4/
Dfou.c549 .hdrsize = 0,
Dtcp_metrics.c762 .hdrsize = 0,
/linux-4.1.27/net/l2tp/
Dl2tp_netlink.c38 .hdrsize = 0,
/linux-4.1.27/drivers/target/
Dtarget_core_user.c146 .hdrsize = 0,
/linux-4.1.27/drivers/net/wireless/
Dmac80211_hwsim.c563 .hdrsize = 0,
/linux-4.1.27/net/wireless/
Dnl80211.c43 .hdrsize = 0, /* no private header */
491 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_prepare_wdev_dump()
1738 int ret = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_dump_wiphy_parse()
7571 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_testmode_dump()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ctl.c2788 .hdrsize = 0,
/linux-4.1.27/drivers/scsi/
Dpmcraid.c1446 ((struct genl_family *)&pmcraid_event_family)->hdrsize) in pmcraid_notify_aen()