| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | sysctl_net_ipv4.c | 62 write_seqlock_bh(&net->ipv4.ip_local_ports.lock); in set_local_port_range() 63 if (same_parity && !net->ipv4.ip_local_ports.warned) { in set_local_port_range() 64 net->ipv4.ip_local_ports.warned = true; in set_local_port_range() 67 net->ipv4.ip_local_ports.range[0] = range[0]; in set_local_port_range() 68 net->ipv4.ip_local_ports.range[1] = range[1]; in set_local_port_range() 69 write_sequnlock_bh(&net->ipv4.ip_local_ports.lock); in set_local_port_range() 77 container_of(table->data, struct net, ipv4.ip_local_ports.range); in ipv4_local_port_range() 98 (range[0] < READ_ONCE(net->ipv4.sysctl_ip_prot_sock))) in ipv4_local_port_range() 112 ipv4.sysctl_ip_prot_sock); in ipv4_privileged_ports() 124 pports = READ_ONCE(net->ipv4.sysctl_ip_prot_sock); in ipv4_privileged_ports() [all …]
|
| H A D | tcp_fastopen.c | 19 ctxt = rcu_dereference(net->ipv4.tcp_fastopen_ctx); in tcp_fastopen_init_key_once() 58 spin_lock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_ctx_destroy() 60 ctxt = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx, in tcp_fastopen_ctx_destroy() 61 lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock)); in tcp_fastopen_ctx_destroy() 62 rcu_assign_pointer(net->ipv4.tcp_fastopen_ctx, NULL); in tcp_fastopen_ctx_destroy() 63 spin_unlock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_ctx_destroy() 92 spin_lock(&net->ipv4.tcp_fastopen_ctx_lock); in tcp_fastopen_reset_cipher() 96 lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock)); in tcp_fastopen_reset_cipher() 99 octx = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx, in tcp_fastopen_reset_cipher() 100 lockdep_is_held(&net->ipv4.tcp_fastopen_ctx_lock)); in tcp_fastopen_reset_cipher() [all …]
|
| H A D | tcp_ipv4.c | 109 int reuse = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_tw_reuse); in tcp_twsk_unique() 209 struct inet_timewait_death_row *tcp_death_row = &sock_net(sk)->ipv4.tcp_death_row; in tcp_v4_connect() 797 ctl_sk = this_cpu_read(*net->ipv4.tcp_sk); in tcp_v4_send_reset() 895 ctl_sk = this_cpu_read(*net->ipv4.tcp_sk); in tcp_v4_send_ack() 988 tos = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_reflect_tos) ? in tcp_v4_send_synack() 1563 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_reflect_tos)) in tcp_v4_syn_recv_sock() 2816 .sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_tcp_wmem), 2817 .sysctl_rmem_offset = offsetof(struct net, ipv4.sysctl_tcp_rmem), 2833 if (net->ipv4.tcp_congestion_control) in tcp_sk_exit() 2834 bpf_module_put(net->ipv4.tcp_congestion_control, in tcp_sk_exit() [all …]
|
| H A D | fib_rules.c | 92 err = fib_rules_lookup(net->ipv4.rules_ops, flowi4_to_flowi(flp), 0, &arg); in __fib_lookup() 267 atomic_inc(&net->ipv4.fib_num_tclassid_users); in fib4_rule_configure() 272 net->ipv4.fib_rules_require_fldissect++; in fib4_rule_configure() 280 net->ipv4.fib_has_custom_rules = true; in fib4_rule_configure() 299 atomic_dec(&net->ipv4.fib_num_tclassid_users); in fib4_rule_delete() 301 net->ipv4.fib_has_custom_rules = true; in fib4_rule_delete() 303 if (net->ipv4.fib_rules_require_fldissect && in fib4_rule_delete() 305 net->ipv4.fib_rules_require_fldissect--; in fib4_rule_delete() 421 net->ipv4.rules_ops = ops; in fib4_rules_init() 422 net->ipv4.fib_has_custom_rules = false; in fib4_rules_init() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_sk_assign.c | 44 get_tuple(struct __sk_buff *skb, bool *ipv4, bool *tcp) in get_tuple() argument 68 *ipv4 = true; in get_tuple() 77 *ipv4 = false; in get_tuple() 91 handle_udp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_udp() argument 100 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp() 108 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_udp() 123 handle_tcp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_tcp() argument 132 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp() 143 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_tcp() 166 bool ipv4 = false; in bpf_sk_assign_test() local [all …]
|
| H A D | test_cls_redirect.c | 90 offsetofend(struct bpf_sock_tuple, ipv4.dport) - 91 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1, 197 static INLINING bool pkt_skip_ipv4_options(buf_t *buf, const struct iphdr *ipv4) in pkt_skip_ipv4_options() argument 199 if (ipv4->ihl <= 5) { in pkt_skip_ipv4_options() 203 return buf_skip(buf, (ipv4->ihl - 5) * 4); in pkt_skip_ipv4_options() 214 struct iphdr *ipv4 = buf_assign(pkt, sizeof(*ipv4), scratch); in pkt_parse_ipv4() local 215 if (ipv4 == NULL) { in pkt_parse_ipv4() 219 if (ipv4->ihl < 5) { in pkt_parse_ipv4() 223 if (!pkt_skip_ipv4_options(pkt, ipv4)) { in pkt_parse_ipv4() 227 return ipv4; in pkt_parse_ipv4() [all …]
|
| H A D | connect4_prog.c | 154 memset(&tuple.ipv4.saddr, 0, sizeof(tuple.ipv4.saddr)); in connect_v4_prog() 155 memset(&tuple.ipv4.sport, 0, sizeof(tuple.ipv4.sport)); in connect_v4_prog() 157 tuple.ipv4.daddr = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog() 158 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog() 173 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog() 176 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog() 182 if (sk->src_ip4 != tuple.ipv4.daddr || in connect_v4_prog()
|
| /OK3568_Linux_fs/app/forlinx/quectelCM/ |
| H A D | udhcpc_netlink.c | 100 if (profile->rawIP && profile->ipv4.Address && profile->ipv4.Mtu) in udhcpc_start() 102 if_set_mtu(ifname, (profile->ipv4.Mtu)); in udhcpc_start() 122 if (profile->ipv4.Address) in udhcpc_start() 124 dbg_time("IPv4 MTU: %d", profile->ipv4.Mtu); in udhcpc_start() 125 dbg_time("IPv4 Address: %s", ipaddr_to_string_v4(ntohl(profile->ipv4.Address))); in udhcpc_start() 126 dbg_time("IPv4 Netmask: %d", mask_to_prefix_v4(ntohl(profile->ipv4.SubnetMask))); in udhcpc_start() 127 dbg_time("IPv4 Gateway: %s", ipaddr_to_string_v4(ntohl(profile->ipv4.Gateway))); in udhcpc_start() 128 dbg_time("IPv4 DNS1: %s", ipaddr_to_string_v4(ntohl(profile->ipv4.DnsPrimary))); in udhcpc_start() 129 dbg_time("IPv4 DNS2: %s", ipaddr_to_string_v4(ntohl(profile->ipv4.DnsSecondary))); in udhcpc_start() 130 if_set_network_v4(ifname, ntohl(profile->ipv4.Address), in udhcpc_start() [all …]
|
| H A D | udhcpc.c | 299 static void update_ip_address_by_qmi(const char *ifname, const IPV4_T *ipv4, const IPV6_T *ipv6) { in update_ip_address_by_qmi() argument 302 if (ipv4 && ipv4->Address) { in update_ip_address_by_qmi() 303 d1 = strdup(ipv4Str(ipv4->Address)); in update_ip_address_by_qmi() 304 d2 = strdup(ipv4Str(ipv4->Gateway)); in update_ip_address_by_qmi() 309 if (ipv4->SubnetMask&(1<<n)) { in update_ip_address_by_qmi() 318 if (ipv4->DnsPrimary) { in update_ip_address_by_qmi() 319 d1 = strdup(ipv4Str(ipv4->DnsPrimary)); in update_ip_address_by_qmi() 320 d2 = strdup(ipv4Str(ipv4->DnsSecondary ? ipv4->DnsSecondary : ipv4->DnsPrimary)); in update_ip_address_by_qmi() 377 static void ql_openwrt_setup_wan(const char *ifname, const IPV4_T *ipv4) { in ql_openwrt_setup_wan() argument 383 if (ipv4 == NULL) { in ql_openwrt_setup_wan() [all …]
|
| H A D | udhcpc_script.c | 99 profile->ipv4.Mtu, in udhcpc_start() 100 ipaddr_to_string_v4(ntohl(profile->ipv4.Address), ip, sizeof(ip)), in udhcpc_start() 101 ipaddr_to_string_v4(ntohl(profile->ipv4.SubnetMask), subnet, sizeof(subnet)), in udhcpc_start() 102 … ipaddr_to_string_v4(ntohl(broadcast_from_mask(profile->ipv4.Address, profile->ipv4.SubnetMask)), in udhcpc_start() 104 ipaddr_to_string_v4(ntohl(profile->ipv4.Gateway), router, sizeof(router)), in udhcpc_start() 105 ipaddr_to_string_v4(ntohl(profile->ipv4.DnsPrimary), domain1, sizeof(domain1)), in udhcpc_start() 106 ipaddr_to_string_v4(ntohl(profile->ipv4.DnsSecondary), domain2, sizeof(domain2)), in udhcpc_start()
|
| H A D | qmap_bridge_mode.c | 55 char ipv4[128]; in ql_bridge_mode_detect() local 88 memset(ipv4, 0, sizeof(ipv4)); in ql_bridge_mode_detect() 91 snprintf(ipv4, sizeof(ipv4), "0x%x", profile->ipv4.Address); in ql_bridge_mode_detect() 92 dbg_time("echo '%s' > %s", ipv4, bridge_ipv4); in ql_bridge_mode_detect() 93 ql_fwrite(bridge_ipv4, ipv4, strlen(ipv4)); in ql_bridge_mode_detect() 96 snprintf(ipv4, sizeof(ipv4), "0x%x:%d", profile->ipv4.Address, profile->muxid); in ql_bridge_mode_detect() 97 dbg_time("echo '%s' > %s", ipv4, bridge_ipv4); in ql_bridge_mode_detect() 98 ql_fwrite(bridge_ipv4, ipv4, strlen(ipv4)); in ql_bridge_mode_detect()
|
| /OK3568_Linux_fs/kernel/net/ipv4/netfilter/ |
| H A D | iptable_security.c | 43 return ipt_do_table(skb, state, state->net->ipv4.iptable_security); in iptable_security_hook() 53 if (net->ipv4.iptable_security) in iptable_security_table_init() 60 &net->ipv4.iptable_security); in iptable_security_table_init() 67 if (net->ipv4.iptable_security) in iptable_security_net_pre_exit() 68 ipt_unregister_table_pre_exit(net, net->ipv4.iptable_security, in iptable_security_net_pre_exit() 74 if (!net->ipv4.iptable_security) in iptable_security_net_exit() 76 ipt_unregister_table_exit(net, net->ipv4.iptable_security); in iptable_security_net_exit() 77 net->ipv4.iptable_security = NULL; in iptable_security_net_exit()
|
| H A D | arptable_filter.c | 37 return arpt_do_table(skb, state, state->net->ipv4.arptable_filter); in arptable_filter_hook() 47 if (net->ipv4.arptable_filter) in arptable_filter_table_init() 54 &net->ipv4.arptable_filter); in arptable_filter_table_init() 61 if (net->ipv4.arptable_filter) in arptable_filter_net_pre_exit() 62 arpt_unregister_table_pre_exit(net, net->ipv4.arptable_filter, in arptable_filter_net_pre_exit() 68 if (!net->ipv4.arptable_filter) in arptable_filter_net_exit() 70 arpt_unregister_table(net, net->ipv4.arptable_filter); in arptable_filter_net_exit() 71 net->ipv4.arptable_filter = NULL; in arptable_filter_net_exit()
|
| H A D | iptable_nat.c | 33 return ipt_do_table(skb, state, state->net->ipv4.nat_table); in iptable_nat_do_chain() 93 if (net->ipv4.nat_table) in iptable_nat_table_init() 100 NULL, &net->ipv4.nat_table); in iptable_nat_table_init() 108 ipt_unregister_table(net, net->ipv4.nat_table, NULL); in iptable_nat_table_init() 109 net->ipv4.nat_table = NULL; in iptable_nat_table_init() 118 if (net->ipv4.nat_table) in iptable_nat_net_pre_exit() 124 if (!net->ipv4.nat_table) in iptable_nat_net_exit() 126 ipt_unregister_table_exit(net, net->ipv4.nat_table); in iptable_nat_net_exit() 127 net->ipv4.nat_table = NULL; in iptable_nat_net_exit()
|
| H A D | iptable_filter.c | 37 return ipt_do_table(skb, state, state->net->ipv4.iptable_filter); in iptable_filter_hook() 51 if (net->ipv4.iptable_filter) in iptable_filter_table_init() 62 &net->ipv4.iptable_filter); in iptable_filter_table_init() 77 if (net->ipv4.iptable_filter) in iptable_filter_net_pre_exit() 78 ipt_unregister_table_pre_exit(net, net->ipv4.iptable_filter, in iptable_filter_net_pre_exit() 84 if (!net->ipv4.iptable_filter) in iptable_filter_net_exit() 86 ipt_unregister_table_exit(net, net->ipv4.iptable_filter); in iptable_filter_net_exit() 87 net->ipv4.iptable_filter = NULL; in iptable_filter_net_exit()
|
| H A D | iptable_mangle.c | 56 ret = ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); in ipt_mangle_out() 82 return ipt_do_table(skb, state, state->net->ipv4.iptable_mangle); in iptable_mangle_hook() 91 if (net->ipv4.iptable_mangle) in iptable_mangle_table_init() 98 &net->ipv4.iptable_mangle); in iptable_mangle_table_init() 105 if (net->ipv4.iptable_mangle) in iptable_mangle_net_pre_exit() 106 ipt_unregister_table_pre_exit(net, net->ipv4.iptable_mangle, in iptable_mangle_net_pre_exit() 112 if (!net->ipv4.iptable_mangle) in iptable_mangle_net_exit() 114 ipt_unregister_table_exit(net, net->ipv4.iptable_mangle); in iptable_mangle_net_exit() 115 net->ipv4.iptable_mangle = NULL; in iptable_mangle_net_exit()
|
| H A D | iptable_raw.c | 44 return ipt_do_table(skb, state, state->net->ipv4.iptable_raw); in iptable_raw_hook() 58 if (net->ipv4.iptable_raw) in iptable_raw_table_init() 65 &net->ipv4.iptable_raw); in iptable_raw_table_init() 72 if (net->ipv4.iptable_raw) in iptable_raw_net_pre_exit() 73 ipt_unregister_table_pre_exit(net, net->ipv4.iptable_raw, in iptable_raw_net_pre_exit() 79 if (!net->ipv4.iptable_raw) in iptable_raw_net_exit() 81 ipt_unregister_table_exit(net, net->ipv4.iptable_raw); in iptable_raw_net_exit() 82 net->ipv4.iptable_raw = NULL; in iptable_raw_net_exit()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/netfilter/ |
| H A D | ipvs.sh | 141 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1 147 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1 148 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_announce=2 150 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.rp_filter=0 151 ip netns exec ns2 sysctl -qw net.ipv4.conf.veth21.rp_filter=0 160 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1 176 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=0 177 ip netns exec ns1 sysctl -qw net.ipv4.conf.all.send_redirects=0 178 ip netns exec ns1 sysctl -qw net.ipv4.conf.default.send_redirects=0 185 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1 [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/procps/procps/ |
| H A D | sysctl.conf | 13 net/ipv4/tcp_syncookies=1 16 net/ipv4/conf/all/log_martians=1 19 net/ipv4/conf/all/accept_redirects=0 20 net/ipv4/conf/all/accept_source_route=0 21 net/ipv4/icmp_echo_ignore_broadcasts =1
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/forwarding/ |
| H A D | router_broadcast.sh | 146 sysctl_set net.ipv4.conf.all.bc_forwarding 0 147 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 0 148 sysctl_set net.ipv4.conf.$rp2.bc_forwarding 0 153 sysctl_set net.ipv4.conf.all.bc_forwarding 1 154 sysctl_set net.ipv4.conf.$rp1.bc_forwarding 1 155 sysctl_set net.ipv4.conf.$rp2.bc_forwarding 1 160 sysctl_restore net.ipv4.conf.$rp2.bc_forwarding 161 sysctl_restore net.ipv4.conf.$rp1.bc_forwarding 162 sysctl_restore net.ipv4.conf.all.bc_forwarding 183 sysctl_set net.ipv4.icmp_echo_ignore_broadcasts 0 [all …]
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | tc_l2_redirect.sh | 10 RP_FILTER=$(< /proc/sys/net/ipv4/conf/all/rp_filter) 48 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.all.rp_filter=0 49 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.ipt2.rp_filter=0 53 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.all.rp_filter=0 54 $IP netns exec ns2 sysctl -q -w net.ipv4.conf.ip6t2.rp_filter=0 65 sysctl -q -w net.ipv4.conf.all.rp_filter=0 78 sysctl -q -w net.ipv4.conf.all.rp_filter=$RP_FILTER 94 sysctl -q -w net.ipv4.conf.ipt.rp_filter=0 95 sysctl -q -w net.ipv4.conf.ipt.forwarding=1 100 sysctl -q -w net.ipv4.conf.ve1.forwarding=1 [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_ah.c | 83 struct iphdr ipv4; in set_av_attr() local 128 *((__be16 *)&ipv4) = htons((4 << 12) | (5 << 8) | in set_av_attr() 130 ipv4.id = cpu_to_be16(pdid); in set_av_attr() 131 ipv4.frag_off = htons(IP_DF); in set_av_attr() 132 ipv4.tot_len = htons(0); in set_av_attr() 133 ipv4.ttl = ib_grh->hop_limit; in set_av_attr() 134 ipv4.protocol = nxthdr; in set_av_attr() 136 ipv4.saddr = sgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr() 138 ipv4.daddr = dgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr() 139 memcpy((u8 *)ah->av + eth_sz, &ipv4, sizeof(struct iphdr)); in set_av_attr()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-webserver/recipes-webadmin/netdata/netdata/ |
| H A D | netdata.conf | 725 [ipv4.packets] 752 [ipv4.fragsout] 779 [ipv4.fragsin] 806 [ipv4.errors] 845 [ipv4.tcpsock] 864 [ipv4.tcppackets] 887 [ipv4.tcperrors] 910 [ipv4.tcphandshake] 945 [ipv4.udppackets] 968 [ipv4.udperrors] [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/net/ |
| H A D | route_localnet.sh | 16 sysctl -w net.ipv4.conf.veth0.route_localnet=1 17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1 40 sysctl -w net.ipv4.conf.veth0.arp_announce=2 41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2 57 sysctl -w net.ipv4.conf.veth0.arp_ignore=3 58 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/usnic/ |
| H A D | usnic_fwd.h | 115 filter->u.ipv4.flags = FILTER_FIELD_5TUP_PROTO; in usnic_fwd_init_udp_filter() 116 filter->u.ipv4.protocol = PROTO_UDP; in usnic_fwd_init_udp_filter() 119 filter->u.ipv4.flags |= FILTER_FIELD_5TUP_DST_AD; in usnic_fwd_init_udp_filter() 120 filter->u.ipv4.dst_addr = daddr; in usnic_fwd_init_udp_filter() 124 filter->u.ipv4.flags |= FILTER_FIELD_5TUP_DST_PT; in usnic_fwd_init_udp_filter() 125 filter->u.ipv4.dst_port = dport; in usnic_fwd_init_udp_filter()
|