| 430 | } |
| 431 | |
| 432 | static int |
| 433 | carp_hmac_verify(struct carp_softc *sc, uint32_t counter[2], |
| 434 | unsigned char md[20]) |
| 435 | { |
| 436 | unsigned char md2[20]; |
| 437 | |
| 438 | CARP_LOCK_ASSERT(sc); |
| 439 | |
| 440 | carp_hmac_generate(sc, counter, md2); |
| 441 | |
| 442 | return (bcmp(md, md2, sizeof(md2))); |
| 443 | } |
| 444 | |
| 445 | /* |
| 446 | * process input packet. |
no test coverage detected