Home
last modified time | relevance | path

Searched +full:c +full:- +full:states (Results 1 – 25 of 1356) sorted by relevance

12345678910>>...55

/freebsd/tests/sys/netpfil/pf/
H A Dkillstate.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2021 Rubicon Communications, LLC (Netgate)
33 jail=${1:-alcatraz}
34 ip=${2:-192.0.2.2}
36 jexec ${jail} pfctl -ss | grep icmp | grep ${ip}
41 jexec alcatraz pfctl -ss | grep icmp | grep 2001:db8::2
48 atf_set descr 'Test killing states by IPv4 address'
62 jexec alcatraz pfctl -e
69 atf_check -s exit:0 -o ignore ${common_dir}/pft_ping.py \
70 --sendif ${epair}a \
[all …]
H A Dsyncookie.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2021 Modirum MDPay
35 jexec $jail pfctl -si -v | grep -A 2 '^Syncookies' | grep active \
54 jexec alcatraz /usr/sbin/inetd -p ${PWD}/inetd-alcatraz.pid \
59 jexec alcatraz pfctl -e
66 atf_check -s exit:0 -o ignore ping -c 1 192.0.2.1
68 reply=$(echo foo | nc -N -w 5 192.0.2.1 7)
84 rm -f ${PWD}/inetd-alcatraz.pid
103 jexec alcatraz /usr/sbin/inetd -p ${PWD}/inetd-alcatraz.pid \
108 jexec alcatraz pfctl -e
[all …]
H A Dsrc_track.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2020 Kristof Provost <kp@FreeBSD.org>
5 # Copyright (c) 2024 Kajetan Staszkiewicz <vegeta@tuxpowered.net>
49 jexec alcatraz pfctl -e
51 "pass in keep state (source-track)" \
52 "pass out keep state (source-track)"
54 ping -c 3 192.0.2.1
55 atf_check -s exit:0 -o match:'192.0.2.2 -> 0.0.0.0 \( states 1,.*' \
56 jexec alcatraz pfctl -sS
59 jexec alcatraz pfctl -FS
[all …]
H A Dlimits.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2024 Kristof Provost <kp@FreeBSD.org>
43 "set limit states 200" \
45 "set limit src-nodes 50" \
46 "set limit table-entries 25"
48 atf_check -s exit:0 -o match:'states.*200' \
49 jexec alcatraz pfctl -sm
50 atf_check -s exit:0 -o match:'frags.*100' \
51 jexec alcatraz pfctl -sm
52 atf_check -s exit:0 -o match:'src-nodes.*50' \
[all …]
H A Dnat64.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2024 Rubicon Communications, LLC (Netgate)
37 route -6 add default 2001:db8::1
48 atf_check -s exit:0 -o ignore \
49 ping6 -c 1 2001:db8::1
50 atf_check -s exit:0 -o ignore \
51 jexec dst ping -c 1 192.0.2.1
53 jexec rtr pfctl -e
58 state_policy="${1:-if-bound}"
62 "set state-policy ${state_policy}" \
[all …]
H A Droute_to.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2018 Kristof Provost <kp@FreeBSD.org>
32 # The table or prefix contains multiple IP next-hop addresses, for each one try
48 states=$(mktemp) || exit 1
53 jexec router pfctl -Fs
54 atf_check -s exit:0 ${common_dir}/pft_ping.py \
55 --sendif ${epair_tester}a --replyif ${epair_tester}a \
56 --fromaddr ${ping_from} --to ${ping_to} \
57 --ping-type=tcp3way --send-sport=${port}
58 jexec router pfctl -qvvss | normalize_pfctl_s > $states
[all …]
H A Dget_state.sh2 # SPDX-License-Identifier: BSD-2-Clause
4 # Copyright (c) 2021 Rubicon Communications, LLC (Netgate)
34 atf_set descr 'Test retrieving many states'
48 jexec alcatraz pfctl -e
55 atf_check -s exit:0 -o ignore ping -c 1 -W 1 192.0.2.2
57 # Now syn flood to create many states
59 --sendif ${epair}a \
60 --to 192.0.2.2 \
61 --count 20000
63 count=$(time jexec alcatraz pfctl -ss | wc -l 2>time.txt)
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDFAEmitter.h1 //===--------------------- DfaEmitter.h -----------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // states that represent a nondeterministic finite state automaton (NFA) and
15 //===----------------------------------------------------------------------===//
35 /// The state type is a 64-bit unsigned integer. The generated automaton is
36 /// invariant to the sparsity of the state representation - its size is only
37 /// a function of the cardinality of the set of states.
57 /// Emit the C++ type of an action to OS.
59 /// Emit the C++ value of an action A to OS.
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DAutomaton.td1 //===- Automaton.td ----------------------------------------*- tablegen -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file defines the key top-level classes needed to produce a reasonably
10 // generic finite-state automaton.
12 //===----------------------------------------------------------------------===//
15 // generic finite-state automaton over a set of actions and states.
20 // 3) a transition function from state + action -> state.
23 // Q: A set of possible states.
25 // d: (delta) The transition function f(q in Q, s in S) -> q' in Q.
[all …]
/freebsd/usr.bin/calendar/calendars/
H A Dcalendar.freebsd10 01/01 Alexander Langer <alex@FreeBSD.org> born in Duesseldorf, Nordrhein-Westfalen, Germany, 1981
11 01/01 Zach Leslie <zleslie@FreeBSD.org> born in Grand Junction, Colorado, United States, 1985
12 01/02 Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org> born in Bucharest, Romania, 1980
18 01/06 Philippe Audeoud <jadawin@FreeBSD.org> born in Bretigny-Sur-Orge, France, 1980
21 01/10 Jean-Yves Lefort <jylefort@FreeBSD.org> born in Charleroi, Belgium, 1980
23 01/12 Yen-Ming Lee <leeym@FreeBSD.org> born in Taipei, Taiwan, Republic of China, 1977
24 01/12 Ying-Chieh Liao <ijliao@FreeBSD.org> born in Taipei, Taiwan, Republic of China, 1979
27 01/14 Yi-Jheng Lin <yzlin@FreeBSD.org> born in Taichung, Taiwan, Republic of China, 1985
28 01/15 Anne Dickison <anne@FreeBSD.org> born in Madison, Indiana, United States, 1976
34 01/19 Marshall Kirk McKusick <mckusick@FreeBSD.org> born in Wilmington, Delaware, United States, 19…
[all …]
/freebsd/crypto/krb5/src/lib/crypto/krb/
H A Ddefault_state.c1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
3 * Copyright (C) 2001, 2014 by the Massachusetts Institute of Technology.
6 * Export of this software from the United States of America may
7 * require a specific license from the United States Government.
26 * cipher states to be used to chain encryptions and decryptions
27 * together. Examples of cipher states include initialization vectors
29 * code for initializing and freeing cipher states. This file
48 free(state->data); in krb5int_default_free_state()
H A Dstate.c1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* lib/crypto/krb/state.c */
4 * Copyright (C) 2001 by the Massachusetts Institute of Technology.
7 * Export of this software from the United States of America may
8 * require a specific license from the United States Government.
29 * cipher states to be used to chain encryptions and decryptions
30 * together. Examples of cipher states include initialization vectors
43 ktp = find_enctype(key->enctype); in krb5_c_init_state()
46 return ktp->enc->init_state(key, keyusage, new_state); in krb5_c_init_state()
55 ktp = find_enctype(key->enctype); in krb5_c_free_state()
[all …]
/freebsd/contrib/nvi/regex/
H A Dengine.c1 /* $NetBSD: engine.c,v 1.7 2011/11/19 17:45:11 tnozaki Exp $ */
3 /*-
4 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
5 * Copyright (c) 1992, 1993, 1994
35 * @(#)engine.c 8.4 (Berkeley) 3/19/94
39 * The matching engine and friends. This file is #included by regexec.c
74 const RCHAR_T *beginp; /* start of string -- virtual NUL precedes */
75 const RCHAR_T *endp; /* end of string -- virtual NUL here */
79 states st; /* current states */
80 states fresh; /* states for a fresh start */
[all …]
/freebsd/sbin/pfctl/
H A Dpfctl.83 .\" Copyright (c) 2001 Kjell Wooding. All rights reserved.
35 .Bk -words
109 .Bl -tag -width Ds
150 .Bd -literal -offset indent
151 # pfctl -a "authpf/smith(1234)" -s rules
158 .Bd -literal -offset indent
159 # pfctl -a foo/bar -t mytable -T add 1.2.3.4 5.6.7.8
165 This is similar to C rules for variable scope.
180 .Bd -literal -offset indent
181 # pfctl -a 'authpf/*' -sr
[all …]
/freebsd/lib/libc/regex/
H A Dengine.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
5 * Copyright (c) 1992, 1993, 1994
39 * The matching engine and friends. This file is #included by regexec.c
85 const char *beginp; /* start of string -- virtual NUL precedes */
86 const char *endp; /* end of string -- virtual NUL here */
90 states st; /* current states */
91 states fresh; /* states for a fresh start */
92 states tmp; /* temporary */
[all …]
/freebsd/sbin/ipf/ipfstat/
H A Dipfstat.83 ipfstat \- reports on packet filter statistics and filter list
7 .B \-46aAdfghIilnoRsv
10 .B ipfstat -t
12 .B \-6C
14 .B \-D
17 .B \-P
20 .B \-S
23 .B \-T
37 .B \-4
38 Display filter lists and states for IPv4, if available. This is the default
[all …]
/freebsd/contrib/flex/src/
H A Dflexdef.h2 /* flexdef - definitions file for flex */
4 /* Copyright (c) 1990 The Regents of the University of California. */
10 /* The United States Government has rights in this work pursuant */
11 /* to contract no. DE-AC03-76SF00098 between the United States */
90 /* Always be prepared to generate an 8-bit scanner. */
93 /* Size of input alphabet - should be size of ASCII set. */
108 #define ABS(x) ((x) < 0 ? -(x) : (x))
112 #define is_power_of_2(n) ((n) > 0 && ((n) & ((n) - 1)) == 0)
114 #define unspecified -1
116 /* Special chk[] values marking the slots taking by end-of-buffer and action
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_work.c1 /*-
2 * Copyright (c) 2017-2019 Hans Petter Selasky
38 * Define all work struct states
41 WORK_ST_IDLE, /* idle - not started */
74 int c, old; in linux_update_state() local
76 c = v->counter; in linux_update_state()
78 while ((old = atomic_cmpxchg(v, c, pstate[c])) != c) in linux_update_state()
79 c = old; in linux_update_state()
81 return (c); in linux_update_state()
99 wq = work->work_queue; in linux_work_exec_unblock()
[all …]
/freebsd/contrib/dialog/
H A Dchecklist.c2 * $Id: checklist.c,v 1.167 2020/11/23 00:37:47 tom Exp $
4 * checklist.c -- implements the checklist box
6 * Copyright 2000-2019,2020 Thomas E. Dickey
25 * Stuart Herbert - S.Herbert@sheffield.ac.uk: radiolist extension
26 * Alessandro Rubini - rubini@ipvvis.unipv.it: merged the two
35 /* the outer-window */
44 /* the inner-window */
48 const char *states; member
59 const char *states, in print_item() argument
67 int climit = (getmaxx(win) - data->check_x + 1); in print_item()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregengine.inc1 /*-
4 * Copyright (c) 1992, 1993, 1994 Henry Spencer.
5 * Copyright (c) 1992, 1993, 1994
35 * @(#)engine.c 8.5 (Berkeley) 3/20/94
39 * The matching engine and friends. This file is #included by regexec.c
78 const char *beginp; /* start of string -- virtual NUL precedes */
79 const char *endp; /* end of string -- virtual NUL here */
83 states st; /* current states */
84 states fresh; /* states for a fresh start */
85 states tmp; /* temporary */
[all …]
/freebsd/share/doc/psd/15.yacc/
H A Dss41 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved.
39 Yacc turns the specification file into a C program, which
60 The states of the finite state machine are given
82 This may result in states being pushed onto the stack, or popped off of
140 To reduce, first pop off the top three states
142 (In general, the number of states popped equals the number of symbols on the
144 In effect, these states were the ones
151 After popping these states, a state is uncovered
173 popping the states off the stack to go back to the
177 no states are popped off of the stack: the uncovered state
[all …]
/freebsd/contrib/libxo/libxo/
H A Dxo_explicit.h2 * Copyright (c) 2019, Juniper Networks, Inc.
17 * explicit transition between libxo states on its internal stack.
23 * A word about states: We use a finite state machine (FMS) approach
31 * You can think of states as either states or events, since they
33 * persist as states, since the matching stack frame will be popped.
38 /* Stack frame states */
52 #define XSS_EMIT_LEAF_LIST 12 /* xo_emit has a leaf-list ({l:}) */
/freebsd/sys/netinet6/
H A Dip_fw_nat64.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2015-2019 Yandex LLC
5 * Copyright (c) 2015 Alexander V. Chernikov <melifaro@FreeBSD.org>
6 * Copyright (c) 2015-2019 Andrey V. Elsukov <ae@FreeBSD.org>
82 uint64_t screated; /* Number of states created */
83 uint64_t sdeleted; /* Number of states deleted */
132 #define NAT64LSN_UDP_AGE 120 /* TTL for UDP states */
133 #define NAT64LSN_ICMP_AGE 60 /* TTL for ICMP states */
162 uint8_t states_chunks; /* Number of states chunks per PG */
[all …]
/freebsd/contrib/bc/include/
H A Drand.h9 * https://github.com/imneme/pcg-c
11 * -----------------------------------------------------------------------------
15 * Copyright (c) 2014-2017 Melissa O'Neill and PCG Project contributors
16 * Copyright (c) 2018-2025 Gavin D. Howard and contributors.
72 // If longs are 64 bits, we have the option of 128-bit integers on some
106 * @return The product of the PCG states.
114 * @return The sum of the PCG states.
119 * Multiply two PCG states.
122 * @return The product of the PCG states.
127 * Add two PCG states.
[all …]
/freebsd/sys/dev/gpio/
H A Dgpioregulator.c1 /*-
2 * Copyright (c) 2016 Jared McNeill <jmcneill@invisible.ca>
58 struct gpioregulator_state *states; member
84 if (sc->def->enable_pin_valid == 1) { in gpioregulator_regnode_init()
85 error = gpio_pin_setflags(sc->def->enable_pin, GPIO_PIN_OUTPUT); in gpioregulator_regnode_init()
90 for (n = 0; n < sc->def->npins; n++) { in gpioregulator_regnode_init()
91 error = gpio_pin_setflags(sc->def->pins[n], GPIO_PIN_OUTPUT); in gpioregulator_regnode_init()
108 if (sc->def->enable_pin_valid == 1) { in gpioregulator_regnode_enable()
110 if (!sc->param->enable_active_high) in gpioregulator_regnode_enable()
112 error = gpio_pin_set_active(sc->def->enable_pin, active); in gpioregulator_regnode_enable()
[all …]

12345678910>>...55