Lines Matching +full:0 +full:- +full:1023
1 // SPDX-License-Identifier: GPL-2.0-only
9 * Author: Rémi Denis-Courmont
21 #define DYNAMIC_PORT_MIN 0x40
22 #define DYNAMIC_PORT_MAX 0x7f
25 static int local_port_range_min[2] = {0, 0};
26 static int local_port_range_max[2] = {1023, 1023};
33 local_port_range[0] = range[0]; in set_local_port_range()
45 *min = local_port_range[0]; in phonet_get_local_port_range()
55 int range[2] = {local_port_range[0], local_port_range[1]}; in proc_local_port_range()
59 .mode = table->mode, in proc_local_port_range()
66 if (write && ret == 0) { in proc_local_port_range()
67 if (range[1] < range[0]) in proc_local_port_range()
68 ret = -EINVAL; in proc_local_port_range()
90 return phonet_table_hrd == NULL ? -ENOMEM : 0; in phonet_sysctl_init()