Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6197 > unrolled thread

Getting the subnet subnet of an IP address in C++

Started byyagru_alvarez <jmalvarez@estudiantes.uci.cu>
First post2011-06-04 06:52 -0700
Last post2011-06-06 02:39 -0700
Articles 9 — 7 participants

Back to article view | Back to comp.lang.c++


Contents

  Getting the subnet subnet of an IP address in C++ yagru_alvarez <jmalvarez@estudiantes.uci.cu> - 2011-06-04 06:52 -0700
    Re: Getting the subnet subnet of an IP address in C++ Ben Cottrell <email@address.invalid> - 2011-06-05 13:08 +0100
    Re: Getting the subnet subnet of an IP address in C++ "Paul" <pchristor@yahoo.co.uk> - 2011-06-05 19:36 +0100
      Re: Getting the subnet subnet of an IP address in C++ Pete Becker <pete@versatilecoding.com> - 2011-06-05 08:43 -1000
        Re: Getting the subnet subnet of an IP address in C++ "Paul" <pchristor@yahoo.co.uk> - 2011-06-05 22:50 +0100
      Re: Getting the subnet subnet of an IP address in C++ Joshua Maurice <joshuamaurice@gmail.com> - 2011-06-05 15:13 -0700
        Re: Getting the subnet subnet of an IP address in C++ "Paul" <pchristor@yahoo.co.uk> - 2011-06-05 23:29 +0100
    Re: Getting the subnet subnet of an IP address in C++ "Fred Zwarts \(KVI\)" <F.Zwarts@KVI.nl> - 2011-06-06 09:12 +0200
    Re: Getting the subnet subnet of an IP address in C++ Michael Doubez <michael.doubez@free.fr> - 2011-06-06 02:39 -0700

#6197 — Getting the subnet subnet of an IP address in C++

Fromyagru_alvarez <jmalvarez@estudiantes.uci.cu>
Date2011-06-04 06:52 -0700
SubjectGetting the subnet subnet of an IP address in C++
Message-ID<b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com>
There is any way to obtain for an IP address that I have to pass as
parameter the value of the subnet?

[toc] | [next] | [standalone]


#6238

FromBen Cottrell <email@address.invalid>
Date2011-06-05 13:08 +0100
Message-ID<isfrko$24d$1@dont-email.me>
In reply to#6197
yagru_alvarez wrote:
> There is any way to obtain for an IP address that I have to pass as
> parameter the value of the subnet?

Normally a network administrator would know the subnet mask(s) 
associated with a range of IP addresses under their control.   They 
would have needed to configure router(s) to control traffic in/out of 
the subnet.

[toc] | [prev] | [next] | [standalone]


#6248

From"Paul" <pchristor@yahoo.co.uk>
Date2011-06-05 19:36 +0100
Message-ID<81QGp.739$NX1.264@newsfe18.ams2>
In reply to#6197
"yagru_alvarez" <jmalvarez@estudiantes.uci.cu> wrote in message 
news:b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com...
> There is any way to obtain for an IP address that I have to pass as
> parameter the value of the subnet?
>
I doesn't thinks there ares any reasonableness addresses for this.
These best ways forwards are to gathers all the possibles masks and 
rerouters them to an appropriates mistakes and hence gains advancedness 
awareness for the technicalities.

[toc] | [prev] | [next] | [standalone]


#6249

FromPete Becker <pete@versatilecoding.com>
Date2011-06-05 08:43 -1000
Message-ID<2011060508431677464-pete@versatilecodingcom>
In reply to#6248
On 2011-06-05 08:36:48 -1000, Paul said:

> "yagru_alvarez" <jmalvarez@estudiantes.uci.cu> wrote in message 
> news:b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com...
There 
> 
>> is any way to obtain for an IP address that I have to pass as
>> parameter the value of the subnet?
>> 
> I doesn't thinks there ares any reasonableness addresses for this.
> These best ways forwards are to gathers all the possibles masks and 
> rerouters them to an appropriates mistakes and hence gains advancedness 
> awareness for the technicalities.

plonk

-- 
  Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The 
Standard C++ Library Extensions: a Tutorial and Reference 
(www.petebecker.com/tr1book)

[toc] | [prev] | [next] | [standalone]


#6251

From"Paul" <pchristor@yahoo.co.uk>
Date2011-06-05 22:50 +0100
Message-ID<JSSGp.1719$nY6.753@newsfe23.ams2>
In reply to#6249
"Pete Becker" <pete@versatilecoding.com> wrote in message 
news:2011060508431677464-pete@versatilecodingcom...
> On 2011-06-05 08:36:48 -1000, Paul said:
>
>> "yagru_alvarez" <jmalvarez@estudiantes.uci.cu> wrote in message 
>> news:b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com...
> There
>>
>>> is any way to obtain for an IP address that I have to pass as
>>> parameter the value of the subnet?
>>>
>> I doesn't thinks there ares any reasonableness addresses for this.
>> These best ways forwards are to gathers all the possibles masks and 
>> rerouters them to an appropriates mistakes and hence gains advancedness 
>> awareness for the technicalities.
>
> plonk
>
Plonk your plonk.

[toc] | [prev] | [next] | [standalone]


#6252

FromJoshua Maurice <joshuamaurice@gmail.com>
Date2011-06-05 15:13 -0700
Message-ID<dbe630ca-a261-452c-a173-760b0bd6a5cd@35g2000prp.googlegroups.com>
In reply to#6248
On Jun 5, 11:36 am, "Paul" <pchris...@yahoo.co.uk> wrote:
> "yagru_alvarez" <jmalva...@estudiantes.uci.cu> wrote in message
>
> news:b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com...> There is any way to obtain for an IP address that I have to pass as
> > parameter the value of the subnet?
>
> I doesn't thinks there ares any reasonableness addresses for this.
> These best ways forwards are to gathers all the possibles masks and
> rerouters them to an appropriates mistakes and hence gains advancedness
> awareness for the technicalities.

Nope. I take that back. He's just a really, really good and dedicated
troll. OP, please ignore Paul.

[toc] | [prev] | [next] | [standalone]


#6253

From"Paul" <pchristor@yahoo.co.uk>
Date2011-06-05 23:29 +0100
Message-ID<hrTGp.1524$Zn.195@newsfe30.ams2>
In reply to#6252
"Joshua Maurice" <joshuamaurice@gmail.com> wrote in message 
news:dbe630ca-a261-452c-a173-760b0bd6a5cd@35g2000prp.googlegroups.com...
On Jun 5, 11:36 am, "Paul" <pchris...@yahoo.co.uk> wrote:
> "yagru_alvarez" <jmalva...@estudiantes.uci.cu> wrote in message
>
> news:b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com...> 
> There is any way to obtain for an IP address that I have to pass as
> > parameter the value of the subnet?
>
> I doesn't thinks there ares any reasonableness addresses for this.
> These best ways forwards are to gathers all the possibles masks and
> rerouters them to an appropriates mistakes and hence gains advancedness
> awareness for the technicalities.

--Nope. I take that back. He's just a really, really good and dedicated
--troll. OP, please ignore Paul.

Like you can make sense of the OP's question, ya right!
I'd be surprised if you even knew what a protocol was never mind an IP 
address ;-)

[toc] | [prev] | [next] | [standalone]


#6261

From"Fred Zwarts \(KVI\)" <F.Zwarts@KVI.nl>
Date2011-06-06 09:12 +0200
Message-ID<ishukr$1js$1@news.albasani.net>
In reply to#6197
"yagru_alvarez"  wrote in message 
news:b22f692f-92c4-4d2e-9de1-0252d56ef9a6@e35g2000yqc.googlegroups.com...

>There is any way to obtain for an IP address that I have to pass as
>parameter the value of the subnet?

Please define "the subnet".
For IPv6 the local network is defined by the upper 64 bits.
For IPv4 there are no such simple rules.

[toc] | [prev] | [next] | [standalone]


#6272

FromMichael Doubez <michael.doubez@free.fr>
Date2011-06-06 02:39 -0700
Message-ID<bdcce01e-6527-4eff-aaaa-a28c8f524c17@ct4g2000vbb.googlegroups.com>
In reply to#6197
On 4 juin, 15:52, yagru_alvarez <jmalva...@estudiantes.uci.cu> wrote:
> There is any way to obtain for an IP address that I have to pass as
> parameter the value of the subnet?

Use a CIDR notation for your parameter.
ex:
192.168.1.42/24

If you don't understand what I mean, ask in a network related
newsgroup, because you are off-topic here.

--
Michael

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c++


csiph-web