/freebsd/crypto/heimdal/lib/asn1/ |
H A D | der_copy.c | 20 * may be used to endorse or promote products derived from this software 41 der_copy_general_string (const heim_general_string *from, in der_copy_general_string() argument 44 *to = strdup(*from); in der_copy_general_string() 51 der_copy_integer (const int *from, int *to) in der_copy_integer() argument 53 *to = *from; in der_copy_integer() 58 der_copy_integer64 (const int64_t *from, int64_t *to) in der_copy_unsigned() argument 60 *to = *from; in der_copy_unsigned() 65 der_copy_unsigned (const unsigned *from, unsigned *to) in der_copy_generalized_time() argument 67 *to = *from; in der_copy_generalized_time() 72 der_copy_unsigned64 (const uint64_t *from, uint64_ argument 79 der_copy_utf8string(const heim_utf8_string * from,heim_utf8_string * to) der_copy_utf8string() argument 85 der_copy_printable_string(const heim_printable_string * from,heim_printable_string * to) der_copy_printable_string() argument 98 der_copy_ia5_string(const heim_ia5_string * from,heim_ia5_string * to) der_copy_ia5_string() argument 105 der_copy_bmp_string(const heim_bmp_string * from,heim_bmp_string * to) der_copy_bmp_string() argument 116 der_copy_universal_string(const heim_universal_string * from,heim_universal_string * to) der_copy_universal_string() argument 128 der_copy_visible_string(const heim_visible_string * from,heim_visible_string * to) der_copy_visible_string() argument 135 der_copy_octet_string(const heim_octet_string * from,heim_octet_string * to) der_copy_octet_string() argument 150 der_copy_heim_integer(const heim_integer * from,heim_integer * to) der_copy_heim_integer() argument 162 der_copy_oid(const heim_oid * from,heim_oid * to) der_copy_oid() argument 174 der_copy_bit_string(const heim_bit_string * from,heim_bit_string * to) der_copy_bit_string() argument [all...] |
H A D | gen_copy.c | 41 copy_primitive (const char *typename, const char *from, const char *to) in copy_primitive() argument 44 typename, from, to); in copy_primitive() 49 copy_type (const char *from, const char *to, const Type *t, int preserve) in copy_type() argument 54 copy_type (from, to, t->symbol->type, preserve); in copy_type() 57 t->symbol->gen_name, from, to); in copy_type() 62 copy_primitive ("heim_integer", from, to); in copy_type() 67 fprintf(codefile, "*(%s) = *(%s);\n", to, from); in copy_type() 70 copy_primitive ("octet_string", from, to); in copy_type() 74 copy_primitive ("bit_string", from, to); in copy_type() 76 fprintf(codefile, "*(%s) = *(%s);\n", to, from); in copy_type() [all …]
|
/freebsd/libexec/rc/ |
H A D | rc.firewall | 84 ${fwcmd} add 100 pass all from any to any via lo0 85 ${fwcmd} add 200 deny all from any to 127.0.0.0/8 86 ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any 88 ${fwcmd} add 400 deny all from any to ::1 89 ${fwcmd} add 500 deny all from ::1 to any 102 ${fwcmd} add pass ipv6-icmp from :: to ff02::/16 104 ${fwcmd} add pass ipv6-icmp from fe80::/10 to fe80::/10 105 ${fwcmd} add pass ipv6-icmp from fe80::/10 to ff02::/16 108 ${fwcmd} add pass ipv6-icmp from any to any icmp6types 1 111 ${fwcmd} add pass ipv6-icmp from any to any icmp6types 2,135,136 [all …]
|
/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | i12 | 1 pass in inet from 1.1.1.1/32 to 2.2.2.2/32 2 pass in inet from 2.2.2.0/24 to 4.4.4.4/32 3 pass in inet from 3.3.3.3/32 to 4.4.4.4/32 4 pass in inet from 2.2.2.0/24 to 5.5.5.5/32 5 pass in inet from 3.3.3.3/32 to 5.5.5.5/32 6 pass in inet from 2.2.2.0/24 to 6.6.6.6/32 7 pass in inet from 3.3.3.3/32 to 6.6.6.6/32 8 pass in inet from 2.2.2.0/24 to 5.5.5.5/32 port = 22 9 pass in inet from 3.3.3.3/32 to 5.5.5.5/32 port = 22 10 pass in inet from 2.2.2.0/24 to 6.6.6.6/32 port = 22 [all …]
|
H A D | i8 | 1 pass in inet proto icmp from 127.0.0.1/32 to 127.0.0.1/32 icmp-type timest 2 block in inet proto icmp from any to any icmp-type unreach code 1 3 pass in inet proto icmp from any to any icmp-type unreach code 15 4 pass in inet proto icmp from any to any icmp-type unreach code 13 5 pass in inet proto icmp from any to any icmp-type unreach code 8 6 pass in inet proto icmp from any to any icmp-type unreach code 4 7 pass in inet proto icmp from any to any icmp-type unreach code 9 8 pass in inet proto icmp from any to any icmp-type unreach code 11 9 pass in inet proto icmp from any to any icmp-type unreach code 14 10 pass in inet proto icmp from any to any icmp-type unreach code 10 [all …]
|
H A D | in5 | 1 map le0 from 9.8.7.6/32 port > 1024 to 0/0 -> 1.1.1.1/32 portmap tcp 10000:20000 2 map le0 from 9.8.7.6/32 port > 1024 ! to 1.2.3.4/32 -> 1.1.1.1/32 portmap tcp 10000:20000 3 rdr le0 from 0/0 to 9.8.7.6/32 port = 0 -> 1.1.1.1/32 port 0 tcp 4 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip 5 rdr le0 ! from 1.2.3.4/32 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp 6 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip 7 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp 8 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 udp 9 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp/udp 10 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 icmp [all …]
|
H A D | in5_6 | 1 map le0 inet6 from 9:8:7::6/128 port > 1024 to any -> 1:1:1::1/128 portmap tcp 10000:20000 2 map le0 inet6 from 9:8:7::6/128 port > 1024 ! to 1:2:3::4/128 -> 1:1:1::1/128 portmap tcp 10000:200… 3 rdr le0 inet6 from any to 9:8:7::6/128 port = 0 -> 1:1:1::1/128 port 0 tcp 4 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip 5 rdr le0 inet6 ! from 1:2:3::4/128 to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp 6 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip 7 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp 8 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 udp 9 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp/udp 10 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 icmp [all …]
|
H A D | i21 | 1 pass in from any port = 10101 to any 2 pass out from any to any port != 22 3 block in from any port 20:21 to any 4 block out from any to any port 10 <> 100 5 pass out from any to any port = 3 6 pass out from any to any port = 5 7 pass out from any to any port = 7 8 pass out from any to any port = 9 9 block in from any port = 20 to any 10 block in from any port = 25 to any [all …]
|
/freebsd/contrib/netbsd-tests/ipf/regress/ |
H A D | f5 | 1 block in proto tcp from any port = 23 to any 2 block in proto udp from any port = 23 to any 3 block in proto tcp/udp from any port = 23 to any 4 pass in proto tcp from any port <= 1023 to any 5 pass in proto udp from any port <= 1023 to any 6 pass in proto tcp/udp from any port <= 1023 to any 7 block in proto tcp from any port >= 1024 to any 8 block in proto udp from any port >= 1024 to any 9 block in proto tcp/udp from any port >= 1024 to any 10 pass in proto tcp from any port >= 1024 to any [all …]
|
H A D | f6 | 1 block in proto tcp from any to any port = 23 2 block in proto udp from any to any port = 23 3 block in proto tcp/udp from any to any port = 23 4 pass in proto tcp from any to any port <= 1023 5 pass in proto udp from any to any port <= 1023 6 pass in proto tcp/udp from any to any port <= 1023 7 block in proto tcp from any to any port >= 1024 8 block in proto udp from any to any port >= 1024 9 block in proto tcp/udp from any to any port >= 1024 10 pass in proto tcp from any to any port >= 1024 [all …]
|
H A D | in5 | 1 map le0 from 9.8.7.6/32 port > 1024 to any -> 1.1.1.1 portmap 10000:20000 tcp 2 map le0 from 9.8.7.6/32 port > 1024 to ! 1.2.3.4 -> 1.1.1.1 portmap 10000:20000 tcp 3 rdr le0 from any to 9.8.7.6/32 port = 0 -> 1.1.1.1 port 0 tcp 4 rdr le0 from any to 9.8.7.6/0xffffffff port = 0 -> 1.1.1.1 port 0 ip 5 rdr le0 ! from 1.2.3.4 to 9.8.7.6 port = 8888 -> 1.1.1.1 port 888 tcp 6 rdr le0 from any to 9.8.7.6/255.255.255.255 port = 8888 -> 1.1.1.1 port 888 ip 7 rdr le0 from any to 9.8.7.6 mask 0xffffffff port = 8888 -> 1.1.1.1 port 888 tcp 8 rdr le0 from any to 9.8.7.6 mask 255.255.255.255 port = 8888 -> 1.1.1.1 port 888 udp 9 rdr le0 from any to 9.8.7.6/32 port = 8888 -> 1.1.1.1 port 888 tcp/udp 10 rdr le0 from any to 9.8.7.6/32 -> 1.1.1.1 port 888 icmp [all …]
|
H A D | in5_6 | 1 map le0 inet6 from 9:8:7::6/128 port > 1024 to any -> 1:1:1::1 portmap 10000:20000 tcp 2 map le0 inet6 from 9:8:7::6/128 port > 1024 to ! 1:2:3::4 -> 1:1:1::1 portmap 10000:20000 tcp 3 rdr le0 inet6 from any to 9:8:7::6/128 port = 0 -> 1:1:1::1 port 0 tcp 4 rdr le0 inet6 from any to 9:8:7::6/128 port = 0 -> 1:1:1::1 port 0 ip 5 rdr le0 inet6 ! from 1:2:3::4 to 9:8:7::6 port = 8888 -> 1:1:1::1 port 888 tcp 6 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 ip 7 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 tcp 8 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 udp 9 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 tcp/udp 10 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1 port 888 icmp [all …]
|
/freebsd/sbin/pfctl/tests/files/ |
H A D | pf0004.ok | 6 block drop in inet from 10.0.0.0/8 to any 7 block drop in inet from ! 10.0.0.0/8 to any 8 block drop in inet from 10.0.0.0/8 to any 9 block drop in inet from 172.16.0.0/12 to any 10 block drop in proto tcp from any port = ssh to any 11 block drop in proto tcp from any port = ssh to any port 1024:2048 12 block drop in proto tcp from any port 21 >< 2048 to any port 1024:2048 13 block drop in proto tcp from any port != 1234 to any port 1024:2048 14 block drop in proto tcp from any port >= 80 to any port 1024:2048 15 block drop in inet proto tcp from 10.0.0.0/8 port = ssh to 192.168.0.0/16 port = ircd [all …]
|
H A D | pf0081.ok | 3 pass inet6 from (lo0) to ::1 flags S/SA keep state 4 pass inet6 from (lo0) to ::2 flags S/SA keep state 5 pass inet6 from (lo0) to ::3 flags S/SA keep state 6 pass inet from (lo0) to 0.0.0.1 flags S/SA keep state 7 pass inet from (lo0) to 0.0.0.2 flags S/SA keep state 8 pass inet from (lo0) to 0.0.0.3 flags S/SA keep state 9 pass from <foo> to <bar1> flags S/SA keep state 10 pass from <foo> to <bar2> flags S/SA keep state 11 pass from <foo> to <bar3> flags S/SA keep state 12 pass inet6 from <foo> to ::1 flags S/SA keep state [all …]
|
H A D | pf0047.in | 8 pass in on lo0 from 0/0 to any label "$srcaddr" 9 pass in on lo0 from 127.0.0.1 to any label "$srcaddr" 10 pass in on lo0 from 127.0.0.1 to any label "$srcaddr$srcaddr" 11 pass in on lo0 from 127.0.0.1 to any label ":$srcaddr:$srcaddr:" 12 pass in on lo0 from 127.0.0.1/8 to any label "$srcaddr" 13 pass in on lo0 from 127.0.0.1/16 to any label "$srcaddr$srcaddr" 14 pass in on lo0 from 127.0.0.1/31 to any label ":$srcaddr:$srcaddr:" 15 pass in on lo0 inet6 from fe80::1 to any label "$srcaddr" 16 pass in on lo0 inet6 from fe80::1 to any label "$srcaddr$srcaddr" 17 pass in on lo0 inet6 from fe80::1 to any label ":$srcaddr:$srcaddr:" [all …]
|
H A D | pf0082.in | 3 pass inet from (lo0) 4 pass inet from !(lo0) 5 pass inet from (lo0) 6 pass inet6 from (lo0) 7 pass from <foo> 8 pass from !<foo> 9 pass from <foo> 10 pass inet from <bar> 11 pass from <bar> 12 pass inet6 from <foo> [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | hanoi-include.exp | 1 Move the upper disk from stack A to stack C. 2 Move the upper disk from stack A to stack B. 3 Move the upper disk from stack C to stack B. 4 Move the upper disk from stack A to stack C. 5 Move the upper disk from stack B to stack A. 6 Move the upper disk from stack B to stack C. 7 Move the upper disk from stack A to stack C. 8 Move the upper disk from stack A to stack B. 9 Move the upper disk from stack C to stack B. 10 Move the upper disk from stack C to stack A. [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_bvgraph.h | 43 bool addEdge(uptr from, uptr to) { in addEdge() argument 44 check(from, to); in addEdge() 45 return v[from].setBit(to); in addEdge() 49 uptr addEdges(const BV &from, uptr to, uptr added_edges[], in addEdges() argument 52 t1.copyFrom(from); in addEdges() 68 bool hasEdge(uptr from, uptr to) { return v[from].getBit(to); } in hasEdge() argument 71 bool removeEdge(uptr from, uptr to) { in removeEdge() argument 72 return v[from].clearBit(to); in removeEdge() 78 for (uptr from = 0; from < size(); from++) { in removeEdgesTo() local 79 if (v[from].setDifference(to)) in removeEdgesTo() [all …]
|
/freebsd/share/examples/ipfilter/ |
H A D | rules.txt | 2 # block all incoming TCP packets on le0 from host "foo" to any destination. 4 block in on le0 proto tcp from foo/32 to any 9 # block all outgoing TCP packets on le0 from any host to port 23 of host bar. 11 block out on le0 proto tcp from any to bar/32 port != 23 18 block in from any to any 20 # pass through packets to and from localhost. 22 pass in from 127.0.0.1/32 to 127.0.0.1/32 27 pass in from 10.1.3.1 to any 28 pass in from 10.1.3.2 to any 29 pass in from 10.1.3.3 to any [all …]
|
/freebsd/share/examples/ipfilter/rules/ |
H A D | example.3 | 4 block in from any to any 6 # pass through packets to and from localhost. 8 pass in from 127.0.0.1/32 to 127.0.0.1/32 13 pass in from 10.1.3.1/32 to any 14 pass in from 10.1.3.2/32 to any 15 pass in from 10.1.3.3/32 to any 16 pass in from 10.1.3.4/32 to any 17 pass in from 10.1.3.5/32 to any 18 pass in from 10.1.0.13/32 to any 19 pass in from 10.1.1.1/32 to any [all …]
|
/freebsd/usr.bin/diff3/ |
H A D | diff3.c | 87 int from; member 284 (*dd)[i].old.from = a; in readin() 286 (*dd)[i].new.from = c; in readin() 289 if ((*dd)[i].old.from < (*dd)[i - 1].old.to || in readin() 290 (*dd)[i].new.from < (*dd)[i - 1].new.to) in readin() 295 (*dd)[i].old.from = (*dd)[i].old.to = (*dd)[i - 1].old.to; in readin() 296 (*dd)[i].new.from = (*dd)[i].new.to = (*dd)[i - 1].new.to; in readin() 377 if (!t2 || (t1 && d1->new.to < d2->new.from)) { in merge() 391 if (!t1 || (t2 && d2->new.to < d1->new.from)) { in merge() 409 if (d1 + 1 < d13 + m1 && d1->new.to >= d1[1].new.from) { in merge() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | ctrl_iface_udp.c | 79 struct sockaddr_in6 *from, in wpa_supplicant_ctrl_iface_attach() argument 81 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_attach() 93 os_memcpy(&dst->addr, from, sizeof(*from)); in wpa_supplicant_ctrl_iface_attach() 100 inet_ntop(AF_INET6, &from->sin6_addr, addr, sizeof(*from)), in wpa_supplicant_ctrl_iface_attach() 101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach() 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 112 struct sockaddr_in6 *from, argument 114 struct sockaddr_in *from, 126 if (from->sin6_port == dst->addr.sin6_port && 127 !os_memcmp(&from->sin6_addr, &dst->addr.sin6_addr, [all …]
|
/freebsd/contrib/openbsm/compat/ |
H A D | endian.h | 50 const unsigned char *from; in bswap16() local 54 from = (const unsigned char *) &int16; in bswap16() 57 to[0] = from[1]; in bswap16() 58 to[1] = from[0]; in bswap16() 66 const unsigned char *from; in bswap32() local 70 from = (const unsigned char *) &int32; in bswap32() 73 to[0] = from[3]; in bswap32() 74 to[1] = from[2]; in bswap32() 75 to[2] = from[1]; in bswap32() 76 to[3] = from[0]; in bswap32() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_interceptors_memintrinsics.cpp | 26 #define MEMPROF_MEMCPY_IMPL(to, from, size) \ argument 29 return internal_memcpy(to, from, size); \ 31 return REAL(memcpy)(to, from, size); \ 34 MEMPROF_READ_RANGE(from, size); \ 36 return REAL(memcpy)(to, from, size); \ 52 #define MEMPROF_MEMMOVE_IMPL(to, from, size) \ argument 55 return internal_memmove(to, from, size); \ 57 MEMPROF_READ_RANGE(from, size); \ 59 return internal_memmove(to, from, size); \ 62 #define COMMON_INTERCEPTOR_MEMMOVE_IMPL(ctx, to, from, size) \ argument [all …]
|
/freebsd/bin/mv/ |
H A D | mv.c | 159 do_move(const char *from, const char *to) in do_move() argument 173 if (lstat(from, &sb) == -1) { in do_move() 174 warn("%s", from); in do_move() 210 if (!rename(from, to)) { in do_move() 212 printf("%s -> %s\n", from, to); in do_move() 221 if (lstat(from, &sb) == -1) { in do_move() 222 warn("%s", from); in do_move() 227 if (realpath(from, path) == NULL) { in do_move() 228 warn("cannot resolve %s: %s", from, path); in do_move() 238 warn("rename %s to %s", from, to); in do_move() [all …]
|