RE: Adding to the mbuf header...

2002-04-01 Thread Chris Ptacek
M_dat.MH.MH_dat.MH_databuf #define m_dat M_dat.M_databuf - Chris > -Original Message- > From: Julian Elischer [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 29, 2002 9:44 PM > To: Chris Ptacek > Cc: '[EMAIL PROTECTED]' > Subject: R

Adding to the mbuf header...

2002-03-29 Thread Chris Ptacek
I am working on a project using FreeBSD 3.2 (part of the requirements). As part of this project I would like to add a field to the mbuf header to store some information. I have added the field, however I get an occasional core when trying to free an mbuf. It appears that the next field is gett

Re: Page Fault problem with my KLD

2001-03-30 Thread Chris Ptacek
driver is still running (it prints a debug message every second) and kldload does return, but if I try and do anything it just freezes (ls, kldunload, etc). Any ideas. - Chris - Original Message - From: "Alfred Perlstein" <[EMAIL PROTECTED]> To: "Chris Ptacek&q

Page Fault problem with my KLD

2001-03-30 Thread Chris Ptacek
I am developing a KLD and I am having problems getting a page fault. I am using a set "library" (basically a set of third party object files I build and then link in). This libarary requires its own chunk of memory that it manages and needs to be passed a pointer to that memory (and the size) wh

KLDs and PCI?

2000-11-12 Thread Chris Ptacek
I am working on a KLD for a PCI device. My problem is I can't find how to call the probe and attach calls during the load for a PCI device. I have looked in the /usr/src/sys/pci directory and haven't found any KLDs to use as an example. What are the steps I need to take to handle a PCI device i

DMA in drivers?

2000-10-22 Thread Chris Ptacek
I am in the process of writing a PCI driver for an encryption card. The specifications state that the DMA Destination Address, DMA Dest. Length, DMA Source Addr, and DMA Source Length should be loaded into registers in the card. Part of the info states: "This register is used to establish the P

Getting all the IP address for a machine from code...

2000-09-13 Thread Chris Ptacek
I am looking for a way to get all the IP addresses that are configured a machine. I need to do this in c source code, and without using DNS services (ie: gethostname/gethostbyname won't work). I am hoping there are some system calls I can use to get this information. Thanks in advance for any h

code question...

2000-08-14 Thread Chris Ptacek
I am getting a warning from a program I wrote: lined in free(): warning: chunk is already free. Is there anyway I can figure out where exactly this is happening, maybe cause a core or something. - Chris To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in th

PCI Device Drivers?

2000-08-08 Thread Chris Ptacek
Hi, I have been given the task of writing a PCI device driver for a card that we will be using with one of our products. My question is where can I find the best documentation for writing PCI drivers? I assume that the best method would probably be examining current drivers, could anyone suggest

VPN help needed

2000-04-12 Thread Chris Ptacek
Hi, I am trying to connect to a remote NT VPN server so I can perform some work remotely. However I can't seem to get the VPN link to come up. I am using the pptpclient software. I have the following entry in my ppp.conf file: VPN: set timeout 0 set ifaddr 0 0 add 172.22.0.0/16 HISADDR s