Skip to content

Commit 3177aed

Browse files
committed
fix attempt
1 parent 66bfd40 commit 3177aed

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

ext/sockets/tests/socket_afpacket32.phpt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,45 @@ int(%d)
127127
invalid transport header length
128128
int(60)
129129
unsupported ethernet protocol
130+
int(84)
131+
unsupported ip header protocol
132+
int(%d)
133+
int(%d)
134+
string(%d) "%s"
135+
object(Socket\EthernetPacket)#%d (7) {
136+
["headerSize"]=>
137+
int(%d)
138+
["rawPacket"]=>
139+
string(%d) "%r(.|\n)*?"%r
140+
["socket"]=>
141+
object(Socket)#%d (0) {
142+
}
143+
["ethProtocol"]=>
144+
int(2048)
145+
["srcMac"]=>
146+
string(%d) "%s"
147+
["dstMac"]=>
148+
string(%d) "%s"
149+
["payload"]=>
150+
object(Socket\Ipv4Packet)#%d (5) {
151+
["headerSize"]=>
152+
int(%d)
153+
["rawPacket"]=>
154+
string(%d) "%s"
155+
["srcAddr"]=>
156+
string(%d) "%s.%s.%s.%s"
157+
["dstAddr"]=>
158+
string(%d) "%s.%s.%s.%s"
159+
["payload"]=>
160+
object(Socket\TcpPacket)#%d (4) {
161+
["headerSize"]=>
162+
int(%d)
163+
["rawPacket"]=>
164+
string(%d) "%r(.|\n)*?"%r
165+
["srcPort"]=>
166+
int(%d)
167+
["dstPort"]=>
168+
int(%d)
169+
}
170+
}
171+
}

0 commit comments

Comments
 (0)