Révision eac20383
Ajouté par Ermal il y a presque 10 ans
pfPorts/php55-pfSense-module/files/pfSense.c | ||
---|---|---|
893 | 893 |
xent->masklen = 32; |
894 | 894 |
|
895 | 895 |
if (mac_len > 0) { |
896 |
if (ether_aton_r(mac, (struct ether_addr *)&xent->k.mix.mac) == NULL)
|
|
896 |
if (ether_aton_r(mac, (struct ether_addr *)&xent->mac_addr) == NULL)
|
|
897 | 897 |
RETURN_FALSE; |
898 |
xent->masklen += ETHER_ADDR_LEN; |
|
898 |
//xent->masklen += ETHER_ADDR_LEN;
|
|
899 | 899 |
} |
900 | 900 |
|
901 |
xent->type = IPFW_TABLE_MIX;
|
|
901 |
xent->type = IPFW_TABLE_CIDR;
|
|
902 | 902 |
size = sizeof(*op3) + sizeof(*xent); |
903 | 903 |
if (getsockopt(PFSENSE_G(ipfw), IPPROTO_IP, IP_FW3, op3, &size) < 0) { |
904 | 904 |
efree(op3); |
Formats disponibles : Unified diff
Correct module code to work correctly for the tables on IPFW with corret type.