detect: constify address match functions

pull/3013/head
Victor Julien 7 years ago
parent 63291d0f01
commit c79b9cb317

@ -1684,7 +1684,8 @@ int DetectAddressCmp(DetectAddress *a, DetectAddress *b)
*
* \todo array should be ordered, so we can break out of the loop
*/
int DetectAddressMatchIPv4(DetectMatchAddressIPv4 *addrs, uint16_t addrs_cnt, Address *a)
int DetectAddressMatchIPv4(const DetectMatchAddressIPv4 *addrs,
uint16_t addrs_cnt, const Address *a)
{
SCEnter();
@ -1718,7 +1719,8 @@ int DetectAddressMatchIPv4(DetectMatchAddressIPv4 *addrs, uint16_t addrs_cnt, Ad
*
* \todo array should be ordered, so we can break out of the loop
*/
int DetectAddressMatchIPv6(DetectMatchAddressIPv6 *addrs, uint16_t addrs_cnt, Address *a)
int DetectAddressMatchIPv6(const DetectMatchAddressIPv6 *addrs,
uint16_t addrs_cnt, const Address *a)
{
SCEnter();

@ -52,8 +52,8 @@ DetectAddress *DetectAddressCopy(DetectAddress *);
void DetectAddressPrint(DetectAddress *);
int DetectAddressCmp(DetectAddress *, DetectAddress *);
int DetectAddressMatchIPv4(DetectMatchAddressIPv4 *, uint16_t, Address *);
int DetectAddressMatchIPv6(DetectMatchAddressIPv6 *, uint16_t, Address *);
int DetectAddressMatchIPv4(const DetectMatchAddressIPv4 *, uint16_t, const Address *);
int DetectAddressMatchIPv6(const DetectMatchAddressIPv6 *, uint16_t, const Address *);
int DetectAddressTestConfVars(void);

Loading…
Cancel
Save