Defined in 1 files as a function:
Referenced in 4 files:
- include/net/inet_hashtables.h, line 260
- net/ipv4/inet_hashtables.c
- net/ipv6/inet6_hashtables.c
- net/ipv6/udp.c
Smatch caller information:
net/ipv6/udp.c __udp6_lib_demux_lookup() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | addr6 | $2 |
| DATA_SOURCE | 2 | port | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/ipv6/udp.c __udp6_lib_lookup() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| BUF_SIZE | 1 | addr6 | (-1),16 |
| BUF_SIZE | 1 | addr6 | (-1),16 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | addr6 | $3 |
| DATA_SOURCE | 2 | port | $4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv6/udp.c __udp6_lib_lookup() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->ipv4.udp_table | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 1971789579298107392 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 2 | port | $4 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv6/udp.c __udp6_lib_mcast_deliver() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->ipv4.udp_table | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 1971789579298107392 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
net/ipv6/udp.c __udp6_lib_mcast_deliver() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->ipv4.udp_table | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| BUF_SIZE | 1 | addr6 | 16 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | addr6 | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
net/ipv6/udp.c udp_v6_get_port() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr6 | 1971789579298107392 |
| DATA_SOURCE | 2 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk |
net/ipv6/udp.c udp_v6_get_port() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| PARAM_VALUE | 2 | port | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk |
net/ipv6/udp.c udp_v6_rehash() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| PARAM_VALUE | 2 | port | 0-u16max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | sk |
net/ipv6/inet6_hashtables.c inet6_lookup_listener() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| BUF_SIZE | 1 | addr6 | (-1),16 |
| BUF_SIZE | 1 | addr6 | (-1),16 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | addr6 | $5 |
| DATA_SOURCE | 2 | port | $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv6/inet6_hashtables.c inet6_lookup_listener() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->ipv4.tcp_death_row.hashinfo | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 1971789579298107392 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 2 | port | $6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 0-u16max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | rcu_read |
net/ipv4/inet_connection_sock.c inet_bhashfn_portaddr() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| CAPPED_DATA | 0 | net | 1 |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | port | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 1-u16max[c] |
| UNITS | 0 | net | unit_byte |
| LOCK2 | &head->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct inet_bind_hashbucket)->lock |
net/ipv4/inet_hashtables.c inet_bhash2_addr_any_hashbucket() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 1971789579298107392 |
| DATA_SOURCE | 0 | net | $1 |
| DATA_SOURCE | 2 | port | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | port | 1-u16max[c] |
| UNITS | 0 | net | unit_byte |
| LOCK2 | &head->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | global &port_mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct inet_bind_hashbucket)->lock |
net/ipv4/inet_hashtables.c inet_bhashfn_portaddr() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| CAPPED_DATA | 0 | net | 1 |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | port | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &head->lock | ||
| HALF_LOCKED2 | bh |
net/ipv4/inet_hashtables.c inet_lhash2_bucket_sk() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| PARAM_VALUE | 2 | port | 0-u16max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
net/ipv4/inet_timewait_sock.c inet_bhashfn_portaddr() -> ipv6_portaddr_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr6 | 4096-ptr_max |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 2 | port | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |