Re: Changing ttl of incoming packets

2004-04-22 Thread Ruslan Ermilov
On Thu, Apr 22, 2004 at 07:02:45PM -0700, Julian Elischer wrote: > start with natd and chop it until you have what you want.. > ports/net/tcpmssd might be easier to adopt. Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature

Re99: how to flush out cache.?

2004-04-22 Thread Matthew Dillon
:(taking hackers off to reduce noise) oops. I guess I didn't take it off hackers. Sorry about that. Yah yah, I know, 'Matt's making a billion postings again'. In anycase, I sent a patch set to Stephan and julian, and since I didn't take it off the list like I said I would I gu

Re: how to flush out cache.?

2004-04-22 Thread Matthew Dillon
(taking hackers off to reduce noise) I think all that needs to happen to fix this problem is to call vm_object_page_remove() with the clean_only flag set to TRUE instead of FALSE. Wired pages, e.g. pages in the buffer cache, will not be removed, but that's ok because memor

Re: how to flush out cache.?

2004-04-22 Thread Matthew Dillon
Ok... I've done some more testing. Ahh! I finally was able to reproduce the problem with PROT_READ, and I now see the code bit you were talking about. That's definitely a bug. Here's the test program that reproduces the problem. This is definitely a serious bug.

Re: how to flush out cache.?

2004-04-22 Thread Matthew Dillon
Sigh. Run this program. Note that the file contains an 'A' in the first byte after you run it (hexdump -C test.dat). Thus, msync() is not destroying the page until AFTER it finishes flushing it to disk. /* * x.c */ #include #include #include #include #include int main(in

Re: Changing ttl of incoming packets

2004-04-22 Thread Julian Elischer
start with natd and chop it until you have what you want.. On Fri, 23 Apr 2004, GiZmen wrote: > > On Thu, Apr 22, 2004 at 11:54:15AM +0200, GiZmen wrote: > > > Hello, > > > > > > Is there any way to change ttl of incoming packet to a lower value ? > > > I had tried min-ttl option in pf packet

Re: events when (de)associating or when cable is (un)plugged

2004-04-22 Thread Andre Oppermann
Ok, I tried to implement this tonight but it doesn't work in FreeBSD. I don't get any notification when the cable is unplugged or plugged. I don't get it, maybe someone else sees it, I don't. miibus_linkchg gets called pretty frequently but the detection logic seems to be flawed. For some reason

Re: how to flush out cache.?

2004-04-22 Thread Stephan Uphoff
Matthew Dillon wrote: > :Yes - but FreeBSD then calls vm_object_page_remove to remove the pages > :from the vnode object. (vm_object_sync for 5.x or vm_map_clean for 4.x ) > < ... SNIP ...> > > I don't quite see that. Could you point out the code in question? > (And, of course, a test p

Re: Changing ttl of incoming packets

2004-04-22 Thread GiZmen
> On Thu, Apr 22, 2004 at 11:54:15AM +0200, GiZmen wrote: > > Hello, > > > > Is there any way to change ttl of incoming packet to a lower value ? > > I had tried min-ttl option in pf packet filter but this option only increase > > ttl to a given value when ttl is lower than this value. > > > >

Re: Changing ttl of incoming packets

2004-04-22 Thread GiZmen
> >> > >>Is there any way to change ttl of incoming packet to a lower value ? > >>I had tried min-ttl option in pf packet filter but this option only > >>increase > >>ttl to a given value when ttl is lower than this value. > >> > >>I have searched on google and mailing lists but i do not find an

Re: panic: random.ko

2004-04-22 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2004-04-22 08:02:04 +0100: > Roman Neuhauser writes: > > > Did you type the exact THREE commands as shown above? > > > > Of course, it's been three weeks since I had that problem so I > > would be insane to claim I have exact recollection. I might have > > been ty

Re: [patch] Raw sockets in jails

2004-04-22 Thread Christian S.J. Peron
I discovered the reason why traceroute breaks without -s with the most recent patches I posted to the list. When traceroute can not figure out what its source IP address is, it generates a RTM_GET routing request through a routing socket and extracts the source address of the route given the dest

Re: Changing ttl of incoming packets

2004-04-22 Thread Niki Denev
Ruslan Ermilov writes: On Thu, Apr 22, 2004 at 11:54:15AM +0200, GiZmen wrote: Hello, Is there any way to change ttl of incoming packet to a lower value ? I had tried min-ttl option in pf packet filter but this option only increase ttl to a given value when ttl is lower than this value. I have

Re: Changing ttl of incoming packets

2004-04-22 Thread Ruslan Ermilov
On Thu, Apr 22, 2004 at 11:54:15AM +0200, GiZmen wrote: > Hello, > > Is there any way to change ttl of incoming packet to a lower value ? > I had tried min-ttl option in pf packet filter but this option only increase > ttl to a given value when ttl is lower than this value. > > I have searched

Re: [patch] Raw sockets in jails

2004-04-22 Thread Alex Lyashkov
В Чтв, 22.04.2004, в 14:30, Pawel Jakub Dawidek пишет: > On Tue, Apr 20, 2004 at 08:00:27PM +, Christian S.J. Peron wrote: > +> Poul/group > +> > +> The following patch makes raw sockets comply with prison IP addresses. > +> Some tools such as traceroute(8) may require that the prison IP addre

Re: [patch] Raw sockets in jails

2004-04-22 Thread Alex Lyashkov
В Чтв, 22.04.2004, в 14:30, Pawel Jakub Dawidek пишет: > On Tue, Apr 20, 2004 at 08:00:27PM +, Christian S.J. Peron wrote: > +> Poul/group > +> > +> The following patch makes raw sockets comply with prison IP addresses. > +> Some tools such as traceroute(8) may require that the prison IP addre

Re: [patch] Raw sockets in jails

2004-04-22 Thread Pawel Jakub Dawidek
On Tue, Apr 20, 2004 at 08:00:27PM +, Christian S.J. Peron wrote: +> Poul/group +> +> The following patch makes raw sockets comply with prison IP addresses. +> Some tools such as traceroute(8) may require that the prison IP address +> be specified on the command line. I.E. +> +> tracerou

Changing ttl of incoming packets

2004-04-22 Thread GiZmen
Hello, Is there any way to change ttl of incoming packet to a lower value ? I had tried min-ttl option in pf packet filter but this option only increase ttl to a given value when ttl is lower than this value. I have searched on google and mailing lists but i do not find any answer. I am running

Re: [patch] Raw sockets in jails

2004-04-22 Thread Devon H. O'Dell
Christian S.J. Peron <[EMAIL PROTECTED]> scribbled: > Poul/group > > The following patch makes raw sockets comply with prison IP addresses. > Some tools such as traceroute(8) may require that the prison IP address > be specified on the command line. I.E. > > traceroute -s > > Otherwise i

Re: panic: random.ko

2004-04-22 Thread markm
Roman Neuhauser writes: > > Did you type the exact THREE commands as shown above? > > Of course, it's been three weeks since I had that problem so I > would be insane to claim I have exact recollection. I might have > been typing > > unload > boot /boot/kernel/kernel > >