Home
last modified time | relevance | path

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

12345

/net/
DKconfig68 source "net/packet/Kconfig"
69 source "net/unix/Kconfig"
70 source "net/tls/Kconfig"
71 source "net/xfrm/Kconfig"
72 source "net/iucv/Kconfig"
73 source "net/smc/Kconfig"
74 source "net/xdp/Kconfig"
119 source "net/ipv4/Kconfig"
120 source "net/ipv6/Kconfig"
121 source "net/netlabel/Kconfig"
[all …]
/net/6lowpan/
Dnhc_udp.c48 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress()
52 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); in udp_uncompress()
58 uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); in udp_uncompress()
63 uh.source = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val >> 4)); in udp_uncompress()
71 ntohs(uh.source), ntohs(uh.dest)); in udp_uncompress()
120 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == in udp_compress()
130 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); in udp_compress()
139 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); in udp_compress()
143 } else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) == in udp_compress()
150 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()
Dnf_synproxy_core.c470 nth->source = th->dest; in synproxy_send_client_synack()
471 nth->dest = th->source; in synproxy_send_client_synack()
513 nth->source = th->source; in synproxy_send_server_syn()
558 nth->source = th->dest; in synproxy_send_server_ack()
559 nth->dest = th->source; in synproxy_send_server_ack()
596 nth->source = th->source; in synproxy_send_client_ack()
831 fl6.fl6_sport = nth->source; in synproxy_send_tcp_ipv6()
883 nth->source = th->dest; in synproxy_send_client_synack_ipv6()
884 nth->dest = th->source; in synproxy_send_client_synack_ipv6()
927 nth->source = th->source; in synproxy_send_server_syn_ipv6()
[all …]
Dxt_TPROXY.c53 hp->source, hp->dest, in tproxy_tg4()
69 hp->source, lport, in tproxy_tg4()
130 hp->source, hp->dest, in tproxy_tg6_v1()
151 hp->source, lport, in tproxy_tg6_v1()
Dxt_sctp.c135 pr_debug("spt: %d\tdpt: %d\n", ntohs(sh->source), ntohs(sh->dest)); in sctp_mt()
137 return SCCHECK(ntohs(sh->source) >= info->spts[0] in sctp_mt()
138 && ntohs(sh->source) <= info->spts[1], in sctp_mt()
Dnft_tproxy.c51 hp->source, hp->dest, in nft_tproxy_eval_v4()
73 hp->source, tport, in nft_tproxy_eval_v4()
119 hp->source, hp->dest, in nft_tproxy_eval_v6()
145 hp->source, tport, in nft_tproxy_eval_v6()
/net/mctp/
Dneigh.c25 enum mctp_neigh_source source, in mctp_neigh_add() argument
52 neigh->source = source; in mctp_neigh_add()
89 enum mctp_neigh_source source) in mctp_neigh_remove() argument
98 neigh->source == source) { in mctp_neigh_remove()
224 if (neigh->source == MCTP_NEIGH_STATIC) in mctp_fill_neigh()
/net/mac802154/
Diface.c382 hdr.source.mode = IEEE802154_ADDR_LONG; in ieee802154_header_create()
383 hdr.source.extended_addr = wpan_dev->extended_addr; in ieee802154_header_create()
385 hdr.source.mode = IEEE802154_ADDR_SHORT; in ieee802154_header_create()
386 hdr.source.short_addr = wpan_dev->short_addr; in ieee802154_header_create()
389 hdr.source.pan_id = wpan_dev->pan_id; in ieee802154_header_create()
391 hdr.source = *(const struct ieee802154_addr *)saddr; in ieee802154_header_create()
450 hdr.source.pan_id = hdr.dest.pan_id; in mac802154_header_create()
451 hdr.source.mode = IEEE802154_ADDR_LONG; in mac802154_header_create()
454 hdr.source.extended_addr = wpan_dev->extended_addr; in mac802154_header_create()
456 ieee802154_be64_to_le64(&hdr.source.extended_addr, saddr); in mac802154_header_create()
[all …]
Drx.c134 if (hdr->source.mode != IEEE802154_ADDR_NONE) in ieee802154_subif_frame()
269 ieee802154_print_addr("source", &hdr->source); in ieee802154_parse_frame_start()
271 cb->source = hdr->source; in ieee802154_parse_frame_start()
Dscan.c312 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_beacon()
490 local->beacon.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_beacons_locked()
491 local->beacon.mhr.source.pan_id = request->wpan_dev->pan_id; in mac802154_send_beacons_locked()
492 local->beacon.mhr.source.extended_addr = request->wpan_dev->extended_addr; in mac802154_send_beacons_locked()
/net/bridge/
Dbr_fdb.c386 struct net_bridge_port *source, in fdb_create() argument
399 WRITE_ONCE(fdb->dst, source); in fdb_create()
415 static int fdb_add_local(struct net_bridge *br, struct net_bridge_port *source, in fdb_add_local() argument
431 source ? source->dev->name : br->dev->name, addr, vid); in fdb_add_local()
435 fdb = fdb_create(br, source, addr, vid, in fdb_add_local()
835 int br_fdb_add_local(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_add_local() argument
841 ret = fdb_add_local(br, source, addr, vid); in br_fdb_add_local()
853 void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source, in br_fdb_update() argument
868 source->dev->name, addr, vid); in br_fdb_update()
879 if (unlikely(source != READ_ONCE(fdb->dst) && in br_fdb_update()
[all …]
/net/nfc/
DKconfig31 source "net/nfc/nci/Kconfig"
32 source "net/nfc/hci/Kconfig"
34 source "drivers/nfc/Kconfig"
/net/ipv4/
Dudp_offload.c230 (udp_hdr(seg)->source == udp_hdr(seg->next)->source) && in __udpv4_gso_segment_list_csum()
241 &uh2->source, &uh->source); in __udpv4_gso_segment_list_csum()
503 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source)) { in udp_gro_receive_segment()
614 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source) || in udp_gro_receive()
669 sk = udp4_gro_lookup_skb(skb, uh->source, uh->dest); in udp4_gro_receive()
707 udp4_lib_lookup_skb, skb, uh->source, uh->dest); in udp_gro_complete()
Dsyncookies.c165 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence()
187 th->source, th->dest, seq); in __cookie_v4_check()
379 ireq->ir_rmt_port = th->source; in cookie_v4_check()
418 ireq->ir_loc_addr, th->source, th->dest, sk->sk_uid); in cookie_v4_check()
Desp4.c357 uh->source = sport; in esp_output_udp_encap()
770 __be16 source; in esp_input_done2() local
774 source = th->source; in esp_input_done2()
778 source = uh->source; in esp_input_done2()
793 source != encap->encap_sport) { in esp_input_done2()
797 km_new_mapping(x, &ipaddr, source); in esp_input_done2()
/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/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()
272 hdr->fc.intra_pan, &hdr->source); in ieee802154_hdr_get_addrs()
275 hdr->source.pan_id = hdr->dest.pan_id; in ieee802154_hdr_get_addrs()
/net/bluetooth/
DKconfig57 source "net/bluetooth/rfcomm/Kconfig"
59 source "net/bluetooth/bnep/Kconfig"
61 source "net/bluetooth/cmtp/Kconfig"
63 source "net/bluetooth/hidp/Kconfig"
155 source "drivers/bluetooth/Kconfig"
/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/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()
184 ireq->ir_rmt_port = th->source; in cookie_v6_check()
Desp6.c393 uh->source = sport; in esp6_output_udp_encap()
805 __be16 frag_off, source; in esp6_input_done2() local
821 source = th->source; in esp6_input_done2()
825 source = uh->source; in esp6_input_done2()
840 source != encap->encap_sport) { in esp6_input_done2()
844 km_new_mapping(x, &ipaddr, source); in esp6_input_done2()
/net/netrom/
Daf_netrom.c571 ax25_address *source; in nr_bind() local
607 source = &addr->fsa_ax25.sax25_call; in nr_bind()
619 nr->user_addr = *source; in nr_bind()
622 nr->source_addr = *source; in nr_bind()
641 const ax25_address *source = NULL; in nr_connect() local
686 source = (const ax25_address *)dev->dev_addr; in nr_connect()
698 nr->user_addr = *source; in nr_connect()
701 nr->source_addr = *source; in nr_connect()
/net/openvswitch/
Dactions.c687 src = OVS_MASKED(uh->source, key->udp_src, mask->udp_src); in set_udp()
691 if (likely(src != uh->source)) { in set_udp()
692 set_tp_port(skb, &uh->source, src, &uh->check); in set_udp()
703 uh->source = src; in set_udp()
729 src = OVS_MASKED(th->source, key->tcp_src, mask->tcp_src); in set_tcp()
730 if (likely(src != th->source)) { in set_tcp()
731 set_tp_port(skb, &th->source, src, &th->check); in set_tcp()
761 sh->source = OVS_MASKED(sh->source, key->sctp_src, mask->sctp_src); in set_sctp()
772 flow_key->tp.src = sh->source; in set_sctp()
/net/netfilter/ipvs/
DKconfig221 tristate "source hashing scheduling"
223 The source hashing scheduling algorithm assigns network
225 hash table by their source IP addresses.
289 int "IPVS source hashing table size (the Nth power of 2)"
293 The source hashing scheduler maps source IPs to destinations
308 The maglev hashing scheduler maps source IPs to destinations

12345