| 87 | "_hash_5tuple_ipv6 size is wrong"); |
| 88 | |
| 89 | uint32_t |
| 90 | fib6_calc_software_hash(const struct in6_addr *src, const struct in6_addr *dst, |
| 91 | unsigned short src_port, unsigned short dst_port, char proto, |
| 92 | uint32_t *phashtype) |
| 93 | { |
| 94 | struct _hash_5tuple_ipv6 data; |
| 95 | |
| 96 | data.src = *src; |
| 97 | data.dst = *dst; |
| 98 | data.src_port = src_port; |
| 99 | data.dst_port = dst_port; |
| 100 | data.proto = proto; |
| 101 | data.spare[0] = data.spare[1] = data.spare[2] = 0; |
| 102 | |
| 103 | *phashtype = M_HASHTYPE_OPAQUE_HASH; |
| 104 | |
| 105 | return (toeplitz_hash(MPATH_ENTROPY_KEY_LEN, mpath_entropy_key, |
| 106 | sizeof(data), (uint8_t *)&data)); |
| 107 | } |
| 108 | #endif |
| 109 | |
| 110 | /* |
no test coverage detected