Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 94) sorted by relevance

1234

/net/
DKconfig60 source "net/packet/Kconfig"
61 source "net/unix/Kconfig"
62 source "net/tls/Kconfig"
63 source "net/xfrm/Kconfig"
64 source "net/iucv/Kconfig"
65 source "net/smc/Kconfig"
66 source "net/xdp/Kconfig"
91 source "net/ipv4/Kconfig"
92 source "net/ipv6/Kconfig"
93 source "net/netlabel/Kconfig"
[all …]
/net/6lowpan/
Dnhc_udp.c49 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress()
53 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress()
59 uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); in udp_uncompress()
64 uh.source = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val >> 4)); in udp_uncompress()
72 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress()
121 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress()
131 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); in udp_compress()
140 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); in udp_compress()
144 } else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress()
151 tmp = ntohs(uh->source) - LOWPAN_NHC_UDP_8BIT_PORT; in udp_compress()
[all …]
/net/netfilter/
Dxt_addrtype.c94 if (info->source) in addrtype_mt6()
95 ret &= match_type6(net, dev, &iph->saddr, info->source) ^ in addrtype_mt6()
118 if (info->source) in addrtype_mt_v0()
119 ret &= match_type(net, NULL, iph->saddr, info->source) ^ in addrtype_mt_v0()
147 if (info->source) in addrtype_mt_v1()
148 ret &= match_type(net, dev, iph->saddr, info->source) ^ in addrtype_mt_v1()
181 if ((info->source | info->dest) & XT_ADDRTYPE_BLACKHOLE) { in addrtype_mt_checkentry_v1()
185 if ((info->source | info->dest) >= XT_ADDRTYPE_PROHIBIT) { in addrtype_mt_checkentry_v1()
189 if ((info->source | info->dest) & XT_ADDRTYPE_BROADCAST) { in addrtype_mt_checkentry_v1()
Dxt_TPROXY.c53 hp->source, hp->dest, in tproxy_tg4()
69 hp->source, lport, in tproxy_tg4()
87 iph->protocol, &iph->saddr, ntohs(hp->source), in tproxy_tg4()
142 hp->source, hp->dest, in tproxy_tg6_v1()
163 hp->source, lport, in tproxy_tg6_v1()
173 tproto, &iph->saddr, ntohs(hp->source), in tproxy_tg6_v1()
181 tproto, &iph->saddr, ntohs(hp->source), in tproxy_tg6_v1()
Dnf_synproxy_core.c488 nth->source = th->dest; in synproxy_send_client_synack()
489 nth->dest = th->source; in synproxy_send_client_synack()
531 nth->source = th->source; in synproxy_send_server_syn()
576 nth->source = th->dest; in synproxy_send_server_ack()
577 nth->dest = th->source; in synproxy_send_server_ack()
614 nth->source = th->source; in synproxy_send_client_ack()
850 fl6.fl6_sport = nth->source; in synproxy_send_tcp_ipv6()
902 nth->source = th->dest; in synproxy_send_client_synack_ipv6()
903 nth->dest = th->source; in synproxy_send_client_synack_ipv6()
946 nth->source = th->source; in synproxy_send_server_syn_ipv6()
[all …]
Dxt_sctp.c136 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt()
138 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
139 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
Dnft_tproxy.c45 hp->source, hp->dest, in nft_tproxy_eval_v4()
67 hp->source, tport, in nft_tproxy_eval_v4()
112 hp->source, hp->dest, in nft_tproxy_eval_v6()
138 hp->source, tport, in nft_tproxy_eval_v6()
Dnf_flow_table_core.c414 port = hdr->source; in nf_flow_snat_port()
416 hdr->source = new_port; in nf_flow_snat_port()
451 port = hdr->source; in nf_flow_dnat_port()
453 hdr->source = new_port; in nf_flow_dnat_port()
/net/bridge/
Dbr_fdb.c35 static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
484 struct net_bridge_port *source, in fdb_create() argument
495 fdb->dst = source; in fdb_create()
516 static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source, in fdb_insert() argument
532 source ? source->dev->name : br->dev->name, addr, vid); in fdb_insert()
536 fdb = fdb_create(br, source, addr, vid, 1, 1); in fdb_insert()
546 int br_fdb_insert(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_insert() argument
552 ret = fdb_insert(br, source, addr, vid); in br_fdb_insert()
557 void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_update() argument
568 if (!(source->state == BR_STATE_LEARNING || in br_fdb_update()
[all …]
/net/mac802154/
Diface.c390 hdr.source.mode = IEEE802154_ADDR_LONG; in ieee802154_header_create()
391 hdr.source.extended_addr = wpan_dev->extended_addr; in ieee802154_header_create()
393 hdr.source.mode = IEEE802154_ADDR_SHORT; in ieee802154_header_create()
394 hdr.source.short_addr = wpan_dev->short_addr; in ieee802154_header_create()
397 hdr.source.pan_id = wpan_dev->pan_id; in ieee802154_header_create()
399 hdr.source = *(const struct ieee802154_addr *)saddr; in ieee802154_header_create()
458 hdr.source.pan_id = hdr.dest.pan_id; in mac802154_header_create()
459 hdr.source.mode = IEEE802154_ADDR_LONG; in mac802154_header_create()
462 hdr.source.extended_addr = wpan_dev->extended_addr; in mac802154_header_create()
464 ieee802154_be64_to_le64(&hdr.source.extended_addr, saddr); in mac802154_header_create()
[all …]
Drx.c153 ieee802154_print_addr("source", &hdr->source); in ieee802154_parse_frame_start()
155 cb->source = hdr->source; in ieee802154_parse_frame_start()
/net/nfc/
DKconfig32 source "net/nfc/nci/Kconfig"
33 source "net/nfc/hci/Kconfig"
35 source "drivers/nfc/Kconfig"
/net/ieee802154/
Dheader_ops.c94 fc->source_addr_mode = hdr->source.mode; in ieee802154_hdr_push()
96 if (hdr->source.pan_id == hdr->dest.pan_id && in ieee802154_hdr_push()
100 rc = ieee802154_hdr_push_addr(buf + pos, &hdr->source, fc->intra_pan); in ieee802154_hdr_push()
225 hdr->fc.intra_pan, &hdr->source); in ieee802154_hdr_get_addrs()
228 hdr->source.pan_id = hdr->dest.pan_id; in ieee802154_hdr_get_addrs()
/net/bluetooth/
DKconfig56 source "net/bluetooth/rfcomm/Kconfig"
58 source "net/bluetooth/bnep/Kconfig"
60 source "net/bluetooth/cmtp/Kconfig"
62 source "net/bluetooth/hidp/Kconfig"
131 source "drivers/bluetooth/Kconfig"
/net/netfilter/ipset/
Dip_set_getport.c38 *port = src ? th->source : th->dest; in get_port()
50 *port = src ? sh->source : sh->dest; in get_port()
63 *port = src ? uh->source : uh->dest; in get_port()
/net/rxrpc/
Dutils.c25 srx->transport.sin.sin_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb()
34 srx->transport.sin6.sin6_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb()
/net/ipv4/
Dudp_offload.c381 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source)) { in udp_gro_receive_segment()
418 udp4_lib_lookup_skb, skb, uh->source, uh->dest); in udp_gro_receive()
449 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source) || in udp_gro_receive()
519 udp4_lib_lookup_skb, skb, uh->source, uh->dest); in udp_gro_complete()
Dsyncookies.c173 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence()
195 th->source, th->dest, seq); in __cookie_v4_check()
341 ireq->ir_rmt_port = th->source; in cookie_v4_check()
379 ireq->ir_loc_addr, th->source, th->dest, sk->sk_uid); in cookie_v4_check()
/net/ipv6/netfilter/
Dnf_reject_ipv6.c98 tcph->source = oth->dest; in nf_reject_ip6_tcphdr_put()
99 tcph->dest = oth->source; in nf_reject_ip6_tcphdr_put()
156 fl6.fl6_dport = otcph->source; in nf_send_reset6()
/net/ipv6/
Dsyncookies.c104 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source, in __cookie_v6_init_sequence()
122 th->source, th->dest, seq); in __cookie_v6_check()
185 ireq->ir_rmt_port = th->source; in cookie_v6_check()
DKconfig233 bool "IPv6: source address based routing"
236 Enable routing by source address or prefix.
239 normal and source prefix specific routes in the same routing table
242 source prefix specific routes.
260 what to do with a multicast packet based on the source and
/net/openvswitch/
Dactions.c653 src = OVS_MASKED(uh->source, key->udp_src, mask->udp_src); in set_udp()
657 if (likely(src != uh->source)) { in set_udp()
658 set_tp_port(skb, &uh->source, src, &uh->check); in set_udp()
669 uh->source = src; in set_udp()
694 src = OVS_MASKED(th->source, key->tcp_src, mask->tcp_src); in set_tcp()
695 if (likely(src != th->source)) { in set_tcp()
696 set_tp_port(skb, &th->source, src, &th->check); in set_tcp()
726 sh->source = OVS_MASKED(sh->source, key->sctp_src, mask->sctp_src); in set_sctp()
735 flow_key->tp.src = sh->source; in set_sctp()
Dflow.c576 key->tp.src = tcp->source; in key_extract_l3l4()
586 key->tp.src = udp->source; in key_extract_l3l4()
594 key->tp.src = sctp->source; in key_extract_l3l4()
692 key->tp.src = tcp->source; in key_extract_l3l4()
701 key->tp.src = udp->source; in key_extract_l3l4()
709 key->tp.src = sctp->source; in key_extract_l3l4()
/net/netrom/
Daf_netrom.c544 ax25_address *source; in nr_bind() local
580 source = &addr->fsa_ax25.sax25_call; in nr_bind()
592 nr->user_addr = *source; in nr_bind()
595 nr->source_addr = *source; in nr_bind()
614 ax25_address *source = NULL; in nr_connect() local
654 source = (ax25_address *)dev->dev_addr; in nr_connect()
666 nr->user_addr = *source; in nr_connect()
669 nr->source_addr = *source; in nr_connect()
/net/ipv4/netfilter/
Dnf_reject_ipv4.c77 tcph->source = oth->dest; in nf_reject_ip_tcphdr_put()
78 tcph->dest = oth->source; in nf_reject_ip_tcphdr_put()

1234