Skip to content

Commit a77ac6f

Browse files
committed
ext/sockets: adding IPPROTO_ICMP* constants for socket creations.
Is to create socket for Internet Control Message Protocol context. Due to their nature, they are meant to be used via raw sockets rather than TCP/UDP.
1 parent 9ebbe1e commit a77ac6f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

ext/sockets/sockets.stub.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,20 @@
16471647
*/
16481648
const SOL_UDPLITE = UNKNOWN;
16491649
#endif
1650+
#ifdef IPPROTO_ICMP
1651+
/**
1652+
* @var int
1653+
* @cvalue IPPROTO_ICMP
1654+
*/
1655+
const IPPROTO_ICMP = UNKNOWN;
1656+
#endif
1657+
#ifdef IPPROTO_ICMPV6
1658+
/**
1659+
* @var int
1660+
* @cvalue IPPROTO_ICMPV6
1661+
*/
1662+
const IPPROTO_ICMPV6 = UNKNOWN;
1663+
#endif
16501664

16511665
#ifdef HAVE_IPV6
16521666
/**

ext/sockets/sockets_arginfo.h

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)