soaccept

2010-12-21 Thread Mohammad Hedayati
I'm about to use a char device for a kind of distributed processing, so I've coded the open function as follows. The problem is that soaccept returns 0 without populating the raddr. I've checked netstat, everything seems to be fine, the socket is created, bound and the state is LISTENING. Even the

DES Cipher

2010-12-22 Thread Mohammad Hedayati
Can anyone please show me a sample code for ciphering using DES in FreeBSD? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.

Re: DES Cipher

2010-12-22 Thread Mohammad Hedayati
On Wed, Dec 22, 2010 at 6:01 PM, Anton Shterenlikht wrote: > On Wed, Dec 22, 2010 at 05:50:19PM +0330, Mohammad Hedayati wrote: >> Can anyone please show me a sample code for ciphering using DES in FreeBSD? > > bdes(1)? > > % ls -al > zzz > % bdes < zzz > zzz.de

Re: DES Cipher

2010-12-22 Thread Mohammad Hedayati
On Wed, Dec 22, 2010 at 7:33 PM, Robert Bonomi wrote: > >> From owner-freebsd-questi...@freebsd.org  Wed Dec 22 08:22:15 2010 >> From: Mohammad Hedayati >> Date: Wed, 22 Dec 2010 17:50:19 +0330 >> To: freebsd-questions@freebsd.org >> Subject: DES Cipher >>

Inappropriate ioctl for device

2010-12-23 Thread Mohammad Hedayati
I'm writing a simple char device. So far everything went so good (read/write), but here I'm going to add support for ioctl. int ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td) { int error = 0; uprintf("Here...\n"); return(error); } and I'm calli

Inappropriate ioctl for device

2010-12-24 Thread Mohammad Hedayati
I'm writing a simple char device. So far everything went so good (read/write), but here I'm going to add support for ioctl. int ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *td) { int error = 0; uprintf("Here...\n"); return(error); } and I'm calling

Re: Inappropriate ioctl for device

2010-12-24 Thread Mohammad Hedayati
On Fri, Dec 24, 2010 at 6:00 PM, C. P. Ghost wrote: > On Fri, Dec 24, 2010 at 11:21 AM, Mohammad Hedayati > wrote: > > I'm writing a simple char device. So far everything went so good > > (read/write), but here I'm going to add support for ioctl. > > > >