diff options
author | Daiyuu Nobori <da.git@softether.co.jp> | 2016-11-27 11:55:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-27 11:55:04 +0300 |
commit | 5f8ce287c3f61d089b5122efd7be5b8fc997bbed (patch) | |
tree | 04022ff0197d72e56d0ade000b960a6eb5aa6735 /src/Cedar/Protocol.c | |
parent | 697bff4023d778acfcf5de5266ccaaaf0c626573 (diff) | |
parent | 03ffd7535ac3ecb0b5985ab919ed3f50fa6aa7dd (diff) |
Merge pull request #133 from yehorov/master
Add the possibility to send the Virtual Hub Name to an external DHCP server
Diffstat (limited to 'src/Cedar/Protocol.c')
-rw-r--r-- | src/Cedar/Protocol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index e0736060..f11d5957 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -1655,6 +1655,10 @@ bool ServerAccept(CONNECTION *c) {
radius_login_opt.In_CheckVLanId = hub->Option->AssignVLanIdByRadiusAttribute;
radius_login_opt.In_DenyNoVlanId = hub->Option->DenyAllRadiusLoginWithNoVlanAssign;
+ if (hub->Option->UseHubNameAsRadiusNasId == true)
+ {
+ StrCpy(radius_login_opt.NasId, sizeof(radius_login_opt.NasId), hubname);
+ }
}
// Get the various flags
|