Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to change the default MTU
@ 1999-02-01  5:00 Esalgon
  1999-02-04  5:00 ` Routing sockets on Digital Unix Gabriel.OHAYON
  0 siblings, 1 reply; 3+ messages in thread
From: Esalgon @ 1999-02-01  5:00 UTC (permalink / raw)


Could I change the default MTU on my servers  to improve flow rate on a WAN,
and how ?

Thanks a lot.

Eric



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Routing sockets on Digital Unix
  1999-02-01  5:00 How to change the default MTU Esalgon
@ 1999-02-04  5:00 ` Gabriel.OHAYON
  1999-02-06  5:00   ` John Hascall
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel.OHAYON @ 1999-02-04  5:00 UTC (permalink / raw)


Hello,

Where is it possible to find a routing socket  programming example 
for Digital Unix 4.0D ??
My aim is to get/add/delete a route from the host's routing table and
I have not found an explicit man page explaining how to use
RTM_GET,  RTM_ADD, RTM_DELETE..

Thanks for your Help...


Gabriel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Routing sockets on Digital Unix
  1999-02-04  5:00 ` Routing sockets on Digital Unix Gabriel.OHAYON
@ 1999-02-06  5:00   ` John Hascall
  0 siblings, 0 replies; 3+ messages in thread
From: John Hascall @ 1999-02-06  5:00 UTC (permalink / raw)


Gabriel.OHAYON <gabriel.ohayonNOSPAM@alcatel.fr> wrote:
}Where is it possible to find a routing socket  programming example 
}for Digital Unix 4.0D ??
}My aim is to get/add/delete a route from the host's routing table and
}I have not found an explicit man page explaining how to use
}RTM_GET,  RTM_ADD, RTM_DELETE..

  Hope this excerpt is some help, _GET and _DELETE are similar.

        if ((sockfd = socket(PF_ROUTE, SOCK_RAW, AF_INET)) < 0) {
                /* bitch */
        }                                                        
        shutdown(sockfd, 0);            /* write only... */      

        memset(&rtmsg, 0, sizeof(rtmsg));                          
        rtmsg.rthdr.rtm_msglen = sizeof(rtmsg);                    
        rtmsg.rthdr.rtm_version = RTM_VERSION;                     
        rtmsg.rthdr.rtm_type = RTM_ADD;                            
        rtmsg.rthdr.rtm_addrs = (RTA_DST|RTA_GATEWAY|RTA_NETMASK); 
        rtmsg.rthdr.rtm_flags = RTF_GATEWAY;                       
        rtmsg.dsin.sin_family = (AF_INET <<8) + sizeof(rtmsg.dsin);
        rtmsg.dsin.sin_port = 0x0000;                              
        rtmsg.dsin.sin_address = destination;                      
        rtmsg.gsin.sin_family = (AF_INET <<8) + sizeof(rtmsg.gsin);
        rtmsg.gsin.sin_port = 0x0000;                              
        rtmsg.gsin.sin_address = gateway;                          
        rtmsg.msin.sin_family = (AF_INET <<8) + sizeof(rtmsg.msin);
        rtmsg.msin.sin_port = 0x0000;                              
        rtmsg.msin.sin_address = INADDR_ANY;                       
        if (write(sockfd, &rtmsg, sizeof(rtmsg)) < 0) {
            /* bitch ... */
        }


John
-- 
John Hascall, Software Engr.      Shut up, be happy.  The conveniences you
ISU Computation Center            demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/index.html  <=- the usual crud



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-02-06  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-01  5:00 How to change the default MTU Esalgon
1999-02-04  5:00 ` Routing sockets on Digital Unix Gabriel.OHAYON
1999-02-06  5:00   ` John Hascall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox