mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 05:18:47 +00:00
Merge pull request #16139 from donaldsharp/mroute_error
pimd: Give a clearer warning when the kernel is not compiled right
This commit is contained in:
commit
8954dd3a6b
@ -56,10 +56,14 @@ int pim_mroute_set(struct pim_instance *pim, int enable)
|
||||
err = setsockopt(pim->mroute_socket, PIM_IPPROTO,
|
||||
MRT_TABLE, &data, data_len);
|
||||
if (err) {
|
||||
zlog_warn(
|
||||
"%s %s: failure: setsockopt(fd=%d,PIM_IPPROTO, MRT_TABLE=%d): errno=%d: %s",
|
||||
__FILE__, __func__, pim->mroute_socket,
|
||||
data, errno, safe_strerror(errno));
|
||||
if (err == ENOPROTOOPT)
|
||||
zlog_err("%s Kernel is not compiled with CONFIG_IP_MROUTE_MULTIPLE_TABLES and vrf's will not work",
|
||||
__func__);
|
||||
else
|
||||
zlog_warn("%s %s: failure: setsockopt(fd=%d,PIM_IPPROTO, MRT_TABLE=%d): errno=%d: %s",
|
||||
__FILE__, __func__,
|
||||
pim->mroute_socket, data,
|
||||
errno, safe_strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user