public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* inet_addr?
@ 2011-06-24 16:27 Paddie O'Brien
  2011-06-24 17:34 ` inet_addr? William Cohen
  0 siblings, 1 reply; 4+ messages in thread
From: Paddie O'Brien @ 2011-06-24 16:27 UTC (permalink / raw)
  To: systemtap

Hi,

Is there a systemtap equivalent of inet_addr?

Thanks,
P

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: inet_addr?
  2011-06-24 16:27 inet_addr? Paddie O'Brien
@ 2011-06-24 17:34 ` William Cohen
       [not found]   ` <BANLkTinFp6DLkKr0U-dOkoFLt1DuuQzzTA@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: William Cohen @ 2011-06-24 17:34 UTC (permalink / raw)
  To: Paddie O'Brien; +Cc: systemtap

On 06/24/2011 12:26 PM, Paddie O'Brien wrote:
> Hi,
> 
> Is there a systemtap equivalent of inet_addr?
> 
> Thanks,
> P

Hi Paddie,

There are functions for dealing with ip addresses. There is documentation describing them in: 

http://sourceware.org/systemtap/tapsets/

You might take a look at the examples to see how the functions are used in the network examples:


http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=tree;f=testsuite/systemtap.examples/network;h=9283098eb64811d38fdca98104d5afcb63a7f6e0;hb=HEAD


-Will

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: inet_addr?
       [not found]   ` <BANLkTinFp6DLkKr0U-dOkoFLt1DuuQzzTA@mail.gmail.com>
@ 2011-06-27 19:19     ` William Cohen
  2011-06-28  9:46       ` inet_addr? Paddie O'Brien
  0 siblings, 1 reply; 4+ messages in thread
From: William Cohen @ 2011-06-27 19:19 UTC (permalink / raw)
  To: Paddie O'Brien; +Cc: SystemTAP

On 06/27/2011 07:19 AM, Paddie O'Brien wrote:
> Thanks Will.
> 
> Didn't find the code to go from string to ip address in the tapsets
> but found some code to do it in the tcpipstat.stp example.

Hi,

Was the example example code in tcpipstat.stp sufficient for what you are doing? Or did you have to rewrite a lot?

> 
> (Perhaps it should be in a tapset?)
> 
> P

Any suggestions on what this tapset interface should look like?

-Will

> 
> On Fri, Jun 24, 2011 at 6:34 PM, William Cohen <wcohen@redhat.com> wrote:
>> On 06/24/2011 12:26 PM, Paddie O'Brien wrote:
>>> Hi,
>>>
>>> Is there a systemtap equivalent of inet_addr?
>>>
>>> Thanks,
>>> P
>>
>> Hi Paddie,
>>
>> There are functions for dealing with ip addresses. There is documentation describing them in:
>>
>> http://sourceware.org/systemtap/tapsets/
>>
>> You might take a look at the examples to see how the functions are used in the network examples:
>>
>>
>> http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=tree;f=testsuite/systemtap.examples/network;h=9283098eb64811d38fdca98104d5afcb63a7f6e0;hb=HEAD
>>
>>
>> -Will
>>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: inet_addr?
  2011-06-27 19:19     ` inet_addr? William Cohen
@ 2011-06-28  9:46       ` Paddie O'Brien
  0 siblings, 0 replies; 4+ messages in thread
From: Paddie O'Brien @ 2011-06-28  9:46 UTC (permalink / raw)
  To: William Cohen; +Cc: SystemTAP

The code in tcpipstat.stp is fine for my purposes. It would
require some work to have it mirror POSIX's inet_addr
however. The interface would simply be:

inet_addr:long(addr:string)

On Mon, Jun 27, 2011 at 8:19 PM, William Cohen <wcohen@redhat.com> wrote:
> On 06/27/2011 07:19 AM, Paddie O'Brien wrote:
>> Thanks Will.
>>
>> Didn't find the code to go from string to ip address in the tapsets
>> but found some code to do it in the tcpipstat.stp example.
>
> Hi,
>
> Was the example example code in tcpipstat.stp sufficient for what you are doing? Or did you have to rewrite a lot?
>
>>
>> (Perhaps it should be in a tapset?)
>>
>> P
>
> Any suggestions on what this tapset interface should look like?
>
> -Will
>
>>
>> On Fri, Jun 24, 2011 at 6:34 PM, William Cohen <wcohen@redhat.com> wrote:
>>> On 06/24/2011 12:26 PM, Paddie O'Brien wrote:
>>>> Hi,
>>>>
>>>> Is there a systemtap equivalent of inet_addr?
>>>>
>>>> Thanks,
>>>> P
>>>
>>> Hi Paddie,
>>>
>>> There are functions for dealing with ip addresses. There is documentation describing them in:
>>>
>>> http://sourceware.org/systemtap/tapsets/
>>>
>>> You might take a look at the examples to see how the functions are used in the network examples:
>>>
>>>
>>> http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=tree;f=testsuite/systemtap.examples/network;h=9283098eb64811d38fdca98104d5afcb63a7f6e0;hb=HEAD
>>>
>>>
>>> -Will
>>>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-28  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-24 16:27 inet_addr? Paddie O'Brien
2011-06-24 17:34 ` inet_addr? William Cohen
     [not found]   ` <BANLkTinFp6DLkKr0U-dOkoFLt1DuuQzzTA@mail.gmail.com>
2011-06-27 19:19     ` inet_addr? William Cohen
2011-06-28  9:46       ` inet_addr? Paddie O'Brien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).