This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inet_addr?


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
>>>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]