/linux/net/ipv4/ |
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() 161 isk->inet_num = 0; in ping_unhash() 193 if (isk->inet_num != ident) in ping_lookup() 210 (int) isk->inet_num, in ping_lookup() 287 inet_sk(sk), inet_sk(sk)->inet_num); in ping_close() 406 if (isk->inet_num != 0) in ping_bind() 419 isk->inet_num, in ping_bind() 432 isk->inet_sport = htons(isk->inet_num); in ping_bind() [all …]
|
A D | inet_hashtables.c | 98 inet_sk(sk)->inet_num = snum; in inet_bind_hash() 109 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port() 118 inet_sk(sk)->inet_num = 0; in __inet_put_port() 134 unsigned short port = inet_sk(child)->inet_num; in __inet_inherit_port() 187 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 192 inet_sk(sk)->inet_num); in inet_lhash2_bucket_sk() 482 inet->inet_num = lport; in __inet_check_established() 733 int port = inet_sk(sk)->inet_num; in __inet_hash_connect() 853 if (!inet_sk(sk)->inet_num) in inet_hash_connect()
|
A D | af_inet.c | 178 if (!inet->inet_num) { in inet_autobind() 183 inet->inet_sport = htons(inet->inet_num); in inet_autobind() 332 inet->inet_num = protocol; in inet_create() 360 if (inet->inet_num) { in inet_create() 366 inet->inet_sport = htons(inet->inet_num); in inet_create() 517 if (sk->sk_state != TCP_CLOSE || inet->inet_num) in __inet_bind() 545 inet->inet_sport = htons(inet->inet_num); in __inet_bind() 574 if (data_race(!inet_sk(sk)->inet_num) && inet_autobind(sk)) in inet_dgram_connect() 804 if (data_race(!inet_sk(sk)->inet_num) && !sk->sk_prot->no_autobind && in inet_send_prepare()
|
A D | raw.c | 98 head = &h->ht[inet_sk(sk)->inet_num & (RAW_HTABLE_SIZE - 1)]; in raw_hash_sk() 127 if (net_eq(sock_net(sk), net) && inet->inet_num == num && in __raw_v4_lookup() 808 if (inet_sk(sk)->inet_num == IPPROTO_ICMP) in raw_sk_init() 845 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_setsockopt() 865 if (inet_sk(sk)->inet_num != IPPROTO_ICMP) in do_raw_getsockopt() 1053 srcp = inet->inet_num; in raw_sock_seq_show()
|
A D | inet_timewait_sock.c | 113 bhead = &hashinfo->bhash[inet_bhashfn(twsk_net(tw), inet->inet_num, in inet_twsk_hashdance() 175 tw->tw_num = inet->inet_num; in inet_twsk_alloc()
|
A D | inet_connection_sock.c | 965 inet_sk(newsk)->inet_num = inet_rsk(req)->ir_num; in inet_csk_clone_lock() 1008 WARN_ON(inet_sk(sk)->inet_num && !inet_csk(sk)->icsk_bind_hash); in inet_csk_destroy_sock() 1034 inet_sk(sk)->inet_num = 0; in inet_csk_prepare_forced_close() 1055 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start() 1056 inet->inet_sport = htons(inet->inet_num); in inet_csk_listen_start()
|
A D | tcp_timer.c | 489 inet->inet_num, in tcp_retransmit_timer() 497 inet->inet_num, in tcp_retransmit_timer()
|
A D | ip_input.c | 162 if (sk && inet_sk(sk)->inet_num == protocol && in ip_call_ra_chain()
|
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()
|
A D | udp.c | 307 inet_sk(sk)->inet_num = snum; in udp_lib_get_port() 313 inet_sk(sk)->inet_num = 0; in udp_lib_get_port() 2018 inet_sk(sk)->inet_num = 0; in udp_lib_unhash() 2076 inet_sk(sk)->inet_num); in udp_v4_rehash()
|
/linux/net/ipv6/ |
A D | raw.c | 76 if (inet_sk(sk)->inet_num == num) { in __raw_v6_lookup() 435 skb->len, inet->inet_num, skb->csum)) in rawv6_rcv() 442 inet->inet_num, 0)); in rawv6_rcv() 826 proto = inet->inet_num; in rawv6_sendmsg() 827 else if (proto != inet->inet_num) in rawv6_sendmsg() 859 proto = inet->inet_num; in rawv6_sendmsg() 1075 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_setsockopt() 1136 if (inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in rawv6_getsockopt() 1199 if (inet_sk(sk)->inet_num == IPPROTO_RAW) in rawv6_close() 1218 switch (inet_sk(sk)->inet_num) { in rawv6_init_sk() [all …]
|
A D | inet6_hashtables.c | 101 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score() 286 inet->inet_num = lport; in __inet6_check_established() 325 if (!inet_sk(sk)->inet_num) in inet6_hash_connect()
|
A D | af_inet6.c | 198 inet->inet_num = protocol; in inet6_create() 244 if (inet->inet_num) { in inet6_create() 249 inet->inet_sport = htons(inet->inet_num); in inet6_create() 308 if (sk->sk_state != TCP_CLOSE || inet->inet_num) { in __inet6_bind() 428 inet->inet_sport = htons(inet->inet_num); in __inet6_bind()
|
A D | ping.c | 62 pr_debug("ping_v6_sendmsg(sk=%p,sk->num=%u)\n", inet, inet->inet_num); in ping_v6_sendmsg()
|
A D | ipv6_sockglue.c | 65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 518 inet_sk(sk)->inet_num) in do_ipv6_setsockopt()
|
A D | ip6mr.c | 1579 inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in ip6mr_sk_done() 1642 inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in ip6_mroute_setsockopt() 1813 inet_sk(sk)->inet_num != IPPROTO_ICMPV6) in ip6_mroute_getsockopt()
|
/linux/include/trace/events/ |
A D | udp.h | 24 __entry->lport = inet_sk(sk)->inet_num;
|
/linux/include/net/ |
A D | inet_sock.h | 205 #define inet_num sk.__sk_common.skc_num macro
|
A D | inet_hashtables.h | 241 return inet_lhashfn(sock_net(sk), inet_sk(sk)->inet_num); in inet_sk_listen_hashfn()
|
A D | ipv6.h | 1189 if (inet_sk(sk)->inet_num) in ip6_sock_set_v6only()
|
/linux/net/l2tp/ |
A D | l2tp_ip.c | 219 inet_sk(sk)->inet_num = IPPROTO_L2TP; in l2tp_ip_open()
|
A D | l2tp_ip6.c | 232 inet_sk(sk)->inet_num = IPPROTO_L2TP; in l2tp_ip6_open()
|
/linux/net/sunrpc/ |
A D | svcsock.c | 205 inet_sk(sk)->inet_num); in svc_one_sock_name() 212 inet_sk(sk)->inet_num); in svc_one_sock_name()
|
/linux/net/sctp/ |
A D | socket.c | 434 bp->port = inet_sk(sk)->inet_num; in sctp_do_bind() 449 inet_sk(sk)->inet_sport = htons(inet_sk(sk)->inet_num); in sctp_do_bind() 8462 inet_sk(sk)->inet_num = snum; in sctp_get_port_local() 8527 if (sctp_get_port(sk, inet_sk(sk)->inet_num)) { in sctp_listen_start() 8704 inet_sk(sk)->inet_num)]; in __sctp_put_port() 8711 inet_sk(sk)->inet_num = 0; in __sctp_put_port() 8738 port = htons(inet_sk(sk)->inet_num); in sctp_autobind() 9521 inet_sk(oldsk)->inet_num)]; in sctp_sock_migrate() 9526 inet_sk(newsk)->inet_num = inet_sk(oldsk)->inet_num; in sctp_sock_migrate()
|
/linux/net/dccp/ |
A D | proto.c | 303 WARN_ON(inet->inet_num && !icsk->icsk_bind_hash); in dccp_disconnect()
|