Is there a way to determine the senders IP address from a udpsink?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to determine the senders IP address from a udpsink?

Wes Miller
Administrator
Hi All,

Is there a way to determine the senders IP address from a udpsink?
The inspect data for udpsrc does not list such a property.

Wes



CONFIDENTIALITY NOTE:

This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to determine the senders IP address from a udpsink?

Marco Ballesio
Hi,

On Fri, Sep 9, 2011 at 10:14 PM, Wesley J. Miller <[hidden email]> wrote:
> Hi All,
> Is there a way to determine the senders IP address from a udpsink?

I guess you meant udpsrc. Imo for the udpsink you wouldn't need a
GStreamer specific API ;)

> The inspect data for udpsrc does not list such a property.

Maybe you could make use of this:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstUriHandler.html#GstURIHandler-new-uri

Regards

>
> Wes
>
> ________________________________
> CONFIDENTIALITY NOTE:
>
> This e-mail and any attachments are confidential. If you are not the
> intended recipient, be aware that any disclosure, copying, distribution or
> use of this e-mail or any attachment is prohibited. If you have received
> this e-mail in error, please notify us immediately by returning it to the
> sender and delete this copy from your system. Thank you for your
> cooperation.
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [SPAM (Keyword)] - Re: Is there a way to determine the senders IP address from a udpsink?

Wes Miller
Administrator
Marco,

Yes, I meant udpsrc.  Late Friday brain death.

I guess I need a little more information.  Obviously I need to hook the
signal handler to something.  My first guess was the udpsrc.  Nope.
Didn't work.

So, my next guess is the GstURIHandler associated with the udpsrc.  Makes
more sense since the first returned parm is the handler that raised the
signal! So, how do I get the associated handler's "handle"?

Wes





On 9/9/11 4:28 PM, "Marco Ballesio" <[hidden email]> wrote:

>Hi,
>
>On Fri, Sep 9, 2011 at 10:14 PM, Wesley J. Miller <[hidden email]> wrote:
>> Hi All,
>> Is there a way to determine the senders IP address from a udpsink?
>
>I guess you meant udpsrc. Imo for the udpsink you wouldn't need a
>GStreamer specific API ;)
>
>> The inspect data for udpsrc does not list such a property.
>
>Maybe you could make use of this:
>
>http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gs
>treamer-GstUriHandler.html#GstURIHandler-new-uri
>
>Regards
>
>>
>> Wes
>>


CONFIDENTIALITY NOTE:

This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to determine the senders IP address from a udpsink?

Wim Taymans
In reply to this post by Wes Miller
On 09/09/2011 01:14 PM, Wesley J. Miller wrote:
> Hi All,
>
> Is there a way to determine the senders IP address from a udpsink?
> The inspect data for udpsrc does not list such a property.

Buffers from udpsrc extend from GstNetBuffer, which contains the remote
sender address. See -base/gst-libs/gst/netbuffer/gstnetbuffer.h for details.

Wim

>
> */Wes/*
>
>
> ------------------------------------------------------------------------
> CONFIDENTIALITY NOTE:
>
> This e-mail and any attachments are confidential. If you are not the
> intended recipient, be aware that any disclosure, copying, distribution
> or use of this e-mail or any attachment is prohibited. If you have
> received this e-mail in error, please notify us immediately by returning
> it to the sender and delete this copy from your system. Thank you for
> your cooperation.
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to determine the senders IP address from a udpsink?

Donny Viszneki
In reply to this post by Wes Miller
Keep in mind that it isn't hard to spoof this address.

On Fri, Sep 9, 2011 at 4:14 PM, Wesley J. Miller <[hidden email]> wrote:

> Hi All,
> Is there a way to determine the senders IP address from a udpsink?
> The inspect data for udpsrc does not list such a property.
>
> Wes
>
> ________________________________
> CONFIDENTIALITY NOTE:
>
> This e-mail and any attachments are confidential. If you are not the
> intended recipient, be aware that any disclosure, copying, distribution or
> use of this e-mail or any attachment is prohibited. If you have received
> this e-mail in error, please notify us immediately by returning it to the
> sender and delete this copy from your system. Thank you for your
> cooperation.
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>



--
http://codebad.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to determine the senders IP address from a udpsink?

Marco Ballesio
In reply to this post by Wes Miller
Hi Wes,

maybe you've already read Wim's reply, but the netbuffer approach is
definitely better:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstnetbuffer.html

Regards

> On Fri, Sep 9, 2011 at 11:34 PM, Wesley J. Miller <[hidden email]> wrote:
>> Marco,
>>
>> Yes, I meant udpsrc.  Late Friday brain death.
>>
>> I guess I need a little more information.  Obviously I need to hook the
>> signal handler to something.  My first guess was the udpsrc.  Nope.
>> Didn't work.
>>
>> So, my next guess is the GstURIHandler associated with the udpsrc.  Makes
>> more sense since the first returned parm is the handler that raised the
>> signal! So, how do I get the associated handler's "handle"?
>>
>> Wes
>>
>>
>>
>>
>>
>> On 9/9/11 4:28 PM, "Marco Ballesio" <[hidden email]> wrote:
>>
>>>Hi,
>>>
>>>On Fri, Sep 9, 2011 at 10:14 PM, Wesley J. Miller <[hidden email]> wrote:
>>>> Hi All,
>>>> Is there a way to determine the senders IP address from a udpsink?
>>>
>>>I guess you meant udpsrc. Imo for the udpsink you wouldn't need a
>>>GStreamer specific API ;)
>>>
>>>> The inspect data for udpsrc does not list such a property.
>>>
>>>Maybe you could make use of this:
>>>
>>>http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gs
>>>treamer-GstUriHandler.html#GstURIHandler-new-uri
>>>
>>>Regards
>>>
>>>>
>>>> Wes
>>>>
>>
>>
>> CONFIDENTIALITY NOTE:
>>
>> This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel