Searched refs:range (Results 1 - 8 of 8) sorted by relevance

/systemd/src/shared/
H A Dfirewall-util.c265 mr->range[0].flags = NF_NAT_RANGE_PROTO_SPECIFIED|NF_NAT_RANGE_MAP_IPS;
266 mr->range[0].min_ip = mr->range[0].max_ip = remote->in.s_addr;
268 mr->range[0].min.tcp.port = mr->range[0].max.tcp.port = htons(remote_port);
270 mr->range[0].min.udp.port = mr->range[0].max.udp.port = htons(remote_port);
287 mr->range[0].min_ip = mr->range[0].max_ip = previous_remote->in.s_addr;
294 mr->range[
[all...]
H A Duid-range.c25 #include "uid-range.h"
28 static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) { argument
29 assert(range);
31 return range->start <= start + nr &&
32 range->start + range->nr >= start;
/systemd/src/bootchart/
H A Dsvg.c530 double range; local
541 * calculate rounding range
545 * so keep the smoothing range short.
547 range = 0.25 / (1.0 / arg_hz);
548 if (range < 2.0)
549 range = 2.0; /* no smoothing */
562 start = MAX(i - ((range / 2) - 1), 0);
563 stop = MIN(i + (range / 2), n_samples - 1);
569 for (k = 0; k < ((range/2) - 1) && start_sampledata->link_next; k++)
572 for (k = 0; k < (range/
643 double range; local
[all...]
/systemd/src/journal-remote/
H A Dlog-generator.py45 for i in range(OPTIONS.n):
H A Djournal-gatewayd.c290 const char *range, *colon, *colon2; local
296 range = MHD_lookup_connection_value(connection, MHD_HEADER_KIND, "Range");
297 if (!range)
300 if (!startswith(range, "entries="))
303 range += 8;
304 range += strspn(range, WHITESPACE);
306 colon = strchr(range, ':');
308 m->cursor = strdup(range);
337 m->cursor = strndup(range, colo
[all...]
/systemd/src/basic/
H A Dselinux-util.c260 const char *range = NULL; local
293 range = context_range_get(pcon);
294 if (!range)
297 r = context_range_set(bcon, range);
/systemd/test/
H A Dnetworkd-test.py126 for timeout in range(10):
179 for timeout in range(50):
252 extra_opts = ['--enable-ra', '--dhcp-range=2600::10,2600::20']
260 '--dhcp-range=192.168.5.10,192.168.5.200'] + extra_opts)
339 for timeout in range(50):
/systemd/src/nspawn/
H A Dnspawn.c801 const char *range, *shift; local
803 range = strchr(optarg, ':');
804 if (range) {
805 buffer = strndup(optarg, range - optarg);
810 range++;
811 if (safe_atou32(range, &arg_uid_range) < 0 || arg_uid_range <= 0) {
812 log_error("Failed to parse UID range: %s", range);
2436 log_error("UID base too high for UID range.");
2440 log_info("Using user namespaces with base " UID_FMT " and range " UID_FM
[all...]

Completed in 511 milliseconds