Date: Thu, 09 Aug 2001 17:41:11 +0800 From: "Wing Tim" <twchim1@hotmail.com> To: freebsd-questions@FreeBSD.ORG Cc: ryan@sasknow.com, bwatts@corp.netcom.ca Subject: Modifying the original snoop in FreeBSD Message-ID: <F200jtcEko8PU2pnUgr000036b1@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hi, As mentioned earlier, I can control snp(4) with my own code with ioctl. That is, I can modify or override the original snoop in FreeBSD. However, even I read through the man pages, I still don't know how to start. For example, where should I place my own .c or .h files? What header files (.h files) should I or can I include in my own programs? I would appreciate if someone can guide me about this. Thanks! Regards, Wing >From: Ryan Thompson <ryan@sasknow.com> >To: Wing Tim <twchim1@hotmail.com> >CC: bwatts@corp.netcom.ca, freebsd-questions@FreeBSD.ORG >Subject: Re: snoop for BSD?? >Date: Sat, 4 Aug 2001 14:10:47 -0600 (CST) > >Wing Tim wrote to ryan@sasknow.com and bwatts@corp.netcom.ca: > > > Dear Ryan, > > > > Do you mean the Snoop Protocol and the related files are already >embedded > > in the FreeBSD release package? > >See snp(4) for the tty snoop interface.. it has been in the base system >since FreeBSD 2.1. watch(8) will use a snp device to snoop on a user's >terminal. You can also control snp(4) with your own code with ioctl if you >have a special purpose in mind. See the man page for details. > >Both of these are present in the base release. As I mentioned in my >previous post, you do have to explicitly enable the snp devices in the >kernel before it will work. However, no additional files or packages are >required. > >Hope this helps, >- Ryan > > > > Wing Tim > > > > > > > > >From: Ryan Thompson <ryan@sasknow.com> > > >To: Bradley Watts <bwatts@corp.netcom.ca> > > >CC: freebsd-questions@FreeBSD.ORG > > >Subject: Re: snoop for BSD?? > > >Date: Fri, 3 Aug 2001 11:47:41 -0600 (CST) > > > > > >Bradley Watts wrote to freebsd-questions@FreeBSD.ORG: > > > > > > > Does anyone know if there is a version of snoop that is compatible > > > > with BSD? > > > > > >How about watch(8)? You'll need to enable some snp devices in the >kernel. > > >Use > > > > > >pseudo-device snp 3 > > > > > >in your kernel config, rebuild, and reboot. Then you can watch any > > >terminal device. > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > > >- Ryan > > > > > >-- > > > Ryan Thompson <ryan@sasknow.com> > > > Network Administrator, Accounts > > > > > > SaskNow Technologies - http://www.sasknow.com > > > #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 > > > > > > Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon > > > Toll-Free: 877-727-5669 (877-SASKNOW) North America > > > > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > > >with "unsubscribe freebsd-questions" in the body of the message > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at >http://explorer.msn.com/intl.asp > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > >-- > Ryan Thompson <ryan@sasknow.com> > Network Administrator, Accounts > > SaskNow Technologies - http://www.sasknow.com > #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 > > Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon > Toll-Free: 877-727-5669 (877-SASKNOW) North America > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F200jtcEko8PU2pnUgr000036b1>