| /freebsd/tests/sys/netpfil/pf/ |
| H A D | syncookie.sh | 2 # SPDX-License-Identifier: BSD-2-Clause 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 115 atf_check -s exit:0 -o ignore ping6 -c 1 2001:db8::1 [all …]
|
| H A D | nat.sh | 2 # SPDX-License-Identifier: BSD-2-Clause 49 route add -net 198.51.100.0/24 192.0.2.1 56 jexec echo /usr/sbin/inetd -p ${PWD}/inetd-echo.pid $(atf_get_srcdir)/echo_inetd.conf 59 jexec nat ifconfig ${epair_nat}a -txcsum 62 jexec nat pfctl -e 64 … pass on ${epair_echo}a inet from 192.0.2.0/24 to any -> (${epair_echo}a) port 30000:30001 sticky-… 67 atf_check -s exit:0 -o ignore ping -c 3 198.51.100.2 69 atf_check -s exit:0 -o match:foo* echo "foo" | nc -N 198.51.100.2 7 70 atf_check -s exit:0 -o match:foo* echo "foo" | nc -N 198.51.100.2 7 73 echo "foo" | nc -N 198.51.100.2 7 & [all …]
|
| /freebsd/contrib/nvi/regex/ |
| H A D | engine.c | 3 /*- 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 */ 81 states tmp; /* temporary */ 82 states empty; /* empty set of states */ 96 static states step(struct re_guts *g, sopno start, sopno stop, states bef, int flag, RCHAR_T ch, st… 104 static void print(struct match *m, char *caption, states st, int ch, FILE *d); 121 #define NOTE(str) do { if (m->eflags®_TRACE) printf("=%s\n", (str)); } while(0); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | regengine.inc | 1 /*- 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 */ 86 states empty; /* empty set of states */ 97 static states step(struct re_guts *, sopno, sopno, states, int, states); 107 #define NNONCHAR (CODEMAX-CHAR_MAX) 109 static void print(struct match *, const char *, states, int, FILE *); [all …]
|
| /freebsd/usr.bin/iscsictl/ |
| H A D | iscsictl.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 60 TAILQ_INIT(&conf->conf_targets); in conf_new() 70 TAILQ_FOREACH(targ, &conf->conf_targets, t_next) { in target_find() 71 if (targ->t_nickname != NULL && in target_find() 72 strcasecmp(targ->t_nickname, nickname) == 0) in target_find() 87 targ->t_conf = conf; in target_new() 88 targ->t_dscp = -1; in target_new() 89 targ->t_pcp = -1; in target_new() 90 targ->t_pingtimeout = -1; in target_new() [all …]
|
| /freebsd/usr.sbin/dumpcis/ |
| H A D | cardinfo.h | 4 *------------------------------------------------------------------------- 6 /*- 7 * SPDX-License-Identifier: BSD-3-Clause 43 #define PIOCGSTATE _IOR('P', 1, struct slotstate) /* Get slot state */ 44 #define PIOCGMEM _IOWR('P', 2, struct mem_desc) /* Get memory map */ 45 #define PIOCSMEM _IOW('P', 3, struct mem_desc) /* Set memory map */ 46 #define PIOCGIO _IOWR('P', 4, struct io_desc) /* Get I/O map */ 47 #define PIOCSIO _IOW('P', 5, struct io_desc) /* Set I/O map */ 48 #define PIOCSDRV _IOWR('P', 6, struct dev_desc) /* Set driver */ 49 #define PIOCRWFLAG _IOW('P', 7, int) /* Set flags for drv use */ [all …]
|
| /freebsd/lib/libc/regex/ |
| H A D | engine.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 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 */ 93 states empty; /* empty set of states */ 107 static states step(struct re_guts *g, sopno start, sopno stop, states bef, wint_t ch, states aft, i… 109 #define BOL (OUT-1) [all …]
|
| /freebsd/sys/x86/include/ |
| H A D | apm_bios.h | 1 /*- 4 * Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> 105 /* 0x0700 - 0x7fff Reserved */ 110 /* 0x8100 - 0xdfff Reserved */ 111 /* 0xe000 - 0xefff OEM-defined power device IDs */ 112 /* 0xf000 - 0xffff Reserved */ 121 /* 0x0006 - 0x001f Reserved system states */ 122 /* 0x0020 - 0x003f OEM-defined system states */ 123 /* 0x0040 - 0x007f OEM-defined device states */ 124 /* 0x0080 - 0xffff Reserved device states */ [all …]
|
| /freebsd/sys/netpfil/ipfw/ |
| H A D | ip_fw_dynamic.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2017-2025 Yandex LLC 5 * Copyright (c) 2017-2025 Andrey V. Elsukov <ae@FreeBSD.org> 79 * Description of dynamic states. 81 * Dynamic states are stored in lists accessed through a hash tables 90 * Dynamic states can be used for different purposes: 93 * + in-kernel NAT (not implemented yet) 95 * The lifetime of dynamic states is regulated by dyn_*_lifetime, 98 * The total number of dynamic states is equal to UMA zone items count. [all …]
|
| /freebsd/sbin/ipf/ipfstat/ |
| H A D | ipfstat.8 | 3 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/sbin/pfctl/ |
| H A D | pfctl.8 | 35 .Bk -words 49 .Op Fl p Ar device 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 180 .Bd -literal -offset indent 181 # pfctl -a 'authpf/*' -sr 187 .Bd -literal -offset indent [all …]
|
| H A D | pf_print_state.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 13 * - Redistributions of source code must retain the above copyright 15 * - Redistributions in binary form must reproduce the above 58 switch (addr->type) { in print_addr() 60 printf("(%s", addr->v.ifname); in print_addr() 61 if (addr->iflags & PFI_AFLAG_NETWORK) in print_addr() 63 if (addr->iflags & PFI_AFLAG_BROADCAST) in print_addr() 65 if (addr->iflags & PFI_AFLAG_PEER) in print_addr() 67 if (addr->iflags & PFI_AFLAG_NOALIAS) in print_addr() [all …]
|
| /freebsd/crypto/krb5/src/ccapi/common/win/ |
| H A D | tls.c | 6 * Export of this software from the United States of America may 7 * require a specific license from the United States Government. 32 void tspdata_setUUID(struct tspdata* p, unsigned char __RPC_FAR* uuidString) { in tspdata_setUUID() argument 33 strncpy(p->_uuid, uuidString, UUID_SIZE-1); in tspdata_setUUID() 36 void tspdata_setListening (struct tspdata* p, BOOL b) {p->_listening = b;} in tspdata_setListening() argument 38 void tspdata_setConnected (struct tspdata* p, BOOL b) {p->_CCAPI_Connected = b;} in tspdata_setConnected() argument 40 void tspdata_setReplyEvent(struct tspdata* p, HANDLE h) {p->_replyEvent = h;} in tspdata_setReplyEvent() argument 42 void tspdata_setRpcAState (struct tspdata* p, RPC_ASYNC_STATE* rpcState) { in tspdata_setRpcAState() argument 43 p->_rpcState = rpcState;} in tspdata_setRpcAState() 45 void tspdata_setSST (struct tspdata* p, time_t t) {p->_sst = t;} in tspdata_setSST() argument [all …]
|
| H A D | tls.h | 6 * Export of this software from the United States of America may 7 * require a specific license from the United States Government. 35 #include "k5-ipc_stream.h" 40 The thread-specific data is defined here. 53 void tspdata_setListening (struct tspdata* p, BOOL b); 54 void tspdata_setConnected (struct tspdata* p, BOOL b); 55 void tspdata_setReplyEvent(struct tspdata* p, HANDLE h); 56 void tspdata_setRpcAState (struct tspdata* p, RPC_ASYNC_STATE* rpcState); 57 void tspdata_setSST (struct tspdata* p, time_t t); 58 void tspdata_setStream (struct tspdata* p, k5_ipc_stream s); [all …]
|
| /freebsd/usr.bin/top/ |
| H A D | display.c | 138 lines = smart_terminal ? screen_length - Header_lines : 1; in display_resize() 148 return(-1); in display_resize() 165 num_cpus = statics->ncpus; in display_updatecpus() 173 /* fill the "last" array with all -1s, to insure correct updating */ in display_updatecpus() 175 lcpustates[i] = -1; in display_updatecpus() 192 if (lines > -1) in display_init() 195 procstate_names = statics->procstate_names; in display_init() 200 cpustate_names = statics->cpustate_names; in display_init() 202 swap_names = statics->swap_names; in display_init() 208 lcpustates = calloc(num_cpustates * sizeof(int), statics->ncpus); in display_init() [all …]
|
| /freebsd/crypto/krb5/src/lib/gssapi/krb5/ |
| H A D | import_sec_context.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* lib/gssapi/krb5/import_sec_context.c - Internalize the security context */ 7 * Export of this software from the United States of America may 8 * require a specific license from the United States Government. 29 #include "k5-int.h" 37 const gss_OID_desc *p; in krb5_gss_convert_static_mech_oid() local 40 for (p = krb5_gss_oid_array; p->length; p++) { in krb5_gss_convert_static_mech_oid() 41 if ((oid->length == p->length) && in krb5_gss_convert_static_mech_oid() 42 (memcmp(oid->elements, p->elements, p->length) == 0)) { in krb5_gss_convert_static_mech_oid() 44 return (gss_OID) p; in krb5_gss_convert_static_mech_oid() [all …]
|
| /freebsd/sbin/nvmecontrol/ |
| H A D | power.c | 1 /*- 65 mps = NVMEV(NVME_PWR_ST_MPS, nps->mps_nops); in power_list_one() 66 nops = NVMEV(NVME_PWR_ST_NOPS, nps->mps_nops); in power_list_one() 67 apw = NVMEV(NVME_PWR_ST_APW, nps->apw_aps); in power_list_one() 68 aps = NVMEV(NVME_PWR_ST_APS, nps->apw_aps); in power_list_one() 70 mpower = nps->mp; in power_list_one() 73 ipower = nps->idlp; in power_list_one() 74 if (nps->ips == 1) in power_list_one() 76 apower = nps->actp; in power_list_one() 81 nops ? '*' : ' ', nps->enla in power_list_one() 103 uint32_t p; power_set() local [all...] |
| /freebsd/contrib/tcpdump/ |
| H A D | print-pfsync.c | 28 * $OpenBSD: print-pfsync.c,v 1.38 2012/09/19 13:50:36 mikeb Exp $ 46 #include <netdissect-stdinc.h> 62 register const u_char *p) in pfsync_if_print() argument 64 u_int caplen = h->caplen; in pfsync_if_print() 66 ts_print(ndo, &h->ts); in pfsync_if_print() 73 pfsync_print(ndo, (struct pfsync_header *)p, in pfsync_if_print() 74 p + sizeof(struct pfsync_header), in pfsync_if_print() 75 caplen - sizeof(struct pfsync_header)); in pfsync_if_print() 77 if (ndo->ndo_xflag) { in pfsync_if_print() 78 hex_print(ndo, "\n\t", p, caplen); in pfsync_if_print() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | RegisterScavenging.h | 1 //===- RegisterScavenging.h - Machine register scavenging -------*- [all...] |
| /freebsd/crypto/krb5/src/lib/gssapi/generic/ |
| H A D | util_buffer_set.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 6 * Export of this software from the United States of America may 7 * require a specific license from the United States Government. 47 set->count = 0; in generic_gss_create_empty_buffer_set() 48 set->elements = NULL; in generic_gss_create_empty_buffer_set() 62 gss_buffer_t p; in generic_gss_add_buffer_set_member() local 74 set->elements = (gss_buffer_desc *)gssalloc_realloc(set->elements, in generic_gss_add_buffer_set_member() 75 (set->count + 1) * in generic_gss_add_buffer_set_member() 77 if (set->elements == NULL) { in generic_gss_add_buffer_set_member() 82 p = &set->elements[set->count]; in generic_gss_add_buffer_set_member() [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/des/ |
| H A D | d3_kysched.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 3 * Copyright 1995 by Richard P. Basch. All Rights Reserved. 6 * Export of this software from the United States of America may 7 * require a specific license from the United States Government. 16 * the name of Richard P. Basch, Lehman Brothers and M.I.T. not be used 18 * without specific, written prior permission. Richard P. Basch, 36 if (!mit_des_check_key_parity(k[0])) /* bad parity --> return -1 */ in mit_des3_key_sched() 37 return(-1); in mit_des3_key_sched() 39 return(-2); in mit_des3_key_sched() 42 return(-1); in mit_des3_key_sched() [all …]
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | libdef_parse.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 7 * Export of this software from the United States of America may 8 * require a specific license from the United States Government. 32 #include "k5-int.h" 33 #include "int-proto.h" 35 #include "os-proto.h" 50 const char *const *p; in _krb5_conf_boolean() local 52 for(p=conf_yes; *p; p++) { in _krb5_conf_boolean() 53 if (!strcasecmp(*p,s)) in _krb5_conf_boolean() 57 for(p=conf_no; *p; p++) { in _krb5_conf_boolean() [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/openssl/ |
| H A D | hmac.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 7 * Export of this software from the United States of America may 8 * require a specific license from the United States Government. 32 * Export of this software from the United States of America may require 33 * a specific license from the United States Government. It is the 134 OSSL_PARAM params[2], *p = params; in krb5int_hmac_keyblock() local 137 if (md == NULL || keyblock->length > hash->blocksize) in krb5int_hmac_keyblock() 139 if (output->length < hash->hashsize) in krb5int_hmac_keyblock() 152 *p++ = OSSL_PARAM_construct_utf8_string(OSSL_ALG_PARAM_DIGEST, in krb5int_hmac_keyblock() 154 *p = OSSL_PARAM_construct_end(); in krb5int_hmac_keyblock() [all …]
|
| /freebsd/sys/dev/acpica/ |
| H A D | acpi_perf.c | 1 /*- 2 * Copyright (c) 2003-2005 Nate Lawson (SDG) 52 * Support for ACPI processor performance states (Px) according to 65 /* Offsets in struct cf_setting array for storing driver-specific values. */ 78 struct acpi_px *px_states; /* ACPI perf states. */ 79 uint32_t px_count; /* Total number of perf states. */ 83 int info_only; /* Can we set new states? */ 136 static MALLOC_DEFINE(M_ACPIPERF, "acpi_perf", "ACPI Performance states"); 148 /* Get the handle for the Processor object and check for perf states. */ in acpi_perf_identify() 159 * on it (i.e., for info about supported states) will see it. in acpi_perf_identify() [all …]
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | zap.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 7 * Export of this software from the United States of America may 8 * require a specific license from the United States Government. 29 * k5-platform.h) on non-Windows, non-gcc compilers, in order to prevent the 33 #include <k5-platform.h> 37 volatile char *p = ptr; in krb5int_zap() local 39 while (len--) in krb5int_zap() 40 *p++ = '\0'; in krb5int_zap()
|