Révision c2407e21
Ajouté par Ermal il y a presque 10 ans
pfPorts/php55-pfSense-module/files/pfSense.c | ||
---|---|---|
744 | 744 |
long mask = 0, table = 0, pipe = 0, zone = 0; |
745 | 745 |
char *ip, *mac = NULL, *p; |
746 | 746 |
int ip_len, mac_len = 0; |
747 |
long action = IP_FW_TABLE_ADD; |
|
747 |
long action = IP_FW_TABLE_XADD;
|
|
748 | 748 |
int err; |
749 | 749 |
|
750 |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llls|l!sl", &zone, &action, &table, &ip, &ip_len, &mask, &mac, &mac_len, &pipe) == FAILURE) {
|
|
750 |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llls|lsl", &zone, &action, &table, &ip, &ip_len, &mask, &mac, &mac_len, &pipe) == FAILURE) { |
|
751 | 751 |
RETURN_FALSE; |
752 | 752 |
} |
753 | 753 |
|
... | ... | |
818 | 818 |
long action = IP_FW_TABLE_ADD; |
819 | 819 |
int err; |
820 | 820 |
|
821 |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "slls|l!sl", &zone, &zone_len, &action, &table, &ip, &ip_len, &mask, &mac, &mac_len, &pipe) == FAILURE) {
|
|
821 |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "slls|lsl", &zone, &zone_len, &action, &table, &ip, &ip_len, &mask, &mac, &mac_len, &pipe) == FAILURE) { |
|
822 | 822 |
RETURN_FALSE; |
823 | 823 |
} |
824 | 824 |
|
... | ... | |
866 | 866 |
long mask = 0, table = 0, zone = 0; |
867 | 867 |
char *ip, *mac = NULL, *p; |
868 | 868 |
int ip_len, mac_len = 0; |
869 |
long action = IP_FW_TABLE_ADD; |
|
869 |
long action = IP_FW_TABLE_XADD;
|
|
870 | 870 |
int err; |
871 | 871 |
|
872 |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llls!s|l", &zone, &action, &table, &ip, &ip_len, &mac, &mac_len, &mask) == FAILURE) {
|
|
872 |
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llls|sl", &zone, &action, &table, &ip, &ip_len, &mac, &mac_len, &mask) == FAILURE) {
|
|
873 | 873 |
RETURN_FALSE; |
874 | 874 |
} |
875 | 875 |
|
Formats disponibles : Unified diff
Correct some argument parsing.