File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
40
40
var_dump ($ addr );
41
41
var_dump ($ rsp );
42
42
43
+ var_dump (bin2hex ($ rsp ->rawPacket ));
44
+ var_dump (bin2hex ($ rsp ->payload ->rawPacket ));
45
+
43
46
socket_close ($ s_c );
44
47
// purposely unsupported ethernet protocol (ARP)
45
48
@@ -140,6 +143,9 @@ if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
140
143
var_dump ($ addr );
141
144
var_dump ($ rsp );
142
145
146
+ var_dump (bin2hex ($ rsp ->rawPacket ));
147
+ var_dump (bin2hex ($ rsp ->payload ->rawPacket ));
148
+
143
149
$ first_4_bytes = hex2bin ("60000000 " );
144
150
145
151
$ payload_len = hex2bin ("0014 " );
@@ -275,6 +281,8 @@ object(Socket\EthernetPacket)#3 (7) {
275
281
NULL
276
282
}
277
283
}
284
+ string(120) "ffffffffffff000000000000006041414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"
285
+ string(28) "4141414141414141414141414141"
278
286
int(60)
279
287
unsupported ethernet protocol
280
288
int(60)
@@ -318,6 +326,8 @@ object(Socket\EthernetPacket)#8 (7) {
318
326
}
319
327
}
320
328
}
329
+ string(144) "ffffffffffff00000000000086dd600000000014064000000000000000000000000000000001000000000000000000000000000000013039005000000000000000005002ffff0000"
330
+ string(10320) "600000000014064000000000000000000000000000000001000000000000000000000000000000013039005000000000000000005002ffff000000000000000000000000000000000000000000000000000000000000000000006800000000000000812c%a"
321
331
int(74)
322
332
unsupported ipv6 header protocol
323
333
int(84)
Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32-bit only");
81
81
var_dump ($ rsp ->ethProtocol === 0x0060 );
82
82
var_dump ($ rsp ->payload ->rawPacket !== NULL );
83
83
84
+ var_dump (bin2hex ($ rsp ->rawPacket ));
85
+ var_dump (bin2hex ($ rsp ->payload ->rawPacket ));
86
+
84
87
socket_close ($ sender );
85
88
socket_close ($ receiver );
86
89
?>
You can’t perform that action at this time.
0 commit comments