# normal build.
#
ifneq "${WITH_RADIUS2}" ""
-SUBMAKEFILES := rlm_radius.mk
+TARGETNAME := rlm_radius
+TARGET := $(TARGETNAME)$(L)
+
+SOURCES := rlm_radius.c track.c
+
+TGT_PREREQS := libfreeradius-radius$(L) libfreeradius-bio-config$(L) libfreeradius-bio$(L)
+LOG_ID_LIB = 39
+
endif
uint32_t max_packet_size; //!< Our max packet size. may be different from the parent.
- fr_ipaddr_t src_ipaddr; //!< Source IP address. May be altered on bind
- //!< to be the actual IP address packets will be
- //!< sent on. This is why we can't use the inst
- //!< src_ipaddr field.
- uint16_t src_port; //!< Source port specific to this connection.
-
uint8_t *buffer; //!< Receive buffer.
size_t buflen; //!< Receive buffer length.
return; /* Wait to be signalled again */
case ECONNREFUSED:
- ERROR("%s - Failed reading response from socket: there is no server listening on %pV port %u",
- h->module_name, fr_box_ipaddr(h->inst->fd_config.dst_ipaddr), h->inst->fd_config.dst_port);
+ ERROR("%s - Failed reading response from socket: there is no server listening on outgoing connection %s",
+ h->module_name, h->name);
break;
default:
h->thread = thread;
h->inst = thread->inst;
h->module_name = h->inst->name;
- h->src_ipaddr = h->inst->fd_config.src_ipaddr;
- h->src_port = 0;
h->max_packet_size = h->inst->max_packet_size;
h->last_idle = fr_time();
*/
h->name = fr_asprintf(h, "proto %s local %pV port %u remote %pV port %u",
h->inst->fd_config.transport,
- fr_box_ipaddr(h->src_ipaddr), h->src_port,
- fr_box_ipaddr(h->inst->fd_config.dst_ipaddr), h->inst->fd_config.dst_port);
+ fr_box_ipaddr(h->fd_info->socket.inet.src_ipaddr), h->fd_info->socket.inet.src_port,
+ fr_box_ipaddr(h->fd_info->socket.inet.dst_ipaddr), h->fd_info->socket.inet.dst_port);
talloc_set_destructor(h, _udp_handle_free);