Re: How do you patch a driver?

2005-10-05 Thread Foo Ji-Haw

Thanks Chuck,


Add:

options IPFIREWALL_FORWARD
options IPFIREWALL_DIVERT

...to your kernel config file.  This is mostly documented here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html


Thanks for the tip. Unfortunately, the IPFIREWALL_FORWARD was not mentioned 
in the link you gave me (which I visited prior). Otherwise I wouldn't have 
lost 2 nights working on this. But that's over now. I'm working on another 
stumbling block on ipfw.


Also note that ipfw forwarding alone may not do what you expect, unless 
you make special efforts on the machine being forwarded to, to recognize 
the additional IP addresses.  You might find using the redirect_host or 
redirect_port directives to natd more appropriate for your purposes.
Thanks for your concern. For my purposes, it's only a gateway. The NAT 
router is further down the road. Appreciate the tip anyway.




--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED] 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do you patch a driver?

2005-10-04 Thread Chuck Swiger

Foo Ji-Haw wrote:
[ ...don't top-post, please... ]

I also have this line in dmesg:
ipfw2 initialized, divert disabled, rule-based forwarding disabled, default
to deny, logging disabled

I see that 'rule-based forwarding' is disabled. Is this what caused the
error? How can I enable it? I can't find the details on the Handbook.


Add:

options IPFIREWALL_FORWARD
options IPFIREWALL_DIVERT

...to your kernel config file.  This is mostly documented here:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html

Also note that ipfw forwarding alone may not do what you expect, unless you 
make special efforts on the machine being forwarded to, to recognize the 
additional IP addresses.  You might find using the redirect_host or 
redirect_port directives to natd more appropriate for your purposes.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do you patch a driver?

2005-10-03 Thread Subhro

Foo Ji-Haw sat at his 'puter and typed on 10/3/2005 10:03:

Hello Subhro,

Thanks for your help. From the link I have the following files:

ata-mk3m.diff-current.gz (2k)
ata-mk3m.diff-releng5.gz (2k)
ata-mk3m.tar.gz (100k)
ata-mk3n-releng5.tar.gz (113k)
ata-mk3n.diff-releng5.gz (2k)

Which file should I be using? Is 'current' better than 'releng5'? Do I also
need to download a pair of files: ata-mk3m.diff-current.gz with
ata-mk3m.tar.gz?

Sorry, but I am quite confused with kernal patching. Recompiling yes, but
never patched in my life.


- Original Message - 
From: Subhro [EMAIL PROTECTED]

To: Foo Ji-Haw [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Monday, October 03, 2005 11:53 AM
Subject: Re: How do you patch a driver?


  

Foo Ji-Haw sat at his 'puter and typed on 10/3/2005 8:46:


Hello Gheorghe,

I read with interest your success in getting your Adaptec 1210SA to work
  

on FreeBSD. In your email you wrote that you downloaded patches to the
driver code (and recompiled the kernel?) from
http://people.freebsd.org/~sos/ATA
  

I downloaded the files myself, but am not sure how to proceed from
  

there. Can you please give me some pointers on the next steps?
  

Appreciate your help, thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
  

[EMAIL PROTECTED]
  
  

The general way to patch a driver is patch -p0  patch_file. The patch
file is to be copied in the first level directory of the source code.

Thanks
S.




You need to read the handbook. Read through the chapter describing the 
different trees of development. If you want to run the OS on a 
production box I would recommend stable. Current is only for developers. 
BTW, your mail client indents the replies incorrectly. I can see that 
you are using Microsoft Outlook 6.0. I would recommend get Thunderbird. 
It's a much better client alltogether.


Thanks
S.

--
-+-
 | Subhro Sankha Kar
 \   /  |GSM: +919831064613  --  Fax: +919831832913
  \./|MSN:[EMAIL PROTECTED]  --  Yahoo: subhro82
 (0Y0)   |ICQ: 203567534 --  AIM: bsdboy1982
--ooO--(_)--Ooo--+-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do you patch a driver?

2005-10-03 Thread Foo Ji-Haw
Thanks for the tip. Will take a look at it.

I know that OE6 is a bit dated, but I use IMAP heavily, and Thunderbird
likes to hang when it fails to get a connection with the IMAP server, and I
can't restart the connection short of restarting the app.

I have another question, which I hope you can help me with. This is quite
important to me:

I am trying to put set up port forwarding on my machine. So far the usual
'add allow' and 'add deny' rules work perfectly. The most important rule
which bugs me is the 'add fwd' rule, which the snippet below shows:
ipfw add fwd 192.168.0.4,80 tcp from 10.10.10.0 to any 80

When I try to enter this on the command line, I get the following error:
 ipfw: getsockopt(IP_FW_ADD): Invalid Argument

I tried researching the web. Some mention the error only upon recompiling
kernels. But I am using the standard 5.4 product release as-is. My firewall
rules in rc.conf are as follows:
firewall_enable=YES
firewall_logging=YES

I also have this line in dmesg:
 ipfw2 initialized, divert disabled, rule-based forwarding disabled, default
to deny, logging disabled

I see that 'rule-based forwarding' is disabled. Is this what caused the
error? How can I enable it? I can't find the details on the Handbook.

Thanks for your help Subhro!

- Original Message - 
From: Subhro [EMAIL PROTECTED]
To: Foo Ji-Haw [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Monday, October 03, 2005 6:53 PM
Subject: Re: How do you patch a driver?


 Foo Ji-Haw sat at his 'puter and typed on 10/3/2005 10:03:
  Hello Subhro,
 
  Thanks for your help. From the link I have the following files:
 
  ata-mk3m.diff-current.gz (2k)
  ata-mk3m.diff-releng5.gz (2k)
  ata-mk3m.tar.gz (100k)
  ata-mk3n-releng5.tar.gz (113k)
  ata-mk3n.diff-releng5.gz (2k)
 
  Which file should I be using? Is 'current' better than 'releng5'? Do I
also
  need to download a pair of files: ata-mk3m.diff-current.gz with
  ata-mk3m.tar.gz?
 
  Sorry, but I am quite confused with kernal patching. Recompiling yes,
but
  never patched in my life.
 
 
  - Original Message - 
  From: Subhro [EMAIL PROTECTED]
  To: Foo Ji-Haw [EMAIL PROTECTED]
  Cc: freebsd-questions@freebsd.org
  Sent: Monday, October 03, 2005 11:53 AM
  Subject: Re: How do you patch a driver?
 
 
 
  Foo Ji-Haw sat at his 'puter and typed on 10/3/2005 8:46:
 
  Hello Gheorghe,
 
  I read with interest your success in getting your Adaptec 1210SA to
work
 
  on FreeBSD. In your email you wrote that you downloaded patches to the
  driver code (and recompiled the kernel?) from
  http://people.freebsd.org/~sos/ATA
 
  I downloaded the files myself, but am not sure how to proceed from
 
  there. Can you please give me some pointers on the next steps?
 
  Appreciate your help, thanks!
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
 
  [EMAIL PROTECTED]
 
 
  The general way to patch a driver is patch -p0  patch_file. The patch
  file is to be copied in the first level directory of the source code.
 
  Thanks
  S.
 
 

 You need to read the handbook. Read through the chapter describing the
 different trees of development. If you want to run the OS on a
 production box I would recommend stable. Current is only for developers.
 BTW, your mail client indents the replies incorrectly. I can see that
 you are using Microsoft Outlook 6.0. I would recommend get Thunderbird.
 It's a much better client alltogether.

 Thanks
 S.

 -- 
 -+-
| Subhro Sankha Kar
   \   /  |GSM: +919831064613  --  Fax: +919831832913
\./ |MSN:[EMAIL PROTECTED]  --  Yahoo: subhro82
   (0Y0) |ICQ: 203567534 --  AIM: bsdboy1982
 --ooO--(_)--Ooo--+-

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How do you patch a driver?

2005-10-02 Thread Foo Ji-Haw
Hello Gheorghe,

I read with interest your success in getting your Adaptec 1210SA to work on 
FreeBSD. In your email you wrote that you downloaded patches to the driver code 
(and recompiled the kernel?) from http://people.freebsd.org/~sos/ATA

I downloaded the files myself, but am not sure how to proceed from there. Can 
you please give me some pointers on the next steps? 

Appreciate your help, thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do you patch a driver?

2005-10-02 Thread Subhro

Foo Ji-Haw sat at his 'puter and typed on 10/3/2005 8:46:

Hello Gheorghe,

I read with interest your success in getting your Adaptec 1210SA to work on 
FreeBSD. In your email you wrote that you downloaded patches to the driver code 
(and recompiled the kernel?) from http://people.freebsd.org/~sos/ATA

I downloaded the files myself, but am not sure how to proceed from there. Can you please give me some pointers on the next steps? 


Appreciate your help, thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  
The general way to patch a driver is patch -p0  patch_file. The patch 
file is to be copied in the first level directory of the source code.


Thanks
S.

--
-+-
 | Subhro Sankha Kar
 \   /  |GSM: +919831064613  --  Fax: +919831832913
  \./|MSN:[EMAIL PROTECTED]  --  Yahoo: subhro82
 (0Y0)   |ICQ: 203567534 --  AIM: bsdboy1982
--ooO--(_)--Ooo--+-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do you patch a driver?

2005-10-02 Thread Foo Ji-Haw
Hello Subhro,

Thanks for your help. From the link I have the following files:

ata-mk3m.diff-current.gz (2k)
ata-mk3m.diff-releng5.gz (2k)
ata-mk3m.tar.gz (100k)
ata-mk3n-releng5.tar.gz (113k)
ata-mk3n.diff-releng5.gz (2k)

Which file should I be using? Is 'current' better than 'releng5'? Do I also
need to download a pair of files: ata-mk3m.diff-current.gz with
ata-mk3m.tar.gz?

Sorry, but I am quite confused with kernal patching. Recompiling yes, but
never patched in my life.


- Original Message - 
From: Subhro [EMAIL PROTECTED]
To: Foo Ji-Haw [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Monday, October 03, 2005 11:53 AM
Subject: Re: How do you patch a driver?


 Foo Ji-Haw sat at his 'puter and typed on 10/3/2005 8:46:
  Hello Gheorghe,
 
  I read with interest your success in getting your Adaptec 1210SA to work
on FreeBSD. In your email you wrote that you downloaded patches to the
driver code (and recompiled the kernel?) from
http://people.freebsd.org/~sos/ATA
 
  I downloaded the files myself, but am not sure how to proceed from
there. Can you please give me some pointers on the next steps?
 
  Appreciate your help, thanks!
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
[EMAIL PROTECTED]
 
 
 The general way to patch a driver is patch -p0  patch_file. The patch
 file is to be copied in the first level directory of the source code.

 Thanks
 S.

 -- 
 -+-
| Subhro Sankha Kar
   \   /  |GSM: +919831064613  --  Fax: +919831832913
\./ |MSN:[EMAIL PROTECTED]  --  Yahoo: subhro82
   (0Y0) |ICQ: 203567534 --  AIM: bsdboy1982
 --ooO--(_)--Ooo--+-

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]