Tom Haynes wrote:
> Alan wrote:
>   
>> There must be something I'm missing here; it looks simple enough:
>>
>> Server:
>> # share
>> - at rpool/zimbra  /rpool/zimbrax   sec=sys,root=172.20.0.19   ""  
>>
>>   
>>     
>
> What version of OpenSolaris?
>
> I'm trying to find a bug on this, but try this:
>
> root=172.20.0.19/32
>
>   

whoops, that would be:
ro...@172.2.0.19/32

> I thought I fixed this, but it used to be you needed to enter a netmask.
>
>
>   

Here is the fun I had with it:

http://blogs.sun.com/tdh/entry/open_solaris_and_sharing_subnets

And we see an analysis here:

http://blogs.sun.com/tdh/entry/checking_a_host_entry_some

So the bug is still there:

   1444         /*
   1445          * If the mask is specified explicitly then
   1446          * use that value, e.g.
   1447          *
   1448          *    @109.104.56/28
   1449          *
   1450          * otherwise assume a mask from the zero octets
   1451          * in the least significant bits of the address, e.g.
   1452          *
   1453          *   @109.104  or  @109.104.0.0
   1454          */
   1455         if (mp) {
   1456                 bits = atoi(mp);
   1457                 mask = bits ? ~0 << ((sizeof (struct in_addr) * 
NBBY) - bits)
   1458                     : 0;
   1459                 addr &= mask;
   1460         } else {
   1461                 if ((addr & 0x00ffffff) == 0)
   1462                         mask = 0xff000000;
   1463                 else if ((addr & 0x0000ffff) == 0)
   1464                         mask = 0xffff0000;
   1465                 else if ((addr & 0x000000ff) == 0)
   1466                         mask = 0xffffff00;
   1467         }


I'll submit a bug on this.



Reply via email to