From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,991fce720f346e3a X-Google-Attributes: gid1164f8,public From: "Ashutosh V. Bhalerao" Subject: (no subject) Date: 1996/01/10 Message-ID: <4d198v$bks@giga.bga.com>#1/1 X-Deja-AN: 134683680 x-rtcode: 12b3d47e305f538e79f42831 content-type: text/plain; charset=us-ascii organization: Real/Time Communications - Bob Gustwick and Associates mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 1.1PE (Windows; I; 16bit) Subject: IFNET implementation on DEC 2100 Newsgroups: comp.sys.dec Organization: Centre for Development of Advanced Computing (C-DAC), Pune, INDIA. Distribution: global Summary: Keywords: Hi Everybody, I am really sorry for having included a source code in this posting but please bear with me !! Anyway, my problem is that I am NOT able to use the "ifnet" STREAMS module for bridging STREAMS device drivers to sockets. Such a facility is available on DIGITAL UNIX (any version above 2.0) running on DEC 2100 server. The problem that I am having is that after pushing the "ifnet" streams module on top of my STREAMS Device Driver, I can't tell the "ifnet" module of the "unit number" of my Device Driver. The source code that I have used to do this is given below. Thanks very much Abhay Ranade abhayr@falcon.cdac.ernet.in PS : Please reply by email ------------------------------------------------------------------------- -- #include #include #include #include #include #include #include #include main() { int fd, unit ; struct strioctl str ; if ( (fd = open("/dev/streams/pcids", O_RDWR)) < 0 ) { perror("pcids : open failed ....") ; exit(1) ; } if (isastream(fd)) printf("\nSTREAMS based open\n") ; else printf("\nSockets based open\n") ; if(ioctl(fd,I_PUSH,"ifnet") < 0 ) printf("\n\n ifnet I_PUSH failed \n\n") ; else printf("\n\n Ifnet module pushed \n\n") ; unit = 61 ; /* My device driver's MAJOR id */ str.ic_cmd = 1236 ; /* IS THIS THE RIGHT COMMAND ? <<<<<<<<<<<<<<<< */ str.ic_dp = (char *)&unit ; if ( ioctl(fd, I_STR, (void *)&str) < 0 ){ perror("ioctl IFNET_IOCTL_UNIT failed ...") ; exit(2) ; } close (fd) ; } ------------------------------------------------------------------------- - RETURN STATUS : The last ioctl returns the following message in response to execution of the perror statement: ioctl IFNET_IOCTL_UNIT failed> > -------------------------------------------------------------------- > > Newsgroup: comp.sys.dec > > (Earliest articles...) > (Earlier articles...) > > * DECagent90 reliability... - Peter Saward (24) > * DECUS and Digital OpenVMS and OSF/1 Freeware CDROMS Available > via FTP, GOPHER, and WWW - munroe@dmc.com (82) > * Digital Consolidated Distribution Documentation Available via > TELNET and WWW - munroe@dmc.com (32) > * LPS2x and LPS4x Supplies for Sale - Troy Bret Thompson (27) > * FS: Digital VR-241-A Hitachi RGB Monitor - Holly L. McGrath (9) > * FS: X-books $20 each - James Yven (3) > * Re: Alpha Workstations Info?? - Stephen Hoffman (25) > * What is .mrg..files.dat? - Tony Chung (29) > * DGL and DECstation - Jozsef Ferincz (17) > * printing utilities for DEC OSF/1 > o Alec Habig (16) > o Robert Sandford (21) > * Is Freeport Express avail. via ftp? - Malcolm Dunnett (10) > * Can't get Netscape to work with eXcursion - Malcolm Dunnett > (21) > * DEC EtherWORKS 3 Turbo Latest Drivers ??? - David Longley (22) > o Larry Stefani (29) > * Configuring GIGAswitch/ATM - Zdzislaw Meglicki (31) > * Re: routing on a box with a ppp port - Mark Bergstrom (8) > * FS: LK201's (VT220 keyboards) - Holly L. McGrath (10) > * Using DECserver 700's - Ray Bellis (17) > * LP 27 print bands for sale - Andrew Shor (3) > * WTB: Ultrix - Sridhar K.N. Ayengar (5) > * Re: How to connect console printer on Alpha 2000 4/200 - Joerg > Rottland (20) > * Re: RA-81 - Brian Hibbert (47) > > -------------------------------------------------------------------- > ...: Operation wood block