Home
last modified time | relevance | path

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

1234

/net/
DKconfig63 source "net/packet/Kconfig"
64 source "net/unix/Kconfig"
65 source "net/tls/Kconfig"
66 source "net/xfrm/Kconfig"
67 source "net/iucv/Kconfig"
68 source "net/smc/Kconfig"
69 source "net/xdp/Kconfig"
94 source "net/ipv4/Kconfig"
95 source "net/ipv6/Kconfig"
96 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.c493 nth->source = th->dest; in synproxy_send_client_synack()
494 nth->dest = th->source; in synproxy_send_client_synack()
536 nth->source = th->source; in synproxy_send_server_syn()
581 nth->source = th->dest; in synproxy_send_server_ack()
582 nth->dest = th->source; in synproxy_send_server_ack()
619 nth->source = th->source; in synproxy_send_client_ack()
855 fl6.fl6_sport = nth->source; in synproxy_send_tcp_ipv6()
907 nth->source = th->dest; in synproxy_send_client_synack_ipv6()
908 nth->dest = th->source; in synproxy_send_client_synack_ipv6()
951 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.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()
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()
Dxt_tcpudp.c97 ntohs(th->source), in tcp_mt()
149 ntohs(uh->source), in udp_mt()
/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.c47 if (hdr->source.mode != IEEE802154_ADDR_NONE) in ieee802154_subif_frame()
153 ieee802154_print_addr("source", &hdr->source); in ieee802154_parse_frame_start()
155 cb->source = hdr->source; in ieee802154_parse_frame_start()
/net/ipv4/
Dudp_offload.c225 (udp_hdr(seg)->source == udp_hdr(seg->next)->source) && in __udpv4_gso_segment_list_csum()
236 &uh2->source, &uh->source); in __udpv4_gso_segment_list_csum()
457 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source)) { in udp_gro_receive_segment()
550 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source) || in udp_gro_receive()
590 …sk = static_branch_unlikely(&udp_encap_needed_key) ? udp4_lib_lookup_skb(skb, uh->source, uh->dest… in udp4_gro_receive()
629 udp4_lib_lookup_skb, skb, uh->source, uh->dest); in udp_gro_complete()
Dsyncookies.c167 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence()
189 th->source, th->dest, seq); in __cookie_v4_check()
337 ireq->ir_rmt_port = th->source; in cookie_v4_check()
375 ireq->ir_loc_addr, th->source, th->dest, sk->sk_uid); in cookie_v4_check()
/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/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()
184 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/netrom/
Daf_netrom.c549 ax25_address *source; in nr_bind() local
585 source = &addr->fsa_ax25.sax25_call; in nr_bind()
597 nr->user_addr = *source; in nr_bind()
600 nr->source_addr = *source; in nr_bind()
619 ax25_address *source = NULL; in nr_connect() local
664 source = (ax25_address *)dev->dev_addr; in nr_connect()
676 nr->user_addr = *source; in nr_connect()
679 nr->source_addr = *source; in nr_connect()
/net/openvswitch/
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()
Dactions.c689 src = OVS_MASKED(uh->source, key->udp_src, mask->udp_src); in set_udp()
693 if (likely(src != uh->source)) { in set_udp()
694 set_tp_port(skb, &uh->source, src, &uh->check); in set_udp()
705 uh->source = src; in set_udp()
731 src = OVS_MASKED(th->source, key->tcp_src, mask->tcp_src); in set_tcp()
732 if (likely(src != th->source)) { in set_tcp()
733 set_tp_port(skb, &th->source, src, &th->check); in set_tcp()
763 sh->source = OVS_MASKED(sh->source, key->sctp_src, mask->sctp_src); in set_sctp()
774 flow_key->tp.src = sh->source; in set_sctp()

1234