Here is some IP-address and Netmask using in target :
IP-address = 192.168.0.77
NetMask = 255.255.0.0
It seems that they are inconsistent, because
IP-address belongs to Class C, so its HostId contains 8 bits.
However, NetMask 255.255.0.0 allows 16 bits for HostId.
Does pSOS (or another RTOS) have to check such inconsistency?
Does pSOS check it?
===========================
Alex Vinokur
mailto:ale...@bigfoot.com
mailto:ale...@yahoo.com
http://up.to/alexvn
http://go.to/alexv_math
===========================
No problem - this is perfectly OK for CIDR (Classless Internet Domain
Routing).
Besides - there are 65536 addresses in the 192.168.x.y network.
Tauno Voipio
tauno voipio @ iki fi
Only by RFC and convention. It's up to you to follow best
practices.
> However, NetMask 255.255.0.0 allows 16 bits for HostId.
>
> Does pSOS (or another RTOS) have to check such inconsistency?
>
> Does pSOS check it?
>
If you want it to check for RFC compliance, you need to code
for that.
-parc
> Here is some IP-address and Netmask using in target :
> IP-address = 192.168.0.77
> NetMask = 255.255.0.0
> It seems that they are inconsistent, because
> IP-address belongs to Class C, so its HostId contains 8 bits.
> However, NetMask 255.255.0.0 allows 16 bits for HostId.
These is no inconsistenvu in the figures alone.
What you describe is a machine with an ip-address of 192.168.0.77
located on a network with 65535 possible hosts .
The netmask is used to describe how many hosts are directly reachable
on the same LAN-segment ( using straight cables, hubs switches/bridges)
> Does pSOS (or another RTOS) have to check such inconsistency?
Again, there is no inconsistency. You have to tell how large your
local segment is.
> Does pSOS check it?
> ===========================
> Alex Vinokur
> mailto:ale...@bigfoot.com
> mailto:ale...@yahoo.com
> http://up.to/alexvn
> http://go.to/alexv_math
> ===========================
--
Peter Håkanson
IPSec Sverige (At the Riverside of Gothenburg, home of Volvo)
Sorry about my e-mail address, but i'm trying to keep spam out.
Remove "icke-reklam" and it works.
OK; that's sometimes called a "supernet."
> It seems that they are inconsistent, because
> IP-address belongs to Class C, so its HostId contains 8 bits.
> However, NetMask 255.255.0.0 allows 16 bits for HostId.
No. That may have been true a very long time ago, but in the modern
world of CIDR, there's no such thing as a "Class C" address or a
natural netmask.
> Does pSOS (or another RTOS) have to check such inconsistency?
>
> Does pSOS check it?
If it does, it's broken.
--
James Carlson, Solaris Networking <james.d...@east.sun.com>
SUN Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677