Skip to content

Commit e8e4066

Browse files
committed
fix attempt
1 parent 66bfd40 commit e8e4066

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

ext/sockets/tests/socket_afpacket32.phpt

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,47 @@ bool(true)
124124
string(2) "lo"
125125
int(%d)
126126
int(%d)
127-
invalid transport header length
128127
int(60)
129128
unsupported ethernet protocol
129+
int(84)
130+
unsupported ip header protocol
131+
int(%d)
132+
int(%d)
133+
string(%d) "%s"
134+
object(Socket\EthernetPacket)#7 (7) {
135+
["headerSize"]=>
136+
int(14)
137+
["rawPacket"]=>
138+
string(%d) "%s"
139+
["socket"]=>
140+
object(Socket)#8 (0) {
141+
}
142+
["ethProtocol"]=>
143+
int(2048)
144+
["srcMac"]=>
145+
string(%d) "%s"
146+
["dstMac"]=>
147+
string(%d) "%s"
148+
["payload"]=>
149+
object(Socket\Ipv4Packet)#4 (5) {
150+
["headerSize"]=>
151+
int(40)
152+
["rawPacket"]=>
153+
string(%d) "%s"
154+
["srcAddr"]=>
155+
string(%d) "%s"
156+
["dstAddr"]=>
157+
string(%d) "%s"
158+
["payload"]=>
159+
object(Socket\TcpPacket)#1 (4) {
160+
["headerSize"]=>
161+
int(20)
162+
["rawPacket"]=>
163+
string(%d) "%s"
164+
["srcPort"]=>
165+
int(16994)
166+
["dstPort"]=>
167+
int(16994)
168+
}
169+
}
170+
}

0 commit comments

Comments
 (0)