Searched defs:target (Results 1 - 25 of 47) sorted by relevance

12

/net/ipv4/netfilter/
H A Darpt_mangle.c9 MODULE_DESCRIPTION("arptables arp payload mangle target");
12 target(struct sk_buff *skb, const struct xt_action_param *par) function
54 return mangle->target;
65 if (mangle->target != NF_DROP && mangle->target != NF_ACCEPT &&
66 mangle->target != XT_CONTINUE)
74 .target = target,
H A Dnf_nat_l3proto_ipv4.c81 const struct nf_conntrack_tuple *target,
94 target, maniptype))
99 csum_replace4(&iph->check, iph->saddr, target->src.u3.ip);
100 iph->saddr = target->src.u3.ip;
102 csum_replace4(&iph->check, iph->daddr, target->dst.u3.ip);
103 iph->daddr = target->dst.u3.ip;
199 struct nf_conntrack_tuple target; local
244 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple);
246 if (!nf_nat_ipv4_manip_pkt(skb, 0, l4proto, &target, manip))
78 nf_nat_ipv4_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_nat_l4proto *l4proto, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) argument
/net/bridge/netfilter/
H A Debt_mark.c11 /* The mark target can be used in any chain,
25 int action = info->target & -16;
36 return info->target | ~EBT_VERDICT_BITS;
44 tmp = info->target | ~EBT_VERDICT_BITS;
49 tmp = info->target & ~EBT_VERDICT_BITS;
58 compat_uint_t target; member in struct:compat_ebt_mark_t_info
67 kern->target = user->target;
76 put_user(kern->target, &user->target))
[all...]
/net/ipv6/
H A Dexthdrs_core.c161 * if target < 0. "last header" is transport protocol header, ESP, or
168 * If target header is found, its offset is set in *offset and return protocol
181 * IP6_FH_F_AUTH flag is set and target < 0, then this function will
186 int target, unsigned short *fragoff, int *flags)
212 found = (nexthdr == target);
215 if (target < 0)
253 if (target < 0 &&
267 if (flags && (*flags & IP6_FH_F_AUTH) && (target < 0))
185 ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, int target, unsigned short *fragoff, int *flags) argument
/net/nfc/nci/
H A Dntf.c160 struct nfc_target *target,
185 pr_err("the target found does not have the desired protocol\n");
192 target->sens_res = nfca_poll->sens_res;
193 target->sel_res = nfca_poll->sel_res;
194 target->nfcid1_len = nfca_poll->nfcid1_len;
195 if (target->nfcid1_len > 0) {
196 memcpy(target->nfcid1, nfca_poll->nfcid1,
197 target->nfcid1_len);
202 target->sensb_res_len = nfcb_poll->sensb_res_len;
203 if (target
159 nci_add_new_protocol(struct nci_dev *ndev, struct nfc_target *target, __u8 rf_protocol, __u8 rf_tech_and_mode, void *params) argument
230 struct nfc_target *target; local
396 struct nfc_target *target; local
[all...]
H A Dcore.c449 pr_err("there is an active target\n");
455 pr_debug("target active or w4 select, implicitly deactivate\n");
495 struct nfc_target *target, __u32 protocol)
503 pr_debug("target_idx %d, protocol 0x%x\n", target->idx, protocol);
507 pr_err("there is no available target to activate\n");
512 pr_err("there is already an active target\n");
517 if (ndev->targets[i].idx == target->idx) {
524 pr_err("unable to find the selected target\n");
529 pr_err("target does not support the requested protocol 0x%x\n",
561 struct nfc_target *target)
494 nci_activate_target(struct nfc_dev *nfc_dev, struct nfc_target *target, __u32 protocol) argument
560 nci_deactivate_target(struct nfc_dev *nfc_dev, struct nfc_target *target) argument
580 nci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, __u8 comm_mode, __u8 *gb, size_t gb_len) argument
611 nci_transceive(struct nfc_dev *nfc_dev, struct nfc_target *target, struct sk_buff *skb, data_exchange_cb_t cb, void *cb_context) argument
[all...]
/net/phonet/
H A Ddatagram.c89 struct sockaddr_pn *target; local
103 target = (struct sockaddr_pn *)msg->msg_name;
104 if (target->spn_family != AF_PHONET)
123 err = pn_skb_send(sk, skb, target);
H A Daf_phonet.c238 const struct sockaddr_pn *target)
248 if (target != NULL) {
249 dst = pn_sockaddr_get_object(target);
250 res = pn_sockaddr_get_resource(target);
237 pn_skb_send(struct sock *sk, struct sk_buff *skb, const struct sockaddr_pn *target) argument
/net/sched/
H A Dsch_codel.c131 u32 target = nla_get_u32(tb[TCA_CODEL_TARGET]); local
133 q->params.target = ((u64)target * NSEC_PER_USEC) >> CODEL_SHIFT;
196 codel_time_to_us(q->params.target)) ||
H A Dact_ipt.c2 * net/sched/ipt.c iptables target interface
45 struct xt_target *target; local
48 target = xt_request_find_target(AF_INET, t->u.user.name,
50 if (IS_ERR(target))
51 return PTR_ERR(target);
53 t->u.kernel.target = target;
56 par.target = target;
63 module_put(t->u.kernel.target
[all...]
H A Dsch_fq_codel.c324 u64 target = nla_get_u32(tb[TCA_FQ_CODEL_TARGET]); local
326 q->cparams.target = (target * NSEC_PER_USEC) >> CODEL_SHIFT;
440 codel_time_to_us(q->cparams.target)) ||
/net/ipv6/netfilter/
H A Dnf_nat_l3proto_ipv6.c80 const struct nf_conntrack_tuple *target,
100 target, maniptype))
104 ipv6h->saddr = target->src.u3.in6;
106 ipv6h->daddr = target->dst.u3.in6;
205 struct nf_conntrack_tuple target; local
251 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple);
253 if (!nf_nat_ipv6_manip_pkt(skb, 0, l4proto, &target, manip))
77 nf_nat_ipv6_manip_pkt(struct sk_buff *skb, unsigned int iphdroff, const struct nf_nat_l4proto *l4proto, const struct nf_conntrack_tuple *target, enum nf_nat_manip_type maniptype) argument
/net/sunrpc/xprtrdma/
H A Drpc_rdma.c170 rpcrdma_create_chunks(struct rpc_rqst *rqst, struct xdr_buf *target, argument
198 pos = target->head[0].iov_len;
200 nsegs = rpcrdma_convert_iovs(target, pos, type, seg, RPCRDMA_MAX_SEGS);
488 * they land, packed, directly in the target buffers
/net/vmw_vsock/
H A Dvmci_transport_notify.c347 size_t target, bool *data_ready_now)
371 size_t target, bool *space_avail_now)
401 size_t target,
412 if (PKT_FIELD(vsk, write_notify_min_window) < target + 1) {
413 PKT_FIELD(vsk, write_notify_min_window) = target + 1;
437 size_t target,
443 if (!send_waiting_read(sk, target)) {
463 size_t target,
483 size_t target,
346 vmci_transport_notify_pkt_poll_in(struct sock *sk, size_t target, bool *data_ready_now) argument
370 vmci_transport_notify_pkt_poll_out(struct sock *sk, size_t target, bool *space_avail_now) argument
399 vmci_transport_notify_pkt_recv_init( struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data) argument
435 vmci_transport_notify_pkt_recv_pre_block( struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data) argument
461 vmci_transport_notify_pkt_recv_pre_dequeue( struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data) argument
481 vmci_transport_notify_pkt_recv_post_dequeue( struct sock *sk, size_t target, ssize_t copied, bool data_read, struct vmci_transport_recv_notify_data *data) argument
H A Dvmci_transport_notify_qstate.c168 size_t target, bool *data_ready_now)
189 size_t target, bool *space_avail_now)
211 size_t target,
220 if (PKT_FIELD(vsk, write_notify_min_window) < target + 1) {
221 PKT_FIELD(vsk, write_notify_min_window) = target + 1;
243 size_t target,
263 size_t target,
399 size_t target,
167 vmci_transport_notify_pkt_poll_in(struct sock *sk, size_t target, bool *data_ready_now) argument
188 vmci_transport_notify_pkt_poll_out(struct sock *sk, size_t target, bool *space_avail_now) argument
209 vmci_transport_notify_pkt_recv_init( struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data) argument
241 vmci_transport_notify_pkt_recv_pre_block( struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data) argument
261 vmci_transport_notify_pkt_recv_post_dequeue( struct sock *sk, size_t target, ssize_t copied, bool data_read, struct vmci_transport_recv_notify_data *data) argument
397 vmci_transport_notify_pkt_recv_pre_dequeue( struct sock *sk, size_t target, struct vmci_transport_recv_notify_data *data) argument
/net/bluetooth/
H A Daf_bluetooth.c318 size_t target, copied = 0; local
330 target = sock_rcvlowat(sk, flags & MSG_WAITALL, size);
339 if (copied >= target)
/net/core/
H A Dfib_rules.c237 struct fib_rule *target; local
239 target = rcu_dereference(rule->ctarget);
240 if (target == NULL) {
243 rule = target;
371 rule->target = nla_get_u32(tb[FRA_GOTO]);
373 if (rule->target <= rule->pref)
377 if (r->pref == rule->target) {
425 r->target == rule->pref &&
532 * Check if this rule is a target to any of them. If so,
626 (rule->target
[all...]
/net/mac80211/
H A Drc80211_pid.h37 * percentage to the target. This is intentional.
125 * @target: target percentage for failed frames
143 struct dentry *target; member in struct:rc_pid_debugfs_entries
181 /* Average failed frames percentage error (i.e. actual vs. target
245 /* The failed frames percentage target. */
246 unsigned int target; member in struct:rc_pid_info
/net/nfc/
H A Dcore.c150 * The device remains polling for targets until a target is found or
157 pr_debug("dev_name %s initiator protocols 0x%x target protocols 0x%x\n",
243 struct nfc_target *target; local
268 target = nfc_find_target(dev, target_index);
269 if (target == NULL) {
274 rc = dev->ops->dep_link_up(dev, target, comm_mode, gb, gb_len);
276 dev->active_target = target;
333 * nfc_activate_target - prepare the target for data exchange
335 * @dev: The nfc device that found the target
336 * @target_idx: index of the target tha
342 struct nfc_target *target; local
[all...]
H A Dnetlink.c66 static int nfc_genl_send_target(struct sk_buff *msg, struct nfc_target *target, argument
78 if (nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target->idx) ||
79 nla_put_u32(msg, NFC_ATTR_PROTOCOLS, target->supported_protocols) ||
80 nla_put_u16(msg, NFC_ATTR_TARGET_SENS_RES, target->sens_res) ||
81 nla_put_u8(msg, NFC_ATTR_TARGET_SEL_RES, target->sel_res))
83 if (target->nfcid1_len > 0 &&
84 nla_put(msg, NFC_ATTR_TARGET_NFCID1, target->nfcid1_len,
85 target->nfcid1))
87 if (target->sensb_res_len > 0 &&
88 nla_put(msg, NFC_ATTR_TARGET_SENSB_RES, target
[all...]
/net/openvswitch/
H A Dflow.h74 u8 tha[ETH_ALEN]; /* ARP target hardware address. */
89 struct in6_addr target; /* ND target address. */ member in struct:sw_flow_key::__anon115::__anon121::__anon124
91 u8 tll[ETH_ALEN]; /* ND target link layer address. */
122 unsigned char ar_tha[ETH_ALEN]; /* target hardware address */
123 unsigned char ar_tip[4]; /* target IP address */
/net/caif/
H A Dcaif_socket.c360 int target; local
379 target = sock_rcvlowat(sk, flags&MSG_WAITALL, size);
395 if (copied >= target)
/net/llc/
H A Daf_llc.c720 int target; /* Read at least this many bytes */ local
738 target = sock_rcvlowat(sk, flags & MSG_WAITALL, len);
765 if (copied >= target && !sk->sk_backlog.tail)
803 if (copied >= target) { /* Do not sleep, just process backlog. */
/net/netfilter/
H A Dnf_nat_core.c454 struct nf_conntrack_tuple target; local
457 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple);
459 l3proto = __nf_nat_l3proto_find(target.src.l3num);
460 l4proto = __nf_nat_l4proto_find(target.src.l3num,
461 target.dst.protonum);
462 if (!l3proto->manip_pkt(skb, 0, l4proto, &target, mtype))
/net/nfc/hci/
H A Dcore.c316 * single target to activate, so nothing to report
568 static int hci_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, argument
574 return hdev->ops->dep_link_up(hdev, target, comm_mode,
591 struct nfc_target *target, u32 protocol)
597 struct nfc_target *target)
626 static int hci_transceive(struct nfc_dev *nfc_dev, struct nfc_target *target, argument
633 pr_debug("target_idx=%d\n", target->idx);
635 switch (target->hci_reader_gate) {
639 r = hdev->ops->im_transceive(hdev, target, skb, cb,
651 r = nfc_hci_send_cmd_async(hdev, target
590 hci_activate_target(struct nfc_dev *nfc_dev, struct nfc_target *target, u32 protocol) argument
596 hci_deactivate_target(struct nfc_dev *nfc_dev, struct nfc_target *target) argument
684 hci_check_presence(struct nfc_dev *nfc_dev, struct nfc_target *target) argument
[all...]

Completed in 385 milliseconds

12