Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: How to get allocated ip number

From: g:santilli:tiscalinet:it at: 16-Oct-2002 15:17

Hi Scott, On Wednesday, October 16, 2002, 1:58:29 PM, you wrote: GSJ> What I am curious about is the two letter code that preceeds the interface GSJ> name, like: GSJ> lox GSJ> ifxxxxxxxxx GSJ> pppx GSJ> I suspect that RT decided to give a two letter code to each type of tcp GSJ> interface. I don't think so. That's the name returned by the OS, I think. (Well, maybe on some platform is REBOL that is giving it a name...) GSJ> If there is solid information somewhere about this coding convention, then GSJ> Michel may be able to develop a generic approach to deciding what ip belongs GSJ> to which tcp interface. Otherwise, I am guessing that your trick documented GSJ> above is the easiest solution. On linux, you get eth0, eth1 etc. for you ethernet adapters, ppp0, etc. for PPP connections, lo0 etc. for local loopback. There could be others, and I assume the name is given by the kernel (i.e. the module handling the interface). GSJ> I fear I still not be adequately articulating my question(s), but the GSJ> question was more expressing curiousity over the schema that RT chose. Dunno if it's really RT. On unix at least it is not; on Windows maybe the name is given by REBOL, or maybe the OS gives them names too; anyone knows? Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r