@@ -236,75 +236,52 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
236
236
bool(true)
237
237
bool(true)
238
238
string(2) "lo"
239
- int(%i )
239
+ int(1 )
240
240
241
- Warning: socket_getpeername(): unable to retrieve peer name [95]: %sot supported in %s on line %d
241
+ Warning: socket_getpeername(): unable to retrieve peer name [95]: Operation not supported in %s on line %d
242
242
int(60)
243
243
int(60)
244
244
string(2) "lo"
245
- object(Socket\EthernetPacket)#3 (%d) {
246
- ["headerSize"]=>
247
- int(%d)
248
- ["rawPacket"]=>
249
- string(%d) "%r(.|\n)*?"%r
250
- ["socket"]=>
251
- object(Socket)#1 (0) {
252
- }
253
- ["ethProtocol"]=>
254
- int(%i)
255
- ["srcMac"]=>
256
- string(%d) "%s:%s:%s:%s:%s:%s"
257
- ["dstMac"]=>
258
- string(%d) "%s:%s:%s:%s:%s:%s"
259
- ["payload"]=>
260
- %a
261
- }
262
- int(60)
263
- unsupported ethernet protocol
264
- int(60)
265
- int(%d)
266
- string(2) "lo"
267
- object(Socket\EthernetPacket)#2 (7) {
245
+ object(Socket\EthernetPacket)#3 (7) {
268
246
["headerSize"]=>
269
247
int(14)
270
248
["rawPacket"]=>
271
249
string(%d) "%r(.|\n)*?"%r
272
250
["socket"]=>
273
- object(Socket)#%d (0) {
251
+ object(Socket)#1 (0) {
274
252
}
275
253
["ethProtocol"]=>
276
- int(%d )
254
+ int(96 )
277
255
["srcMac"]=>
278
- string(%d ) "%s:%s:%s:%s:%s:%s "
256
+ string(11 ) "0:0:0:0:0:0 "
279
257
["dstMac"]=>
280
- string(%d ) "%s:%s:%s:%s:%s:%s "
258
+ string(17 ) "ff:ff:ff:ff:ff:ff "
281
259
["payload"]=>
282
- object(Socket\Ipv%sPacket)#%d (5 ) {
260
+ object(Socket\EthernetPacket)#4 (7 ) {
283
261
["headerSize"]=>
284
- int(%d )
262
+ int(14 )
285
263
["rawPacket"]=>
286
264
string(%d) "%r(.|\n)*?"%r
287
- ["srcAddr"]=>
288
- string(%d) "%s"
289
- ["dstAddr"]=>
290
- string(%d) "%s"
291
- ["payload"]=>
292
- object(Socket\%sPacket)#%d (4) {
293
- ["headerSize"]=>
294
- int(%d)
295
- ["rawPacket"]=>
296
- string(%d) "%r(.|\n)*?"%r
297
- ["srcPort"]=>
298
- int(%d)
299
- ["dstPort"]=>
300
- int(%d)
265
+ ["socket"]=>
266
+ object(Socket)#1 (0) {
301
267
}
268
+ ["ethProtocol"]=>
269
+ int(0)
270
+ ["srcMac"]=>
271
+ string(17) "41:41:41:41:41:41"
272
+ ["dstMac"]=>
273
+ string(17) "41:41:41:41:41:41"
274
+ ["payload"]=>
275
+ NULL
302
276
}
303
277
}
304
- int(%d)
305
- int(%d)
278
+ int(60)
279
+ unsupported ethernet protocol
280
+ int(60)
281
+ int(72)
282
+ int(72)
306
283
string(2) "lo"
307
- object(Socket\EthernetPacket)#%d (7) {
284
+ object(Socket\EthernetPacket)#8 (7) {
308
285
["headerSize"]=>
309
286
int(14)
310
287
["rawPacket"]=>
@@ -313,75 +290,36 @@ object(Socket\EthernetPacket)#%d (7) {
313
290
object(Socket)#3 (0) {
314
291
}
315
292
["ethProtocol"]=>
316
- int(%d )
293
+ int(34525 )
317
294
["srcMac"]=>
318
- string(%d ) "%s:%s:%s:%s:%s:%s "
295
+ string(11 ) "0:0:0:0:0:0 "
319
296
["dstMac"]=>
320
- string(%d ) "%s:%s:%s:%s:%s:%s "
297
+ string(17 ) "ff:ff:ff:ff:ff:ff "
321
298
["payload"]=>
322
- object(Socket\Ipv6Packet)#%d (5) {
299
+ object(Socket\Ipv6Packet)#1 (5) {
323
300
["headerSize"]=>
324
- int(%d )
301
+ int(5160 )
325
302
["rawPacket"]=>
326
- string(%d) "%A"
303
+ string(%d) "%r(.|\n)*?"%r
327
304
["srcAddr"]=>
328
- string(%d ) "%s "
305
+ string(3 ) "::1 "
329
306
["dstAddr"]=>
330
- string(%d ) "%s "
307
+ string(3 ) "::1 "
331
308
["payload"]=>
332
- object(Socket\TcpPacket)#%d (4) {
309
+ object(Socket\TcpPacket)#11 (4) {
333
310
["headerSize"]=>
334
- int(%d )
311
+ int(20 )
335
312
["rawPacket"]=>
336
313
string(%d) "%r(.|\n)*?"%r
337
314
["srcPort"]=>
338
- int(%d )
315
+ int(0 )
339
316
["dstPort"]=>
340
- int(%d )
317
+ int(0 )
341
318
}
342
319
}
343
320
}
344
- int(%d )
321
+ int(74 )
345
322
unsupported ipv6 header protocol
346
- int(%d)
347
- %A
348
- int(%d)
349
- %A
350
- string(%d) "%s"
351
- object(Socket\EthernetPacket)#%d (7) {
352
- ["headerSize"]=>
353
- int(%d)
354
- ["rawPacket"]=>
355
- string(%d) "%r(.|\n)*?"%r
356
- ["socket"]=>
357
- object(Socket)#%d (0) {
358
- }
359
- ["ethProtocol"]=>
360
- int(2048)
361
- ["srcMac"]=>
362
- string(%d) "%s"
363
- ["dstMac"]=>
364
- string(%d) "%s"
365
- ["payload"]=>
366
- object(Socket\Ipv4Packet)#%d (5) {
367
- ["headerSize"]=>
368
- int(%d)
369
- ["rawPacket"]=>
370
- string(%d) "%s"
371
- ["srcAddr"]=>
372
- string(%d) "%s.%s.%s.%s"
373
- ["dstAddr"]=>
374
- string(%d) "%s.%s.%s.%s"
375
- ["payload"]=>
376
- object(Socket\TcpPacket)#%d (4) {
377
- ["headerSize"]=>
378
- int(%d)
379
- ["rawPacket"]=>
380
- string(%d) "%r(.|\n)*?"%r
381
- ["srcPort"]=>
382
- int(%d)
383
- ["dstPort"]=>
384
- int(%d)
385
- }
386
- }
387
- }
323
+ int(84)
324
+ unsupported ip header protocol
325
+ int(194)
0 commit comments