
radius_put_vendor_attr 함수는 Radius 서버에 특정한 Attribute를 추가하는 데 사용됩니다.
이 함수는 다음과 같은 파라미터를 받습니다.
- attr: 추가할 Attribute
- vendor: Attribute의 Vendor ID
- type: Attribute의 Type
- value: Attribute의 Value
이 함수를 사용할 때 제대로 작동하도록 설정해야 하는 사항은 다음과 같습니다.
- Radius 서버의 Vendor ID와 Attribute의 Vendor ID가 일치해야 합니다.
- Attribute의 Type과 Value가 올바르게 설정되어야 합니다.
- Radius 서버의 Attribute가 올바르게 구성되어야 합니다.
예를 들어, 다음과 같이 radius_put_vendor_attr 함수를 사용할 수 있습니다.
#hostingforum.kr
c
radius_put_vendor_attr(&request, "Vendor-Id", 1, "Attribute-Type", 1, "Attribute-Value", 10);
이 코드는 Radius 서버에 "Attribute-Type"의 Attribute를 추가하고, Vendor ID는 1, Type은 1, Value은 10으로 설정합니다.
2025-03-16 23:33