Discussion:
UDP source ip ?
Sacha De Vos
2016-06-13 23:58:12 UTC
Permalink
Hello,

I'm trying to implement a radius server. The radius protocol goes over UDP
and requires knowledge of the IP address of the sender.
On my local tests I do indeed receive the radius requests from a locally
run telephony switch, the UDP packets are well received, and have this form
: {:port 60228, host "cark", :message <the buffer>}.
"cark" is the name of my computer, and I guess that's Aleph's way of giving
me the sender IP, but I really would like to access the bare IP address
instead of that.
Is this possible with aleph, or am I missing some obvious way to get to it ?

Thanks in advance,
Sacha
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Zach Tellman
2016-06-14 00:10:38 UTC
Permalink
If you call `(-> udp-packet .packet .sender)` it will give you a Java
InetSocketAddress.
Post by Sacha De Vos
Hello,
I'm trying to implement a radius server. The radius protocol goes over UDP
and requires knowledge of the IP address of the sender.
On my local tests I do indeed receive the radius requests from a locally
run telephony switch, the UDP packets are well received, and have this form
: {:port 60228, host "cark", :message <the buffer>}.
"cark" is the name of my computer, and I guess that's Aleph's way of
giving me the sender IP, but I really would like to access the bare IP
address instead of that.
Is this possible with aleph, or am I missing some obvious way to get to it ?
Thanks in advance,
Sacha
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sacha De Vos
2016-06-14 00:15:23 UTC
Permalink
That was some fast reply =)

Indeed that works, thanks a bunch !
Post by Zach Tellman
If you call `(-> udp-packet .packet .sender)` it will give you a Java
InetSocketAddress.
Post by Sacha De Vos
Hello,
I'm trying to implement a radius server. The radius protocol goes over
UDP and requires knowledge of the IP address of the sender.
On my local tests I do indeed receive the radius requests from a locally
run telephony switch, the UDP packets are well received, and have this form
: {:port 60228, host "cark", :message <the buffer>}.
"cark" is the name of my computer, and I guess that's Aleph's way of
giving me the sender IP, but I really would like to access the bare IP
address instead of that.
Is this possible with aleph, or am I missing some obvious way to get to it ?
Thanks in advance,
Sacha
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...