Re: how to force all packets to be ipv4 not v6

2013-03-31 Thread Lowell Gilbert
Mario Lobo l...@bsd.com.br writes: On Sun, 31 Mar 2013 01:20:17 -0400 Aryeh Friedman aryeh.fried...@gmail.com wrote: I have a host that for ISP reasons must have a ipv6 addr as well as the ipv4 but the ISP does not offer external ipv6 routing but all the commanes (ssh, ftp, etc.) default to

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Lowell Gilbert
Peter Jeremy pe...@rulingia.com writes: On 2013-Mar-29 20:27:27 -0400, Rod Person rodper...@rodperson.com wrote: Everything is going we except that the program gives warnings that there isn't enough free memory on the system to perform certain actions. That premise sounds suspiciously like the

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Lowell Gilbert
Rod Person rodper...@rodperson.com writes: On 03/29/13 08:34, Lowell Gilbert wrote: Peter Jeremy pe...@rulingia.com writes: On 2013-Mar-29 20:27:27 -0400, Rod Person rodper...@rodperson.com wrote: Everything is going we except that the program gives warnings that there isn't enough free

Re: Help porting Linux app - getting Free Memory and Real Memory

2013-03-29 Thread Lowell Gilbert
Rod Person rodper...@rodperson.com writes: man 3 sysctl, list them as integer that is why I did this. unsigned long *is* an integer, but it's a different kind of integer than an int. This is an important distinction in the C language. ___

Re: snd_geode - where it is

2013-03-13 Thread Lowell Gilbert
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl writes: i found it mentioned on older mailing list archives. Unfortunately all links to source are dead. There is no such driver now in FreeBSD-9. Is there any reason that it was removed, or it wasn't commited at all? any place where i can

Re: lots of network interfaces

2013-03-09 Thread Lowell Gilbert
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl writes: very usable at that point, ifconfig aside). The interfaces are a linked list, plus there's a separate kernel dive for each interface. The list (as opposed to individual interfaces) is i don't care how fast ifconfig displays them, just

Re: lots of network interfaces

2013-03-08 Thread Lowell Gilbert
dte...@freebsd.org writes: I decided to stress-test the netgraph(4) subsystem one day and was able to create 65530 interfaces before it produced an error, refusing to create another. At that point, the system was still usable, but... It took over an hour for ifconfig to list all the

Re: Give users a hint when their locate database is too small.

2012-11-13 Thread Lowell Gilbert
Eitan Adler li...@eitanadler.com writes: What do people think of this? Maybe /usr/libexec/locate.updatedb is a better pointer? Yes, I would think locate.updatedb(8) would be the appropriate reference, because it's possible to build locate databases in ways and for reasons other than the weekly

Re: mtree(8) reporting of file modes

2012-03-06 Thread Lowell Gilbert
David Wolfskill da...@catwhisker.org writes: * mode is set to the (masked) mode of the (immediately) enclosing directory when it is visited in pre-order. (This is done in statd().) Not quite. It looks like when statd() is called on the enclosing directory itself, it walks all of the

Re: what is the RIGHT(TM) way to configure background DHCP?

2011-07-04 Thread Lowell Gilbert
deeptec...@gmail.com deeptec...@gmail.com writes: moving [ http://lists.freebsd.org/pipermail/freebsd-questions/2011-June/231301.html ] to the freebsd-hackers list, as there doesn't seem to be enough 1337 people in the freebsd-questions list. : You might want to try rewording your question,

Re: To sendmail or to postfix that is the question?

2010-03-10 Thread Lowell Gilbert
Steven Hartland kill...@multiplay.co.uk writes: A few key question come to mind:- 1. Has sendmail's config moved away from the black art it once was? Somewhat. The configurations are done with m4 these days, but there's a lot of black magic possible with the many potential combinations of

Re: SGID/SUID on scripts

2009-07-24 Thread Lowell Gilbert
Jonathan McKeown j.mcke...@ru.ac.za writes: On Thursday 23 July 2009 20:28:52 Lowell Gilbert wrote: That's clever, but how would it work in practice, while common shells and scripting languages may not implement their side of it? http://www.in-ulm.de/~mascheck/various/shebang/ claims

Re: SGID/SUID on scripts

2009-07-23 Thread Lowell Gilbert
per...@pluto.rain.com writes: DarkSoul darks...@darkbsd.org wrote: Anthony Pankov wrote: SGID/SUID bits don't work with shell scripts, do they? They don't. ... if they were applied, the following would occur : - execve() syscall reads your script's shebang line, and the script

Re: proper types for printf()-ing pointers on amd64 that won't break

2008-09-18 Thread Lowell Gilbert
Steve Franks [EMAIL PROTECTED] writes: Hi, I'm trying to correct some warnings in a port marked ONLY_FOR_ARCHS=i386. They stem from casting a pointer (which I assume is a 64-bit unsigned) to unsigned int which is apparently 32 bits? I sort of thought int was supposed to be the atomic

Re: Question about http://torrents.freebsd.org:8080/index.html

2008-02-08 Thread Lowell Gilbert
Sean Bruno [EMAIL PROTECTED] writes: 2cents I just found it odd that that users couldn't just specify the file to download from the release torrent. It also makes it slightly(read almost negligible) harder to seed effectively as I would need to download more than one centralized torrent.

Re: TCP Checksums in mbufs

2007-01-08 Thread Lowell Gilbert
Julian Elischer [EMAIL PROTECTED] writes: Lee Brotherston wrote: Hi, I have a bit of code I have written that uses pfil to access network traffic as it passes between interfaces on a FreeBSD router. One of the functions it performs is some incredibly basic rewrites of certain packets

Re: TCP Checksums in mbufs

2007-01-08 Thread Lowell Gilbert
Julian Elischer [EMAIL PROTECTED] writes: Lee Brotherston wrote: Hi, I have a bit of code I have written that uses pfil to access network traffic as it passes between interfaces on a FreeBSD router. One of the functions it performs is some incredibly basic rewrites of certain packets

Re: Return value of malloc(0)

2006-06-29 Thread Lowell Gilbert
Pat Lashley [EMAIL PROTECTED] writes: On Thu, Jun 29, 2006 at 11:44:23AM -0400, Pat Lashley wrote: No, our implementation is NOT legal. We always return the SAME value. To be legal, we should not return that value again unless it has been free()-ed. It is legal due to brain damaged

Re: Return value of malloc(0)

2006-06-28 Thread Lowell Gilbert
Andre Albsmeier [EMAIL PROTECTED] writes: The manpage makes me think that when malloc is called with 0 as argument (and no V-flag had been set) the pointer it returns can actually be used (as a pointer to the so-called minimal allocation). It seems, that firefox thinks the same way :-).

Re: Some mmap observations compared to Linux 2.6/OpenBSD

2003-10-26 Thread Lowell Gilbert
David Schultz [EMAIL PROTECTED] writes: On Sun, Oct 26, 2003, Dag-Erling Smrgrav wrote: Q [EMAIL PROTECTED] writes: Yes, it would appear this is a legacy thing that existed in the original 1994 import of the BSD 4.4 Lite source. Both FreeBSD and NetBSD still use this technique, but

Re: A few questions about a few includes

2002-03-04 Thread Lowell Gilbert
Erik Trulsson [EMAIL PROTECTED] writes: On Mon, Mar 04, 2002 at 09:35:29AM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Erik Trulsson [EMAIL PROTECTED] writes: : I think it is still there (and my draft copy says the same thing). : I was thinking about the

Re: A few questions about a few includes

2002-03-04 Thread Lowell Gilbert
Harti Brandt [EMAIL PROTECTED] writes: This should be struct foo { char array[]; }; according to C-99, on which gcc2 barfs. Don't know, whether gcc3 can handle this. C-99 requires a fully specified type before the unspecified array (and requires said array to be the last element