ndisc-option: drop unused function

This commit is contained in:
Yu Watanabe
2024-02-29 12:43:03 +09:00
parent c0edd6b3b3
commit 0216c67269
2 changed files with 0 additions and 11 deletions

View File

@@ -649,16 +649,6 @@ static const uint8_t prefix_length_code_to_prefix_length[_PREFIX_LENGTH_CODE_MAX
[PREFIX_LENGTH_CODE_32] = 32,
};
int pref64_plc_to_prefix_length(uint16_t plc, uint8_t *ret) {
plc &= PREF64_PLC_MASK;
if (plc >= _PREFIX_LENGTH_CODE_MAX)
return -EINVAL;
if (ret)
*ret = prefix_length_code_to_prefix_length[plc];
return 0;
}
int pref64_prefix_length_to_plc(uint8_t prefixlen, uint8_t *ret) {
for (size_t i = 0; i < ELEMENTSOF(prefix_length_code_to_prefix_length); i++)
if (prefix_length_code_to_prefix_length[i] == prefixlen) {

View File

@@ -88,7 +88,6 @@ struct nd_opt_prefix64_info {
uint8_t prefix[12];
} _packed_;
int pref64_plc_to_prefix_length(uint16_t plc, uint8_t *ret);
int pref64_prefix_length_to_plc(uint8_t prefixlen, uint8_t *ret);
sd_ndisc_option* ndisc_option_free(sd_ndisc_option *option);