Re: IFF_POINTOPOINT and netmasks

Miquel van Smoorenburg (miquels@cistron.nl)
24 May 1997 12:16:29 +0200


In article <Pine.SOL.3.96.970523184009.14317U-100000@hammer.thor.cam.ac.uk>,
Philip Blundell <pjb27@cam.ac.uk> wrote:
>On Fri, 23 May 1997, Miquel van Smoorenburg wrote:
>
>> Why is this useful? Well, suppose I dial into my companies network. They
>> have a class C, 192.168.2.0/24. Now if I set the netmask to 255.255.255.0,
>> a route would be added automatically to the remote system - that's useful,
>> and that is what you would expect.
>
>Ah, I think I see. What you want to do will only work if the remote
>terminal server presents the same IP address on its dialin ports and on
>its network connection. In the general case, they can be completely
>different, and so the kernel is doing the right thing - when the
>point-to-point link comes up all that you know for certain is that you can
>reach the machine at the other end of it. If you happen to know that you
>can also reach machines on its local network that way, you have to set up
>a route by hand.

The thing is - the default netmask should be 255.255.255.255, but if want
to override it, I think it should be possible. Right? At this moment the
kernel prevents me from doing it by resetting things I explicitly set.
Maybe Alexey Kuznetsov reads this, he should know..

Mike.

-- 
| Miquel van Smoorenburg |  "I need more space" "Well, why not move to Texas" |
| miquels@cistron.nl     |  "No, on my account, stupid." "Stupid? Uh-oh.."    |
|     PGP fingerprint: FE 66 52 4F CD 59 A5 36  7F 39 8B 20 F1 D6 74 02       |