| /net/6lowpan/ |
| A D | nhc_udp.c | 48 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/ |
| A D | Kconfig | 85 source "net/unix/Kconfig" 86 source "net/tls/Kconfig" 87 source "net/xfrm/Kconfig" 88 source "net/iucv/Kconfig" 89 source "net/smc/Kconfig" 90 source "net/xdp/Kconfig" 135 source "net/ipv4/Kconfig" 136 source "net/ipv6/Kconfig" 253 source "net/rds/Kconfig" 255 source "net/atm/Kconfig" [all …]
|
| /net/netfilter/ |
| A D | xt_addrtype.c | 94 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()
|
| A D | nf_synproxy_core.c | 470 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() 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() 972 nth->source = th->dest; in synproxy_send_server_ack_ipv6() [all …]
|
| A D | xt_TPROXY.c | 53 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()
|
| A D | xt_sctp.c | 135 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()
|
| A D | nft_tproxy.c | 51 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/mac802154/ |
| A D | iface.c | 382 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 …]
|
| A D | scan.c | 314 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_beacon() 493 local->beacon.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_beacons_locked() 536 frame.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_perform_association() 538 frame.mhr.source.extended_addr = wpan_dev->extended_addr; in mac802154_perform_association() 612 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_association_resp() 663 frame.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_disassociation_notif() 664 frame.mhr.source.pan_id = wpan_dev->pan_id; in mac802154_send_disassociation_notif() 665 frame.mhr.source.extended_addr = wpan_dev->extended_addr; in mac802154_send_disassociation_notif() 723 frame.mhr.source.mode = IEEE802154_ADDR_LONG; in mac802154_send_association_resp_locked() 761 struct ieee802154_addr *src = &mac_cb(skb)->source; in mac802154_process_association_req() [all …]
|
| A D | rx.c | 159 if (hdr->source.mode == IEEE802154_ADDR_NONE) in ieee802154_subif_frame() 297 ieee802154_print_addr("source", &hdr->source); in ieee802154_parse_frame_start() 299 cb->source = hdr->source; in ieee802154_parse_frame_start()
|
| /net/bridge/ |
| A D | br_fdb.c | 383 struct net_bridge_port *source, in fdb_create() argument 407 WRITE_ONCE(fdb->dst, source); in fdb_create() 442 source ? source->dev->name : br->dev->name, addr, vid); in fdb_add_local() 446 fdb = fdb_create(br, source, addr, vid, in fdb_add_local() 871 ret = fdb_add_local(br, source, addr, vid); in br_fdb_add_local() 898 source->dev->name, addr, vid); in br_fdb_update() 912 WRITE_ONCE(fdb->dst, source); in br_fdb_update() 1073 if (!source && !(state & NUD_PERMANENT)) { in fdb_add_entry() 1094 fdb = fdb_create(br, source, addr, vid, in fdb_add_entry() 1104 if (READ_ONCE(fdb->dst) != source) { in fdb_add_entry() [all …]
|
| /net/mctp/ |
| A D | neigh.c | 25 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/ipv6/ |
| A D | tcpv6_offload.c | 40 &hdr->saddr, th->source, in tcp6_check_fraglist_gro() 132 if (!(*(const u32 *)&th->source ^ *(const u32 *)&th2->source) && in __tcpv6_gso_segment_list_csum() 142 &th2->source, th->source); in __tcpv6_gso_segment_list_csum()
|
| A D | esp6.c | 353 uh->source = sport; in esp6_output_udp_encap() 760 __be16 frag_off, source; in esp6_input_done2() local 776 source = th->source; in esp6_input_done2() 779 source = uh->source; in esp6_input_done2() 794 source != encap->encap_sport) { in esp6_input_done2() 798 km_new_mapping(x, &ipaddr, source); in esp6_input_done2()
|
| /net/ipv4/ |
| A D | udp_offload.c | 386 (udp_hdr(seg)->source == udp_hdr(seg->next)->source) && in __udpv4_gso_segment_list_csum() 397 &uh2->source, &uh->source); in __udpv4_gso_segment_list_csum() 444 if (!(*(const u32 *)&uh->source ^ *(const u32 *)&uh2->source) && in __udpv6_gso_segment_list_csum() 454 &uh2->source, uh->source); in __udpv6_gso_segment_list_csum() 732 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source)) { in udp_gro_receive_segment() 837 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source) || in udp_gro_receive() 897 sk = udp4_gro_lookup_skb(skb, uh->source, uh->dest); in udp4_gro_receive() 935 udp4_lib_lookup_skb, skb, uh->source, uh->dest); in udp_gro_complete()
|
| A D | tcp_offload.c | 69 if (!(*(const u32 *)&th->source ^ *(const u32 *)&th2->source) && in __tcpv4_gso_segment_list_csum() 79 &th2->source, th->source); in __tcpv4_gso_segment_list_csum() 274 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) { in tcp_gro_lookup() 438 iph->saddr, th->source, in tcp4_check_fraglist_gro()
|
| A D | syncookies.c | 166 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence() 190 th->source, th->dest, seq); in __cookie_v4_check() 274 ireq->ir_rmt_port = th->source; in cookie_tcp_reqsk_init() 457 ireq->ir_loc_addr, th->source, th->dest, in cookie_v4_check()
|
| /net/nfc/ |
| A D | Kconfig | 31 source "net/nfc/nci/Kconfig" 32 source "net/nfc/hci/Kconfig" 34 source "drivers/nfc/Kconfig"
|
| /net/ieee802154/ |
| A D | header_ops.c | 94 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/netfilter/ipset/ |
| A D | ip_set_getport.c | 38 *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/bluetooth/ |
| A D | Kconfig | 57 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/ethtool/ |
| A D | tsconfig.c | 263 enum hwtstamp_source source; in tsconfig_set_hwprov_from_desc() local 269 source = HWTSTAMP_SOURCE_NETDEV; in tsconfig_set_hwprov_from_desc() 280 source = HWTSTAMP_SOURCE_PHYLIB; in tsconfig_set_hwprov_from_desc() 289 hwprov->source = source; in tsconfig_set_hwprov_from_desc()
|
| /net/rxrpc/ |
| A D | utils.c | 25 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/core/ |
| A D | timestamping.c | 37 if (hwprov->source != HWTSTAMP_SOURCE_PHYLIB || in skb_clone_tx_timestamp() 80 if (hwprov->source != HWTSTAMP_SOURCE_PHYLIB || in skb_defer_rx_timestamp()
|
| A D | dev_ioctl.c | 265 if (hwprov->source == HWTSTAMP_SOURCE_PHYLIB && in dev_get_hwtstamp_phylib() 269 if (hwprov->source == HWTSTAMP_SOURCE_NETDEV) in dev_get_hwtstamp_phylib() 341 if (hwprov->source == HWTSTAMP_SOURCE_PHYLIB && in dev_set_hwtstamp_phylib() 345 } else if (hwprov->source == HWTSTAMP_SOURCE_NETDEV) { in dev_set_hwtstamp_phylib() 358 cfg->source = phy_ts ? HWTSTAMP_SOURCE_PHYLIB : HWTSTAMP_SOURCE_NETDEV; in dev_set_hwtstamp_phylib()
|