Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 16 of 16) sorted by relevance

/include/net/netfilter/
Dnf_tables_ipv6.h9 static inline void nft_set_pktinfo_ipv6(struct nft_pktinfo *pkt) in nft_set_pktinfo_ipv6() argument
15 protohdr = ipv6_find_hdr(pkt->skb, &thoff, -1, &frag_off, &flags); in nft_set_pktinfo_ipv6()
17 nft_set_pktinfo_unspec(pkt); in nft_set_pktinfo_ipv6()
21 pkt->flags = NFT_PKTINFO_L4PROTO; in nft_set_pktinfo_ipv6()
22 pkt->tprot = protohdr; in nft_set_pktinfo_ipv6()
23 pkt->thoff = thoff; in nft_set_pktinfo_ipv6()
24 pkt->fragoff = frag_off; in nft_set_pktinfo_ipv6()
27 static inline int __nft_set_pktinfo_ipv6_validate(struct nft_pktinfo *pkt) in __nft_set_pktinfo_ipv6_validate() argument
37 ip6h = skb_header_pointer(pkt->skb, skb_network_offset(pkt->skb), in __nft_set_pktinfo_ipv6_validate()
46 if (pkt_len + sizeof(*ip6h) > pkt->skb->len) in __nft_set_pktinfo_ipv6_validate()
[all …]
Dnf_tables_ipv4.h8 static inline void nft_set_pktinfo_ipv4(struct nft_pktinfo *pkt) in nft_set_pktinfo_ipv4() argument
12 ip = ip_hdr(pkt->skb); in nft_set_pktinfo_ipv4()
13 pkt->flags = NFT_PKTINFO_L4PROTO; in nft_set_pktinfo_ipv4()
14 pkt->tprot = ip->protocol; in nft_set_pktinfo_ipv4()
15 pkt->thoff = ip_hdrlen(pkt->skb); in nft_set_pktinfo_ipv4()
16 pkt->fragoff = ntohs(ip->frag_off) & IP_OFFSET; in nft_set_pktinfo_ipv4()
19 static inline int __nft_set_pktinfo_ipv4_validate(struct nft_pktinfo *pkt) in __nft_set_pktinfo_ipv4_validate() argument
24 iph = skb_header_pointer(pkt->skb, skb_network_offset(pkt->skb), in __nft_set_pktinfo_ipv4_validate()
34 if (pkt->skb->len < len) in __nft_set_pktinfo_ipv4_validate()
39 pkt->flags = NFT_PKTINFO_L4PROTO; in __nft_set_pktinfo_ipv4_validate()
[all …]
Dnft_fib.h29 const struct nft_pktinfo *pkt);
31 const struct nft_pktinfo *pkt);
34 const struct nft_pktinfo *pkt);
36 const struct nft_pktinfo *pkt);
Dnf_tables_core.h136 struct nft_regs *regs, const struct nft_pktinfo *pkt);
138 struct nft_regs *regs, const struct nft_pktinfo *pkt);
140 struct nft_regs *regs, const struct nft_pktinfo *pkt);
142 struct nft_regs *regs, const struct nft_pktinfo *pkt);
144 struct nft_regs *regs, const struct nft_pktinfo *pkt);
146 struct nft_regs *regs, const struct nft_pktinfo *pkt);
148 struct nft_regs *regs, const struct nft_pktinfo *pkt);
150 struct nft_regs *regs, const struct nft_pktinfo *pkt);
152 struct nft_regs *regs, const struct nft_pktinfo *pkt);
154 struct nft_regs *regs, const struct nft_pktinfo *pkt);
Dnf_dup_netdev.h7 void nf_dup_netdev_egress(const struct nft_pktinfo *pkt, int oif);
8 void nf_fwd_netdev_egress(const struct nft_pktinfo *pkt, int oif);
Dnft_meta.h33 const struct nft_pktinfo *pkt);
37 const struct nft_pktinfo *pkt);
Dnf_tables.h39 static inline struct sock *nft_sk(const struct nft_pktinfo *pkt) in nft_sk() argument
41 return pkt->state->sk; in nft_sk()
44 static inline unsigned int nft_thoff(const struct nft_pktinfo *pkt) in nft_thoff() argument
46 return pkt->thoff; in nft_thoff()
49 static inline struct net *nft_net(const struct nft_pktinfo *pkt) in nft_net() argument
51 return pkt->state->net; in nft_net()
54 static inline unsigned int nft_hook(const struct nft_pktinfo *pkt) in nft_hook() argument
56 return pkt->state->hook; in nft_hook()
59 static inline u8 nft_pf(const struct nft_pktinfo *pkt) in nft_pf() argument
61 return pkt->state->pf; in nft_pf()
[all …]
/include/net/caif/
Dcfpkt.h23 void cfpkt_destroy(struct cfpkt *pkt);
33 int cfpkt_extr_head(struct cfpkt *pkt, void *data, u16 len);
35 static inline u8 cfpkt_extr_head_u8(struct cfpkt *pkt) in cfpkt_extr_head_u8() argument
39 cfpkt_extr_head(pkt, &tmp, 1); in cfpkt_extr_head_u8()
44 static inline u16 cfpkt_extr_head_u16(struct cfpkt *pkt) in cfpkt_extr_head_u16() argument
48 cfpkt_extr_head(pkt, &tmp, 2); in cfpkt_extr_head_u16()
53 static inline u32 cfpkt_extr_head_u32(struct cfpkt *pkt) in cfpkt_extr_head_u32() argument
57 cfpkt_extr_head(pkt, &tmp, 4); in cfpkt_extr_head_u32()
71 int cfpkt_peek_head(struct cfpkt *pkt, void *data, u16 len);
81 int cfpkt_extr_trail(struct cfpkt *pkt, void *data, u16 len);
[all …]
/include/linux/soc/mediatek/
Dmtk-cmdq.h73 void cmdq_pkt_destroy(struct cmdq_pkt *pkt);
84 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
96 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
108 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low,
125 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
143 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
156 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
171 int cmdq_pkt_write_s_mask_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
182 int cmdq_pkt_wfe(struct cmdq_pkt *pkt, u16 event, bool clear);
191 int cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event);
[all …]
/include/linux/usb/
Dmusb.h44 #define MUSB_EP_FIFO(ep, st, m, pkt) \ argument
49 .maxpacket = pkt, \
52 #define MUSB_EP_FIFO_SINGLE(ep, st, pkt) \ argument
53 MUSB_EP_FIFO(ep, st, BUF_SINGLE, pkt)
55 #define MUSB_EP_FIFO_DOUBLE(ep, st, pkt) \ argument
56 MUSB_EP_FIFO(ep, st, BUF_DOUBLE, pkt)
/include/linux/
Dvirtio_vsock.h72 int (*send_pkt)(struct virtio_vsock_pkt *pkt);
153 struct virtio_vsock_pkt *pkt);
154 void virtio_transport_free_pkt(struct virtio_vsock_pkt *pkt);
155 void virtio_transport_inc_tx_pkt(struct virtio_vsock_sock *vvs, struct virtio_vsock_pkt *pkt);
158 void virtio_transport_deliver_tap_pkt(struct virtio_vsock_pkt *pkt);
Dhyperv.h1677 const struct vmpacket_descriptor *pkt,
1684 const struct vmpacket_descriptor *pkt, in hv_pkt_iter_next_pkt() argument
1689 nxt = __hv_pkt_iter_next(channel, pkt, copy); in hv_pkt_iter_next_pkt()
1702 const struct vmpacket_descriptor *pkt) in hv_pkt_iter_next_raw() argument
1704 return hv_pkt_iter_next_pkt(channel, pkt, false); in hv_pkt_iter_next_raw()
1713 const struct vmpacket_descriptor *pkt) in hv_pkt_iter_next() argument
1715 return hv_pkt_iter_next_pkt(channel, pkt, true); in hv_pkt_iter_next()
1718 #define foreach_vmbus_pkt(pkt, channel) \ argument
1719 for (pkt = hv_pkt_iter_first(channel); pkt; \
1720 pkt = hv_pkt_iter_next(channel, pkt))
Dmroute_base.h145 unsigned long pkt; member
/include/linux/mailbox/
Dmtk-cmdq-mailbox.h71 struct cmdq_pkt *pkt; member
/include/linux/soc/qcom/
Dapr.h137 int apr_send_pkt(struct apr_device *adev, struct apr_pkt *pkt);
/include/linux/qed/
Dqed_rdma_if.h651 struct qed_ll2_tx_pkt_info *pkt,