[sr-dev] git:5.4:4f00ba42: auth_radius, misc_radius: Adds VENDOR() definition if the freeradius-client.h does not contain one already.
Henning Westerholt
hw at skalatan.de
Wed Oct 28 18:57:44 CET 2020
Module: kamailio
Branch: 5.4
Commit: 4f00ba425051718ecbf426591fdb14268ae92d94
URL: https://github.com/kamailio/kamailio/commit/4f00ba425051718ecbf426591fdb14268ae92d94
Author: Paris Stamatopoulos <paris at forin.gr>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2020-10-28T17:57:35Z
auth_radius, misc_radius: Adds VENDOR() definition if the freeradius-client.h does not contain one already.
(cherry picked from commit 9978e00405cac89cc65d2d8a863128dd2814d7fd)
---
Modified: src/modules/misc_radius/radius.h
---
Diff: https://github.com/kamailio/kamailio/commit/4f00ba425051718ecbf426591fdb14268ae92d94.diff
Patch: https://github.com/kamailio/kamailio/commit/4f00ba425051718ecbf426591fdb14268ae92d94.patch
---
diff --git a/src/modules/misc_radius/radius.h b/src/modules/misc_radius/radius.h
index 120bb80caa..c5e9525715 100644
--- a/src/modules/misc_radius/radius.h
+++ b/src/modules/misc_radius/radius.h
@@ -42,6 +42,9 @@
#else
#include <freeradius-client.h>
#define DEFAULT_RADIUSCLIENT_CONF ""
+#ifndef VENDOR
+#define VENDOR(x) (((x) >> 16) & 0xffff)
+#endif
#endif
More information about the sr-dev
mailing list