msdosfs/darwin

2004-02-06 Thread Friedemann Becker
I found the sources, thanks anyway

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


munmap.2 inconsistency ?

2004-02-06 Thread Luigi Rizzo
hi,
browsing through the munmap() page, it says
 Munmap() will fail if:

 [EINVAL]   The addr parameter was not page aligned, the len
...

now, i have verified that munmap works fine with any address returned
by mmap, even if not aligned, at least on a recent -STABLE.

As i assume that passing munmap() the same address returned by mmap()
is common behaviour, should we rephrase the manpage ?

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


natd + ipfw, multiple public address routing...

2004-02-06 Thread Hambalek Regis CH [FAT]
Dear all, hello!   
As my first post I would like to seek some help :)

I'm currently installing a bsd firewall to replace a cisco router for the
filtering and NAT.
Our network is composed of several server having a public IP each on the
net. 
Ihave managed with natd to make the entries from internet on the machines'
public IP to work, but theses machines cannot access internet. 

Here are my config files:

/etc/rc.conf
defaultrouter="157..x.x.193"
gateway_enable="YES"
hostname="firewall"
ifconfig_rl0="inet 157.xxx.xxx.194 netmask 255.255.xxx.xxx"
ifconfig_xl0="inet 10.1.0.2  netmask 255.255.0.0"
firewall_enable="YES"
firewall_script="/etc/firewall.sh"
natd_enable="YES"
natd_flags="-f /etc/natd.conf"


/etc/natd.conf
alias_address 157.x.x.194
same_ports yes
use_sockets yes
redirect_address 10.1.2.2 157.x.x.195

/etc/firewall.sh
ipfw add 100 divert 8668 all from any to any via rl0
ipfw add 110 allow all from any to any via rl0 established
ipfw add 120 allow all from any to any out xmit rl0 setup

ipfw add 130 allow all from 10.1.0.0:255.255.0.0 to any
ipfw add 140 allow all from any to 10.1.0.0:255.255.0.0
ipfw add 150 allow all from any to 10.1.2.2 http https
ipfw add 160 allow all from 10.1.2.2 http https to any
ipfw add 65000 deny all from any to any

A machine with 10.1.0.18 ip address can acces internet with no problem. The
machine 10.1.2.2 can be ping from internet, but cannot access internet.

Knowinf that I have a could of other machine that I'll have to configure a
translation for, can someone say me what to modify to have this working
properly? 

Thanks! :)

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


Re: munmap.2 inconsistency ?

2004-02-06 Thread Tim Robbins
On Fri, Feb 06, 2004 at 12:03:23PM -0800, Luigi Rizzo wrote:

> hi,
> browsing through the munmap() page, it says
>  Munmap() will fail if:
> 
>  [EINVAL]   The addr parameter was not page aligned, the len
>   ...
> 
> now, i have verified that munmap works fine with any address returned
> by mmap, even if not aligned, at least on a recent -STABLE.
> 
> As i assume that passing munmap() the same address returned by mmap()
> is common behaviour, should we rephrase the manpage ?

This could have slipped in from POSIX, which requires page-aligned
addresses and lengths to mmap() & friends. I believe SVR4 also
requires this. But yes, the manual pages should be corrected.


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


Re: Kernel Threads

2004-02-06 Thread Joseph Koshy


Sridhar,

> I heard that even Interrupts run under kernel threads context

See ithread(9).

> How can a kernel thread yield CPU when it detects it is idle?

kthread_suspend(), or yield().  See kthread(9), mi_switch(9).

Let me also answer your questions(s) at another level: I have found
information about the kernel in the following places:

1. The section 9 manual pages
2. The FreeBSD Arch Handbook
3. The FreeBSD Handbook
4. The sources -- use 'glimpse' on a checked out -CURRENT tree.
5. Under /usr/share/doc/papers/

If you find some documentation to be missing, and you had to figure out
something non-obvious, please file a PR with sample text.

Regards,
Koshy
<[EMAIL PROTECTED]>



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


Call for Help: patching if_bfe against FreeBSD -stable (4.8, 4.9)

2004-02-06 Thread Al-Afu
In Reference To: 
http://lists.freebsd.org/pipermail/freebsd-bugs/2003-September/003151.html 

the above specifies a patch to include the bfe driver into a 4.8 kernel. How 
do I proceed with this? 

Pardon my ignorance, but I am not familiar with kernel's patches, hence the 
reason I am asking for some guidance or pointers. 

Any help towards this will be greatly appreciated. Been actively trying to 
solve the Broadcom 4401 NIC on my Dell 8500, and the above link seems to be 
the closest I can get to. I cant afford to upgrade to -CURRENT as my 
notebook is almost the mirror to all the production servers I have . 

Responses are much appreciated! Thanks 

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


Re: Call for Help: patching if_bfe against FreeBSD -stable (4.8, 4.9)

2004-02-06 Thread Duncan Barclay
From: "Al-Afu" <[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 6:44 AM


> In Reference To:
> http://lists.freebsd.org/pipermail/freebsd-bugs/2003-September/003151.html
>
> the above specifies a patch to include the bfe driver into a 4.8 kernel.
How
> do I proceed with this?
>
> Pardon my ignorance, but I am not familiar with kernel's patches, hence
the
> reason I am asking for some guidance or pointers.
>
> Any help towards this will be greatly appreciated. Been actively trying to
> solve the Broadcom 4401 NIC on my Dell 8500, and the above link seems to
be
> the closest I can get to. I cant afford to upgrade to -CURRENT as my
> notebook is almost the mirror to all the production servers I have .

There are another set of patches that "Pavel" prepared a couple of weeks
ago. I need to get 4.9 on my laptop and giv e them a whirl and then commit
them. I may be able to this over the weekend. I will put the patches up on a
web site somewhere when I get home from work tonight.

Duncan

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


Re: Call for Help: patching if_bfe against FreeBSD -stable (4.8, 4.9)

2004-02-06 Thread Duncan Barclay
I've put Pavel's patches at

http://people.freebsd.org/~dmlb/bfe-4.8.tar.gz

Duncan

- Original Message - 
From: "Al-Afu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, February 06, 2004 6:44 AM
Subject: Call for Help: patching if_bfe against FreeBSD -stable (4.8, 4.9)


> In Reference To:
> http://lists.freebsd.org/pipermail/freebsd-bugs/2003-September/003151.html
>
> the above specifies a patch to include the bfe driver into a 4.8 kernel.
How
> do I proceed with this?
>
> Pardon my ignorance, but I am not familiar with kernel's patches, hence
the
> reason I am asking for some guidance or pointers.
>
> Any help towards this will be greatly appreciated. Been actively trying to
> solve the Broadcom 4401 NIC on my Dell 8500, and the above link seems to
be
> the closest I can get to. I cant afford to upgrade to -CURRENT as my
> notebook is almost the mirror to all the production servers I have .
>
> Responses are much appreciated! Thanks
>
> -- 
> Feisal
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>

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