...
При необходимости, данные параметры можно установить вручную в обработчике процессора протокола, в методе preprocessDhcpRequest (аналогично InetRadiusProcessor).
Блок кода | ||||
---|---|---|---|---|
| ||||
final DhcpOption agentRemoteId = request.getSubOption( option82RemoteIdCode ); if( agentRemoteId != null ) { byte[] value = new byte[option82RemoteIdLength]; System.arraycopy( agentRemoteId.value, option82RemoteIdPosition, value, 0, option82RemoteIdLength ); request.setOption( InetDhcpProcessor.AGENT_REMOTE_ID, value ); } final DhcpOption vlanId = request.getSubOption( option82VlanIdCode ); if( vlanId != null ) { int vlan = InetUtils.parseInt( vlanId.value, option82VlanIdPosition, option82VlanIdLength ); request.setOption( InetDhcpProcessor.VLAN_ID, vlan ); } |
...