Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 1683) sorted by relevance

12345678910>>...68

/third_party/boost/libs/asio/test/ip/
Dicmp.cpp73 namespace ip = boost::asio::ip; in test()
94 ip::icmp::socket socket1(ioc); in test()
95 ip::icmp::socket socket2(ioc, ip::icmp::v4()); in test()
96 ip::icmp::socket socket3(ioc, ip::icmp::v6()); in test()
97 ip::icmp::socket socket4(ioc, ip::icmp::endpoint(ip::icmp::v4(), 0)); in test()
98 ip::icmp::socket socket5(ioc, ip::icmp::endpoint(ip::icmp::v6(), 0)); in test()
100 ip::icmp::socket::native_handle_type native_socket1 in test()
102 ip::icmp::socket socket6(ioc, ip::icmp::v4(), native_socket1); in test()
105 ip::icmp::socket socket7(ioc_ex); in test()
106 ip::icmp::socket socket8(ioc_ex, ip::icmp::v4()); in test()
[all …]
Dudp.cpp89 namespace ip = boost::asio::ip; in test()
110 ip::udp::socket socket1(ioc); in test()
111 ip::udp::socket socket2(ioc, ip::udp::v4()); in test()
112 ip::udp::socket socket3(ioc, ip::udp::v6()); in test()
113 ip::udp::socket socket4(ioc, ip::udp::endpoint(ip::udp::v4(), 0)); in test()
114 ip::udp::socket socket5(ioc, ip::udp::endpoint(ip::udp::v6(), 0)); in test()
116 ip::udp::socket::native_handle_type native_socket1 in test()
118 ip::udp::socket socket6(ioc, ip::udp::v4(), native_socket1); in test()
121 ip::udp::socket socket7(ioc_ex); in test()
122 ip::udp::socket socket8(ioc_ex, ip::udp::v4()); in test()
[all …]
Dtcp.cpp56 namespace ip = boost::asio::ip; in test()
61 ip::tcp::socket sock(ioc); in test()
65 ip::tcp::no_delay no_delay1(true); in test()
67 ip::tcp::no_delay no_delay2; in test()
75 ip::tcp::endpoint ep; in test()
76 (void)static_cast<std::size_t>(std::hash<ip::tcp::endpoint>()(ep)); in test()
97 namespace ip = boost::asio::ip; in test()
100 ip::tcp::socket sock(ioc, ip::tcp::v4()); in test()
105 ip::tcp::no_delay no_delay1(true); in test()
112 ip::tcp::no_delay no_delay2; in test()
[all …]
Dmulticast.cpp35 namespace ip = boost::asio::ip; in test()
40 ip::udp::socket sock(ioc); in test()
41 const ip::address address; in test()
42 const ip::address_v4 address_v4; in test()
43 const ip::address_v6 address_v6; in test()
47 ip::multicast::join_group join_group1; in test()
48 ip::multicast::join_group join_group2(address); in test()
49 ip::multicast::join_group join_group3(address_v4); in test()
50 ip::multicast::join_group join_group4(address_v4, address_v4); in test()
51 ip::multicast::join_group join_group5(address_v6); in test()
[all …]
Daddress.cpp34 namespace ip = boost::asio::ip; in test()
42 ip::address addr1; in test()
43 const ip::address_v4 const_addr_v4; in test()
44 ip::address addr2(const_addr_v4); in test()
45 const ip::address_v6 const_addr_v6; in test()
46 ip::address addr3(const_addr_v6); in test()
65 ip::address_v4 addr_v4_value = addr1.to_v4(); in test()
68 ip::address_v6 addr_v6_value = addr1.to_v6(); in test()
79 addr1 = ip::address::from_string("127.0.0.1"); in test()
80 addr1 = ip::address::from_string("127.0.0.1", ec); in test()
[all …]
Dunicast.cpp35 namespace ip = boost::asio::ip; in test()
40 ip::udp::socket sock(ioc); in test()
44 ip::unicast::hops hops1(1024); in test()
46 ip::unicast::hops hops2; in test()
70 namespace ip = boost::asio::ip; in test()
75 ip::udp::endpoint ep_v4(ip::address_v4::loopback(), 0); in test()
76 ip::udp::socket sock_v4(ioc); in test()
81 ip::udp::endpoint ep_v6(ip::address_v6::loopback(), 0); in test()
82 ip::udp::socket sock_v6(ioc); in test()
93 ip::unicast::hops hops1(1); in test()
[all …]
/third_party/node/deps/npm/node_modules/ip/test/
Dapi-test.js3 var ip = require('..'); variable
11 var buf = ip.toBuffer('127.0.0.1');
13 assert.equal(ip.toString(buf), '127.0.0.1');
19 ip.toBuffer('127.0.0.1', buf, offset);
21 assert.equal(ip.toString(buf, offset, 4), '127.0.0.1');
25 var buf = ip.toBuffer('::1');
27 assert.equal(ip.toString(buf), '::1');
28 assert.equal(ip.toString(ip.toBuffer('1::')), '1::');
29 assert.equal(ip.toString(ip.toBuffer('abcd::dcba')), 'abcd::dcba');
35 ip.toBuffer('::1', buf, offset);
[all …]
/third_party/iptables/iptables/
Dnft-ipv4.c36 if (cs->fw.ip.iniface[0] != '\0') { in nft_ipv4_add()
37 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_VIA_IN); in nft_ipv4_add()
38 add_iniface(r, cs->fw.ip.iniface, op); in nft_ipv4_add()
41 if (cs->fw.ip.outiface[0] != '\0') { in nft_ipv4_add()
42 op = nft_invflags2cmp(cs->fw.ip.invflags, IPT_INV_VIA_OUT); in nft_ipv4_add()
43 add_outiface(r, cs->fw.ip.outiface, op); in nft_ipv4_add()
46 if (cs->fw.ip.proto != 0) { in nft_ipv4_add()
47 op = nft_invflags2cmp(cs->fw.ip.invflags, XT_INV_PROTO); in nft_ipv4_add()
48 add_l4proto(r, cs->fw.ip.proto, op); in nft_ipv4_add()
51 if (cs->fw.ip.src.s_addr || cs->fw.ip.smsk.s_addr || cs->fw.ip.invflags & IPT_INV_SRCIP) { in nft_ipv4_add()
[all …]
/third_party/ffmpeg/libavcodec/
Dvp3dsp.c50 int16_t *ip = input; in idct() local
60 if (ip[0 * 8] | ip[1 * 8] | ip[2 * 8] | ip[3 * 8] | in idct()
61 ip[4 * 8] | ip[5 * 8] | ip[6 * 8] | ip[7 * 8]) { in idct()
62 A = M(xC1S7, ip[1 * 8]) + M(xC7S1, ip[7 * 8]); in idct()
63 B = M(xC7S1, ip[1 * 8]) - M(xC1S7, ip[7 * 8]); in idct()
64 C = M(xC3S5, ip[3 * 8]) + M(xC5S3, ip[5 * 8]); in idct()
65 D = M(xC3S5, ip[5 * 8]) - M(xC5S3, ip[3 * 8]); in idct()
73 E = M(xC4S4, (ip[0 * 8] + ip[4 * 8])); in idct()
74 F = M(xC4S4, (ip[0 * 8] - ip[4 * 8])); in idct()
76 G = M(xC2S6, ip[2 * 8]) + M(xC6S2, ip[6 * 8]); in idct()
[all …]
/third_party/iptables/extensions/
Dlibebt_ip.t2 -p ip --ip-src ! 192.168.0.0/24 -j ACCEPT;-p IPv4 --ip-src ! 192.168.0.0/24 -j ACCEPT;OK
3 -p IPv4 --ip-dst 10.0.0.1;=;OK
4 -p IPv4 --ip-tos 0xFF;=;OK
5 -p IPv4 --ip-tos ! 0xFF;=;OK
6 -p IPv4 --ip-proto tcp --ip-dport 22;=;OK
7 -p IPv4 --ip-proto udp --ip-sport 1024:65535;=;OK
8 -p IPv4 --ip-proto 253;=;OK
9 -p IPv4 --ip-proto icmp --ip-icmp-type echo-request;=;OK
10 -p IPv4 --ip-proto icmp --ip-icmp-type 1/1;=;OK
11 -p ip --ip-protocol icmp --ip-icmp-type ! 1:10;-p IPv4 --ip-proto icmp --ip-icmp-type ! 1:10/0:255 …
[all …]
Dlibebt_ip.txlate1 ebtables-translate -A FORWARD -p ip --ip-src ! 192.168.0.0/24 -j ACCEPT
2 nft add rule bridge filter FORWARD ip saddr != 192.168.0.0/24 counter accept
4 ebtables-translate -I FORWARD -p ip --ip-dst 10.0.0.1
5 nft insert rule bridge filter FORWARD ip daddr 10.0.0.1 counter
7 ebtables-translate -I OUTPUT 3 -p ip -o eth0 --ip-tos 0xff
8 nft insert rule bridge filter OUTPUT oifname "eth0" ip dscp 0x3f counter
10 ebtables-translate -A FORWARD -p ip --ip-proto tcp --ip-dport 22
13 ebtables-translate -A FORWARD -p ip --ip-proto udp --ip-sport 1024:65535
16 ebtables-translate -A FORWARD -p ip --ip-proto 253
17 nft add rule bridge filter FORWARD ip protocol 253 counter
[all …]
Dlibxt_ecn.txlate1 iptables-translate -A INPUT -m ecn --ecn-ip-ect 0
2 nft add rule ip filter INPUT ip ecn not-ect counter
4 iptables-translate -A INPUT -m ecn --ecn-ip-ect 1
5 nft add rule ip filter INPUT ip ecn ect1 counter
7 iptables-translate -A INPUT -m ecn --ecn-ip-ect 2
8 nft add rule ip filter INPUT ip ecn ect0 counter
10 iptables-translate -A INPUT -m ecn --ecn-ip-ect 3
11 nft add rule ip filter INPUT ip ecn ce counter
13 iptables-translate -A INPUT -m ecn ! --ecn-ip-ect 0
14 nft add rule ip filter INPUT ip ecn != not-ect counter
[all …]
/third_party/node/deps/npm/node_modules/ip/lib/
Dip.js3 var ip = exports; variable
7 ip.toBuffer = function(ip, buff, offset) { argument
12 if (this.isV4Format(ip)) {
14 ip.split(/\./g).map(function(byte) {
17 } else if (this.isV6Format(ip)) {
18 var sections = ip.split(':', 8);
57 throw Error('Invalid ip address: ' + ip);
63 ip.toString = function(buff, offset, length) {
91 ip.isV4Format = function(ip) { argument
92 return ipv4Regex.test(ip);
[all …]
/third_party/node/deps/npm/node_modules/ip/
DREADME.md2 [![](https://badge.fury.io/js/ip.svg)](https://www.npmjs.com/package/ip)
10 npm install ip
16 git clone https://github.com/indutny/node-ip.git
20 Get your ip address, compare ip addresses, validate ip addresses, etc.
23 var ip = require('ip');
25 ip.address() // my ip address
26 ip.isEqual('::1', '::0:1'); // true
27 ip.toBuffer('127.0.0.1') // Buffer([127, 0, 0, 1])
28 ip.toString(new Buffer([127, 0, 0, 1])) // 127.0.0.1
29 ip.fromPrefixLen(24) // 255.255.255.0
[all …]
/third_party/boost/libs/asio/doc/overview/
Dbsd_sockets.qbk21 TCP one would use `ip::tcp::socket`, and for UDP one uses `ip::udp::socket`.
32 [ For TCP: [link boost_asio.reference.ip__tcp.socket ip::tcp::socket],
33 [link boost_asio.reference.ip__tcp.acceptor ip::tcp::acceptor]
35 For UDP: [link boost_asio.reference.ip__udp.socket ip::udp::socket]
45 [ [link boost_asio.reference.ip__address ip::address],
46 [link boost_asio.reference.ip__address ip::address_v4],
47 [link boost_asio.reference.ip__address ip::address_v6] ]
52 [ For TCP: [link boost_asio.reference.ip__tcp.endpoint ip::tcp::endpoint]
54 For UDP: [link boost_asio.reference.ip__udp.endpoint ip::udp::endpoint]
56 [link boost_asio.reference.ip__basic_endpoint ip::basic_endpoint] ]
[all …]
/third_party/ffmpeg/libavcodec/arm/
Dsimple_idct_armv5te.S52 mov ip, #16384
53 sub ip, ip, #1 /* ip = W4 */
54 smlabb v1, ip, a3, v1 /* v1 = W4*row[0]+(1<<(RS-1)) */
55 ldr ip, =W26 /* ip = W2 | (W6 << 16) */
56 smultb a2, ip, a4
57 smulbb lr, ip, a4
63 ldr ip, =W13 /* ip = W1 | (W3 << 16) */
65 smulbt v5, ip, a3
67 smlatt v5, ip, a4, v5
68 smultt a2, ip, a3
[all …]
/third_party/gettext/gettext-tools/src/
Dfilter-sr-latin.c311 const char *ip; in serbian_to_latin() local
314 for (ip = input, op = output; ip < input_end; ) in serbian_to_latin()
316 unsigned char byte = (unsigned char) *ip; in serbian_to_latin()
319 if ((byte >= 0xd0 && byte <= 0xd3) && (ip + 1 < input_end)) in serbian_to_latin()
321 unsigned char second_byte = (unsigned char) ip[1]; in serbian_to_latin()
338 if ((ip + 2 < input_end in serbian_to_latin()
339 && IS_UPPERCASE_LATIN ((unsigned char) ip[2])) in serbian_to_latin()
340 || (ip + 3 < input_end in serbian_to_latin()
341 && IS_UPPERCASE_CYRILLIC ((unsigned char) ip[2], in serbian_to_latin()
342 (unsigned char) ip[3])) in serbian_to_latin()
[all …]
/third_party/ltp/tools/sparse/sparse-src/validation/backend/
Dconstant-pointer.c1 extern int *ip[];
6 ip[0] = (void *)0L; in foo()
7 ip[1] = (int *)0L; in foo()
8 ip[2] = (void *)0; in foo()
9 ip[3] = (int *)0; in foo()
10 ip[4] = (void *)(long)0; in foo()
11 ip[5] = (int *)(long)0; in foo()
12 ip[6] = (void *)123; in foo()
13 ip[7] = (int *)123; in foo()
14 ip[8] = (void *)123L; in foo()
[all …]
/third_party/iptables/libiptc/
Dlibip4tc.c132 IP_PARTS(e->ip.src.s_addr),IP_PARTS(e->ip.smsk.s_addr)); in dump_entry()
134 IP_PARTS(e->ip.dst.s_addr),IP_PARTS(e->ip.dmsk.s_addr)); in dump_entry()
135 printf("Interface: `%s'/", e->ip.iniface); in dump_entry()
137 printf("%c", e->ip.iniface_mask[i] ? 'X' : '.'); in dump_entry()
138 printf("to `%s'/", e->ip.outiface); in dump_entry()
140 printf("%c", e->ip.outiface_mask[i] ? 'X' : '.'); in dump_entry()
141 printf("\nProtocol: %u\n", e->ip.proto); in dump_entry()
142 printf("Flags: %02X\n", e->ip.flags); in dump_entry()
143 printf("Invflags: %02X\n", e->ip.invflags); in dump_entry()
178 if (a->ip.src.s_addr != b->ip.src.s_addr in is_same()
[all …]
/third_party/re2/re2/
Dprog.cc136 Prog::Inst* ip = prog->inst(id); in ProgToString() local
137 s += StringPrintf("%d. %s\n", id, ip->Dump().c_str()); in ProgToString()
138 AddToQueue(q, ip->out()); in ProgToString()
139 if (ip->opcode() == kInstAlt || ip->opcode() == kInstAltMatch) in ProgToString()
140 AddToQueue(q, ip->out1()); in ProgToString()
148 Prog::Inst* ip = prog->inst(id); in FlattenedProgToString() local
149 if (ip->last()) in FlattenedProgToString()
150 s += StringPrintf("%d. %s\n", id, ip->Dump().c_str()); in FlattenedProgToString()
152 s += StringPrintf("%d+ %s\n", id, ip->Dump().c_str()); in FlattenedProgToString()
208 Inst* ip = inst(id); in Optimize() local
[all …]
Dnfa.cc244 Prog::Inst* ip = prog_->inst(id); in AddToThreadq() local
245 switch (ip->opcode()) { in AddToThreadq()
247 LOG(DFATAL) << "unhandled " << ip->opcode() << " in AddToThreadq"; in AddToThreadq()
258 DCHECK(!ip->last()); in AddToThreadq()
263 if (!ip->last()) in AddToThreadq()
267 a = {ip->out(), NULL}; in AddToThreadq()
271 if (!ip->last()) in AddToThreadq()
274 if ((j=ip->cap()) < ncapture_) { in AddToThreadq()
285 a = {ip->out(), NULL}; in AddToThreadq()
289 if (!ip->Matches(c)) in AddToThreadq()
[all …]
/third_party/libunwind/src/ptrace/
D_UPT_find_proc_info.c36 get_unwind_info (struct elf_dyn_info *edi, pid_t pid, unw_addr_space_t as, unw_word_t ip) in get_unwind_info() argument
44 if (edi->ktab.format != -1 && ip >= edi->ktab.start_ip && ip < edi->ktab.end_ip) in get_unwind_info()
49 && ip >= edi->di_cache.start_ip && ip < edi->di_cache.end_ip) in get_unwind_info()
52 && ip >= edi->di_arm.start_ip && ip < edi->di_arm.end_ip) in get_unwind_info()
55 && ip >= edi->di_debug.start_ip && ip < edi->di_debug.end_ip)) in get_unwind_info()
61 map = tdep_get_elf_image (as, pid, ip); in get_unwind_info()
65 if (tdep_find_unwind_table (edi, &map->ei, as, map->path, map->start, map->offset, ip) < 0) in get_unwind_info()
74 && (ip < edi->di_cache.start_ip || ip >= edi->di_cache.end_ip)) in get_unwind_info()
78 && (ip < edi->di_debug.start_ip || ip >= edi->di_debug.end_ip)) in get_unwind_info()
92 _UPT_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in _UPT_find_proc_info() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dr500_fragprog_emit.c225 static void alu_nop(struct r300_fragment_program_compiler *c, int ip) in alu_nop() argument
229 if ((code->inst[ip].inst0 & 0x3) != R500_INST_TYPE_TEX) { in alu_nop()
230 code->inst[ip].inst0 |= R500_INST_NOP; in alu_nop()
239 int ip; in emit_paired() local
247 ip = ++code->inst_end; in emit_paired()
252 if (ip > 0) { in emit_paired()
253 alu_nop(c, ip - 1); in emit_paired()
257 code->inst[ip].inst5 = translate_rgb_op(c, inst->RGB.Opcode); in emit_paired()
258 code->inst[ip].inst4 = translate_alpha_op(c, inst->Alpha.Opcode); in emit_paired()
261 code->inst[ip].inst0 = R500_INST_TYPE_OUT; in emit_paired()
[all …]
/third_party/libunwind/src/coredump/
D_UCD_find_proc_info.c34 get_unwind_info(struct UCD_info *ui, unw_addr_space_t as, unw_word_t ip) in get_unwind_info() argument
42 if (ui->edi.ktab.format != -1 && ip >= ui->edi.ktab.start_ip && ip < ui->edi.ktab.end_ip) in get_unwind_info()
47 && ip >= ui->edi.di_cache.start_ip && ip < ui->edi.di_cache.end_ip) in get_unwind_info()
50 && ip >= ui->edi.di_arm.start_ip && ip < ui->edi.di_arm.end_ip) in get_unwind_info()
53 && ip >= ui->edi.di_debug.start_ip && ip < ui->edi.di_debug.end_ip)) in get_unwind_info()
59 coredump_phdr_t *phdr = _UCD_get_elf_image(ui, ip); in get_unwind_info()
75 if (tdep_find_unwind_table(&ui->edi, as, phdr->backing_filename, segbase, mapoff, ip) < 0) in get_unwind_info()
86 && (ip < ui->edi.di_cache.start_ip || ip >= ui->edi.di_cache.end_ip)) in get_unwind_info()
90 && (ip < ui->edi.di_debug.start_ip || ip >= ui->edi.di_debug.end_ip)) in get_unwind_info()
108 _UCD_find_proc_info (unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in _UCD_find_proc_info() argument
[all …]
/third_party/openssl/crypto/
Dex_data.c52 EX_CALLBACKS *ip; in get_and_lock() local
77 ip = &ex_data[class_index]; in get_and_lock()
79 return ip; in get_and_lock()
98 EX_CALLBACKS *ip = &ex_data[i]; in crypto_cleanup_all_ex_data_int() local
100 sk_EX_CALLBACK_pop_free(ip->meth, cleanup_cb); in crypto_cleanup_all_ex_data_int()
101 ip->meth = NULL; in crypto_cleanup_all_ex_data_int()
132 EX_CALLBACKS *ip = get_and_lock(class_index); in CRYPTO_free_ex_index() local
136 if (ip == NULL) in CRYPTO_free_ex_index()
138 if (idx < 0 || idx >= sk_EX_CALLBACK_num(ip->meth)) in CRYPTO_free_ex_index()
140 a = sk_EX_CALLBACK_value(ip->meth, idx); in CRYPTO_free_ex_index()
[all …]

12345678910>>...68