/openbmc/linux/net/ipv4/ |
H A D | ping.c | 98 if (isk2->inet_num == result) in ping_get_port() 119 if ((isk2->inet_num == ident) && in ping_get_port() 127 isk->inet_num = ident; in ping_get_port() 145 pr_debug("ping_hash(sk->port=%u)\n", inet_sk(sk)->inet_num); in ping_hash() 155 pr_debug("ping_unhash(isk=%p,isk->num=%u)\n", isk, isk->inet_num); in ping_unhash() 158 isk->inet_num = 0; in ping_unhash() 194 if (isk->inet_num != ident) in ping_lookup() 200 (int) isk->inet_num, &isk->inet_rcv_saddr, in ping_lookup() 211 (int) isk->inet_num, in ping_lookup() 287 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close() [all …]
|
H A D | inet_hashtables.c | 171 inet_sk(sk)->inet_num = port; in inet_bind_hash() 189 bhash = inet_bhashfn(net, inet_sk(sk)->inet_num, hashinfo->bhash_size); in __inet_put_port() 191 head2 = inet_bhashfn_portaddr(hashinfo, sk, net, inet_sk(sk)->inet_num); in __inet_put_port() 197 inet_sk(sk)->inet_num = 0; in __inet_put_port() 224 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port() 310 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 315 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 584 inet->inet_num = lport; in __inet_check_established() 902 int port = inet_sk(sk)->inet_num; in __inet_bhash2_update_saddr() 1008 int port = inet_sk(sk)->inet_num; in __inet_hash_connect() [all …]
|
H A D | inet_timewait_sock.c | 127 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance() 129 bhead2 = inet_bhashfn_portaddr(hashinfo, sk, twsk_net(tw), inet->inet_num); in inet_twsk_hashdance() 196 tw->tw_num = inet->inet_num; in inet_twsk_alloc()
|
H A D | raw.c | 96 hlist = &h->ht[raw_hashfunc(sock_net(sk), inet_sk(sk)->inet_num)]; in raw_hash_sk() 124 if (net_eq(sock_net(sk), net) && inet->inet_num == num && in raw_v4_match() 788 if (inet_sk(sk)->inet_num == IPPROTO_ICMP) in raw_sk_init() 825 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_setsockopt() 845 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_getsockopt() 1030 srcp = inet->inet_num; in raw_sock_seq_show()
|
H A D | af_inet.c | 179 if (!inet->inet_num) { in inet_autobind() 184 inet->inet_sport = htons(inet->inet_num); in inet_autobind() 342 inet->inet_num = protocol; in inet_create() 369 if (inet->inet_num) { in inet_create() 375 inet->inet_sport = htons(inet->inet_num); in inet_create() 525 if (sk->sk_state != TCP_CLOSE || inet->inet_num) in __inet_bind() 555 inet->inet_sport = htons(inet->inet_num); in __inet_bind() 589 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect() 835 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare()
|
H A D | inet_connection_sock.c | 1194 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock() 1237 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock() 1261 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close() 1296 err = sk->sk_prot->get_port(sk, inet->inet_num); in inet_csk_listen_start() 1298 inet->inet_sport = htons(inet->inet_num); in inet_csk_listen_start()
|
H A D | tcp_timer.c | 552 inet->inet_num, tp->snd_una, tp->snd_nxt, in tcp_retransmit_timer() 560 inet->inet_num, tp->snd_una, tp->snd_nxt, in tcp_retransmit_timer()
|
H A D | ip_input.c | 162 if (sk && inet_sk(sk)->inet_num == protocol && in ip_call_ra_chain()
|
H A D | inet_diag.c | 797 entry.sport = inet->inet_num; in inet_diag_bc_sk() 989 offsetof(struct inet_sock, inet_num)); in twsk_build_assert()
|
H A D | udp.c | 317 inet_sk(sk)->inet_num = snum; in udp_lib_get_port() 323 inet_sk(sk)->inet_num = 0; in udp_lib_get_port() 1988 inet_sk(sk)->inet_num = 0; in udp_lib_unhash() 2046 inet_sk(sk)->inet_num); in udp_v4_rehash()
|
H A D | ip_sockglue.c | 352 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 1737 val = inet_sk(sk)->inet_num; in do_ip_getsockopt()
|
/openbmc/linux/net/ipv6/ |
H A D | raw.c | 71 if (inet_sk(sk)->inet_num != num || in raw_v6_match() 399 skb->len, inet->inet_num, skb->csum)) in rawv6_rcv() 406 inet->inet_num, 0)); in rawv6_rcv() 789 proto = inet->inet_num; in rawv6_sendmsg() 790 else if (proto != inet->inet_num && in rawv6_sendmsg() 791 inet->inet_num != IPPROTO_RAW) in rawv6_sendmsg() 823 proto = inet->inet_num; in rawv6_sendmsg() 1000 if (inet_sk(sk)->inet_num == IPPROTO_ICMPV6 && in do_rawv6_setsockopt() 1039 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_setsockopt() 1100 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_getsockopt() [all …]
|
H A D | inet6_hashtables.c | 100 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score() 304 inet->inet_num = lport; in __inet6_check_established() 343 if (!inet_sk(sk)->inet_num) in inet6_hash_connect()
|
H A D | af_inet6.c | 209 inet->inet_num = protocol; in inet6_create() 246 if (inet->inet_num) { in inet6_create() 251 inet->inet_sport = htons(inet->inet_num); in inet6_create() 308 if (sk->sk_state != TCP_CLOSE || inet->inet_num) { in __inet6_bind() 427 inet->inet_sport = htons(inet->inet_num); in __inet6_bind()
|
H A D | ipv6_sockglue.c | 65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 510 inet_sk(sk)->inet_num) in do_ipv6_setsockopt()
|
H A D | ip6mr.c | 1614 inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in ip6mr_sk_done() 1681 inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in ip6_mroute_setsockopt() 1856 inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in ip6_mroute_getsockopt()
|
/openbmc/linux/include/trace/events/ |
H A D | udp.h | 24 __entry->lport = inet_sk(sk)->inet_num;
|
/openbmc/linux/include/net/ |
H A D | inet_sock.h | 219 #define inet_num sk.__sk_common.skc_num macro
|
H A D | ip.h | 101 ipcm->protocol = inet->inet_num; in ipcm_init_sk()
|
H A D | ipv6.h | 1296 if (inet_sk(sk)->inet_num) in ip6_sock_set_v6only()
|
/openbmc/linux/net/l2tp/ |
H A D | l2tp_ip.c | 221 inet_sk(sk)->inet_num = IPPROTO_L2TP; in l2tp_ip_open()
|
H A D | l2tp_ip6.c | 231 inet_sk(sk)->inet_num = IPPROTO_L2TP; in l2tp_ip6_open()
|
/openbmc/linux/net/sctp/ |
H A D | socket.c | 436 bp->port = inet_sk(sk)->inet_num; in sctp_do_bind() 451 inet_sk(sk)->inet_sport = htons(inet_sk(sk)->inet_num); in sctp_do_bind() 8492 inet_sk(sk)->inet_num = snum; in sctp_get_port_local() 8560 if (sctp_get_port(sk, inet_sk(sk)->inet_num)) { in sctp_listen_start() 8744 inet_sk(sk)->inet_num)]; in __sctp_put_port() 8751 inet_sk(sk)->inet_num = 0; in __sctp_put_port() 8778 port = htons(inet_sk(sk)->inet_num); in sctp_autobind() 9554 inet_sk(oldsk)->inet_num)]; in sctp_sock_migrate() 9559 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num; in sctp_sock_migrate()
|
/openbmc/linux/net/sunrpc/ |
H A D | svcsock.c | 208 inet_sk(sk)->inet_num); in svc_one_sock_name() 215 inet_sk(sk)->inet_num); in svc_one_sock_name()
|
/openbmc/linux/net/dccp/ |
H A D | proto.c | 300 WARN_ON(inet->inet_num && !icsk->icsk_bind_hash); in dccp_disconnect()
|