Re: Distributing makefiles

2008-04-27 Thread Malcolm Kay
On Sun, 27 Apr 2008 03:31 pm, Michaël Grünewald wrote:
 Hi all,
 
 I am planning to distribute some of the makefiles I wrote on various
 platforms, including FreeBSD. I need the help of some insightful soul to
 take a few decisions:
 
 --- Where to install? I think /usr/local/share/mk is fine;
 --- How to install? Users should put a
  `.MAKEFLAGS: -I/usr/local/share/mk'
 statement in their /etc/make.conf, are ports scripts allowed to do this
 automagically? If yes what's the best way to do this? (an ed script?)
 --- Being system or not? BSD Make has two search pathes, the system one
 (whith  style inclusion) and the other one (with  style incusion). I
 think I shall consider my files non system, preserving the  pathes for
 BSD. But ther may be some pros and cons I am not aware.

I think you are confusing make with the C language with respect to search 
paths. I believe make only uses search paths other than the current directory
when specificly requested for example with VPATH.

Regards,
Malcolm 

 
 Note: I did submit this questions on `ports' about ten days ago, but I 
 did not receive any answer for this. People subscribed to `ports' will 
 see this message for the second time, I apologize for the annoyance.
 
 Any comments welcome,
 --
 cheers,
 Michaël
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Distributing makefiles

2008-04-27 Thread Malcolm Kay
On Sun, 27 Apr 2008 03:43 pm, Malcolm Kay wrote:
 On Sun, 27 Apr 2008 03:31 pm, Michaël Grünewald wrote:
  Hi all,
  
  I am planning to distribute some of the makefiles I wrote on various
  platforms, including FreeBSD. I need the help of some insightful soul to
  take a few decisions:
  
  --- Where to install? I think /usr/local/share/mk is fine;
  --- How to install? Users should put a
   `.MAKEFLAGS: -I/usr/local/share/mk'
  statement in their /etc/make.conf, are ports scripts allowed to do this
  automagically? If yes what's the best way to do this? (an ed script?)
  --- Being system or not? BSD Make has two search pathes, the system one
  (whith  style inclusion) and the other one (with  style incusion). I
  think I shall consider my files non system, preserving the  pathes for
  BSD. But ther may be some pros and cons I am not aware.
 
 I think you are confusing make with the C language with respect to search 
 paths. I believe make only uses search paths other than the current directory
 when specificly requested for example with VPATH.
 
 Regards,
 Malcolm 
 
I spoke too quickly, please cancel or ignore these remarks.

Sorry,
Malcolm

  
  Note: I did submit this questions on `ports' about ten days ago, but I 
  did not receive any answer for this. People subscribed to `ports' will 
  see this message for the second time, I apologize for the annoyance.
  
  Any comments welcome,
  --
  cheers,
  Michaël
  
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ppp reconnecting problem

2008-04-27 Thread Ivan Toman

   Hello!
   I encountered big problem after switching router from gentoo to
   freebsd. It does not properly reconnect ADSL link after loosing
   connection, for example, when ISP cycle IP address or when I pull out
   cable from ADSL switcher for testing purporse. I cannot realize what's
   going on and really need help.
   First problem get when ISP disconnect me after 24 hours due to IP
   change. Link does not properly get reconnected. ppp tries to connect,
   and appearenty is connected, but something is wrong because no traffic
   is possible and after few seconds ppp goes down and reconnects again.
   And again and again Strange above all is that during reconnecting
   routing table always has default route, but ping does not go. Next, I
   will put some information that I think is relevant to problem, but it
   seems to me, not very useful in debugging this.
   During reconnecting as I describe above, this is my routing table:
   [EMAIL PROTECTED] /home/coldplug]# netstat -rn
   Routing tables
   Internet:
   Destination� � � � � � �  Gateway� � � � � � � � � � �  Flags� � �
   Refs� � � � �  Use�  Netif Expire
   default� � � � � � � � � � �  172.29.252.12� � � � �
   UGS� � � � � � � �  1�  2284023� �  tun0
   10.23.99.64/29� � � �  link#1� � � � � � � � � � � �
   UC� � � � � � � � �  0� � � � � � �  0� �  nfe0
   10.23.99.66� � � � � � �  00:30:84:ee:3c:cf�  UHLW� � � � � � �
   1� � � �  4065� �  nfe0� �  1030
   10.23.99.70� � � � � � �  00:02:b3:9e:b9:81�  UHLW� � � � � � �  1� �
   223104� �  nfe0� �  1027
   127.0.0.1� � � � � � � � �  127.0.0.1� � � � � � � � �
   UH� � � � � � � � �  0� � � � � �  72� � �  lo0
   172.29.252.12� � � � �  78.3.33.136� � � � � � �  UGH� � � � � � � �
   1� � � � � � �  0� �  tun0
   Internet6:
   Destination� � � � � � � � � � � � � � � � � � � � � �
   Gateway� � � � � � � � � � � � � � � � � � � � � �  Flags�  Netif
   Expire
   ::1� � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
   ::1� � � � � � � � � � � � � � � � � � � � � � � � � �  UHL� � � �
   lo0
   fe80::%lo0/64� � � � � � � � � � � � � � � � � � � �
   fe80::1%lo0� � � � � � � � � � � � � � � � � �  U� � � �  lo0
   fe80::1%lo0� � � � � � � � � � � � � � � � � � � � � �
   link#5� � � � � � � � � � � � � � � � � � � � � � �  UHL� � � �  lo0
   ff01:5::/32� � � � � � � � � � � � � � � � � � � � � �
   fe80::1%lo0� � � � � � � � � � � � � � � � � �  UC� � � �  lo0
   ff01:6::/32� � � � � � � � � � � � � � � � � � � � � �
   link#6� � � � � � � � � � � � � � � � � � � � � � �  UGC� � �  tun0
   ff02::%lo0/32� � � � � � � � � � � � � � � � � � � �
   fe80::1%lo0� � � � � � � � � � � � � � � � � �  UC� � � �  lo0
   ff02::%tun0/32� � � � � � � � � � � � � � � � � � �
   fe80::211:9ff:fe8d:4a27%tun0�  UGC� � �  tun0
   [EMAIL PROTECTED] /home/coldplug]#
   And this I get if try to ping ISP's dns
   [EMAIL PROTECTED] /home/coldplug]# ping 195.29.150.3
   PING 195.29.150.3 (195.29.150.3): 56 data bytes
   ping: sendto: No buffer space available
   ping: sendto: No buffer space available
   ping: sendto: No buffer space available
   ping: sendto: No buffer space available
   ^C
   --- 195.29.150.3 ping statistics ---
   10 packets transmitted, 0 packets received, 100.0% packet loss
   [EMAIL PROTECTED] /home/coldplug]#
   No buffer space available??? What is that?
   These are lines from log, where you can see that it reconnects and
   never stops that
   [EMAIL PROTECTED] /home/coldplug]# tail -f /var/log/ppp.log
   Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: carrier -
   login
   Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: login -
   lcp
   Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Warning: deflink: Reducing
   configured MRU from 1500 to 1492
   Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: deflink: his = PAP,
   mine = none
   Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: Pap Output:
   [EMAIL PROTECTED] 
   Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: Pap Input: SUCCESS
   (Access Accepted. )
   Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: Already in
   NETWORK phase
   Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp - open
   Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change
   route failed: errno: No such process
   Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32:
   Change route failed: errno: Network is unreachable
   Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Phase: deflink: open - lcp
   Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change
   route failed: errno: No such process
   Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32:
   Change route failed: errno: Network is unreachable
   Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: Received
   NGM_PPPOE_CLOSE
   Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Device
   disconnected
   Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink:
   Disconnected!
 

only 256 pty 6.2

2008-04-27 Thread vvatlin
Hi there.

How can I get more than 256 pty with FreeBSD 6.2?

thanks.

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


ppp reconnecting problem (try #2)

2008-04-27 Thread Ivan Toman
Hello. My first e-mail seems very messed up, so I will try again. Sorry 
about that, I hope this will be OK.



I encountered big problem after switching router from gentoo to freebsd. 
It does not properly reconnect ADSL link after loosing connection, for 
example, when ISP cycle IP address or when I pull out cable from ADSL 
switcher for testing purporse. I cannot realize what's going on and 
really need help.


First problem get when ISP disconnect me after 24 hours due to IP 
change. Link does not properly get reconnected. ppp tries to connect, 
and appearenty is connected, but something is wrong because no traffic 
is possible and after few seconds ppp goes down and reconnects again. 
And again and again Strange above all is that during reconnecting 
routing table always has default route, but ping does not go. Next, I 
will put some information that I think is relevant to problem, but it 
seems to me, not very useful in debugging this.


During reconnecting as I describe above, this is my routing table:

[EMAIL PROTECTED] /home/coldplug]# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default172.29.252.12  UGS 1  2284023   tun0
10.23.99.64/29 link#1 UC  00   nfe0
10.23.99.6600:30:84:ee:3c:cf  UHLW1 4065   nfe0   1030
10.23.99.7000:02:b3:9e:b9:81  UHLW1   223104   nfe0   1027
127.0.0.1  127.0.0.1  UH  0   72lo0
172.29.252.12  78.3.33.136UGH 10   tun0

Internet6:
Destination   Gateway   Flags  
Netif Expire

::1   ::1   UHL lo0
fe80::%lo0/64 fe80::1%lo0   U lo0
fe80::1%lo0   link#5UHL lo0
ff01:5::/32   fe80::1%lo0   UC lo0
ff01:6::/32   link#6UGCtun0
ff02::%lo0/32 fe80::1%lo0   UC lo0
ff02::%tun0/32fe80::211:9ff:fe8d:4a27%tun0  UGCtun0
[EMAIL PROTECTED] /home/coldplug]#


And this I get if try to ping ISP's dns


[EMAIL PROTECTED] /home/coldplug]# ping 195.29.150.3
PING 195.29.150.3 (195.29.150.3): 56 data bytes
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
^C
--- 195.29.150.3 ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss
[EMAIL PROTECTED] /home/coldplug]#


No buffer space available??? What is that?


These are lines from log, where you can see that it reconnects and never 
stops that



[EMAIL PROTECTED] /home/coldplug]# tail -f /var/log/ppp.log
Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: carrier - login
Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: login - lcp
Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Warning: deflink: Reducing 
configured MRU from 1500 to 1492
Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: deflink: his = PAP, 
mine = none
Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: Pap Output: 
[EMAIL PROTECTED] 
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: Pap Input: SUCCESS 
(Access Accepted. )
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: Already in 
NETWORK phase

Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp - open
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change 
route failed: errno: No such process
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change 
route failed: errno: Network is unreachable

Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Phase: deflink: open - lcp
Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change 
route failed: errno: No such process
Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change 
route failed: errno: Network is unreachable

Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: Received NGM_PPPOE_CLOSE
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Device 
disconnected

Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Disconnected!
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp - logout
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Disconnected!
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: logout - hangup
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Connect time: 
123 secs: 374 octets in, 96 octets out
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: 3218212 
packets in, 2284164 packets out
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase:  total 3 bytes/sec, 
peak 40 bytes/sec on Sat Apr 26 12:06:24 2008

Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: hangup - opening
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: 

shutdown forensics

2008-04-27 Thread Robin Becker
I'm trying to figure out what caused an unplanned shutdown of a freebsd 
6.0 server; I see this in the last output


reboot   ~ Thu Apr 24 06:15
shutdown ~ Thu Apr 24 06:10


but cannot see anybody having been logged in at the time. Is there any 
way I can trace the origin of the shutdown command?


I looked in the root shell history various other logs, but couldn't see 
anything obvious.

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


unexpected reboot / which files to check

2008-04-27 Thread z.szalbot

Hello,

Which files (apart from /var/log/messages) one should check to determine
why server was suddenly rebooted? I am on a FreeBSD 7.0-Release.

Thanks!

Zbyszek

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


libstdc++ localization aborts with an exception

2008-04-27 Thread Marian Asokarajan

Hello,

if I try to instantiate the standard C++ class std::locale for locales
other than C, it aborts with an exception in FreeBSD 7-R.

I suppose it has something to do with, how libstdc++ is build under fBSD.
There is an option for libstdc++ called
--enable-clocale[=MODEL]  use MODEL for target locale package [default=auto]

these MODELs are located in the base system source directory
/usr/src/contrib/libstdc++/config/locale/

And probably the darwin (or generic) model is used, instead of gnu
(s.a. line 5801 in file /usr/src/contrib/libstdc++/configure).
If it is so, why doesn't the gnu model apply to FreeBSD ?

gcc -v reports:
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

on my FreeBSD 7.0-RELEASE system.
My $LANG is set to de_DE.UTF-8 (via login.conf).
locale -a|grep de_DE reports:
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.UTF-8


Here's a C++ code you may want to try (compile with CC filename.cc).
It works well with setenv LANG C, but fails if LANG=de_DE.UTF-8 (or any 
other) !
//---
#include locale
#include iostream
#include clocale

int main()
{
 using std::cout;
 using std::endl;

 // C L10n
 const char* const lstr = std::setlocale(LC_ALL, );
 cout  C setlocale()\nresult=;
 cout  ( lstr ? lstr : 0 )  \n  endl;

 // C++ L10n
 cout  C++ std::locale  endl;
 std::locale loc();
 cout  std::locale loc=  loc.name()  endl;
}
//---


Output (set $LANG to de_DE.UTF-8 and run with ./a.out):
---
C setlocale()
result=de_DE.UTF-8

C++ std::locale
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Abort (core dumped)
---


Thanks in advance for any ideas.


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


Re: unexpected reboot / which files to check

2008-04-27 Thread Dominic Fandrey

[EMAIL PROTECTED] wrote:

Hello,

Which files (apart from /var/log/messages) one should check to determine
why server was suddenly rebooted? I am on a FreeBSD 7.0-Release.

Thanks!

Zbyszek


I would take a look weather any dumps showed up in /var/crash
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


lint complains about system includes

2008-04-27 Thread Dominic Fandrey

I thought it's a good idea to pass my C code through lint. After a number of
small changes I was able to remove all problems in my own code, apart from the
pass2 errors.

So my first problem is that the complaints about the system includes are
annoying. Will I have to fix all those files, PR a patch and hope it gets
committed to get rid of them or is there an easier way to silence lint about 
errors that are really not in my hand?


What about that llib-lc.ln complaint? I can only find llib-lposix.ln and 
llib-lstdc.ln.


Then there are the pass2 problems. I tried to put prototypes with the extern 
keyword into my code, but that didn't solve the problems.


Anyway here's some example output of lint:

# lint server.c
server.c:
stdlib.h(274): warning: ANSI C does not support 'long long' [265]
stdlib.h(275): warning: ANSI C does not support 'long long' [265]
stdlib.h(275): warning: ANSI C does not support 'long long' [265]
_types.h(60): warning: struct __timer never defined [233]
_types.h(61): warning: struct __mq never defined [233]
stdio.h(76): warning: struct __sFILEX never defined [233]
signal.h(100): warning: struct __ucontext never defined [233]
_pthreadtypes.h(44): warning: struct pthread never defined [233]
_pthreadtypes.h(45): warning: struct pthread_attr never defined [233]
_pthreadtypes.h(46): warning: struct pthread_cond never defined [233]
_pthreadtypes.h(47): warning: struct pthread_cond_attr never defined [233]
_pthreadtypes.h(48): warning: struct pthread_mutex never defined [233]
_pthreadtypes.h(49): warning: struct pthread_mutex_attr never defined [233]
_pthreadtypes.h(51): warning: struct pthread_rwlock never defined [233]
_pthreadtypes.h(52): warning: struct pthread_rwlockattr never defined [233]
_pthreadtypes.h(53): warning: struct pthread_barrier never defined [233]
_pthreadtypes.h(54): warning: struct pthread_barrier_attr never defined [233]
_pthreadtypes.h(55): warning: struct pthread_spinlock never defined [233]
_pthreadtypes.h(75): warning: struct pthread_barrierattr never defined [233]
sem.h(32): warning: struct sem never defined [233]
lint: cannot find llib-lc.ln
Lint pass2:
atol used( server.c(53) ), but not defined
semget used( server.c(80) ), but not defined
shmctl used( server.c(170) ), but not defined
signal used( server.c(91) ), but not defined
exit used( server.c(208) ), but not defined
semctl used( server.c(149) ), but not defined
printf used( server.c(49) ), but not defined
strcmp used( server.c(135) ), but not defined
__error used( server.c(68) ), but not defined
shmat used( server.c(72) ), but not defined
shmget used( server.c(65) ), but not defined
semop used( server.c(121) ), but not defined
shmdt used( server.c(161) ), but not defined

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


Problem with reconnecting ppp (ppp -ddial isp)

2008-04-27 Thread Ivan Toman

Hello!

I encountered big problem after switching router from gentoo to freebsd. 
It does not properly reconnect ADSL link after loosing connection, for 
example, when ISP cycle IP address or when I pull out cable from ADSL 
switcher for testing purporse. I cannot realize what's going on and 
really need help.


First problem get when ISP disconnect me after 24 hours due to IP 
change. Link does not properly get reconnected. ppp tries to connect, 
and appearenty is connected, but something is wrong because no traffic 
is possible and after few seconds ppp goes down and reconnects again. 
And again and again Strange above all is that during reconnecting 
routing table always has default route, but ping does not go. Next, I 
will put some information that I think is relevant to problem, but it 
seems to me, not very useful in debugging this.


During reconnecting as I describe above, this is my routing table:

[EMAIL PROTECTED] /home/coldplug]# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default172.29.252.12  UGS 1  2284023   tun0
10.23.99.64/29 link#1 UC  00   nfe0
10.23.99.6600:30:84:ee:3c:cf  UHLW1 4065   nfe0   1030
10.23.99.7000:02:b3:9e:b9:81  UHLW1   223104   nfe0   1027
127.0.0.1  127.0.0.1  UH  0   72lo0
172.29.252.12  78.3.33.136UGH 10   tun0

Internet6:
Destination   Gateway   Flags  
Netif Expire

::1   ::1   UHL lo0
fe80::%lo0/64 fe80::1%lo0   U lo0
fe80::1%lo0   link#5UHL lo0
ff01:5::/32   fe80::1%lo0   UC lo0
ff01:6::/32   link#6UGCtun0
ff02::%lo0/32 fe80::1%lo0   UC lo0
ff02::%tun0/32fe80::211:9ff:fe8d:4a27%tun0  UGCtun0
[EMAIL PROTECTED] /home/coldplug]#


And this I get if try to ping ISP's dns

[EMAIL PROTECTED] /home/coldplug]# ping 195.29.150.3
PING 195.29.150.3 (195.29.150.3): 56 data bytes
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
ping: sendto: No buffer space available
^C
--- 195.29.150.3 ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss
[EMAIL PROTECTED] /home/coldplug]#


No buffer space available??? What is that?


These are lines from log, where you can see that it reconnects and never 
stops that


[EMAIL PROTECTED] /home/coldplug]# tail -f /var/log/ppp.log
Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: carrier - login
Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: login - lcp
Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Warning: deflink: Reducing 
configured MRU from 1500 to 1492
Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: deflink: his = PAP, 
mine = none
Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: Pap Output: 
[EMAIL PROTECTED] 
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: Pap Input: SUCCESS 
(Access Accepted. )
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: Already in 
NETWORK phase

Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp - open
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change 
route failed: errno: No such process
Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change 
route failed: errno: Network is unreachable

Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Phase: deflink: open - lcp
Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change 
route failed: errno: No such process
Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change 
route failed: errno: Network is unreachable

Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: Received NGM_PPPOE_CLOSE
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Device 
disconnected

Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Disconnected!
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp - logout
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Disconnected!
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: logout - hangup
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Connect time: 
123 secs: 374 octets in, 96 octets out
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: 3218212 
packets in, 2284164 packets out
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase:  total 3 bytes/sec, 
peak 40 bytes/sec on Sat Apr 26 12:06:24 2008

Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: hangup - opening
Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Enter pause 
(3) for redialing.

Apr 26 12:08:27 maraska-gw ppp[956]: tun0: Phase: deflink: 

shutdown forensics

2008-04-27 Thread Robert Huff

Robin Becker writes:
  I'm trying to figure out what caused an unplanned shutdown of a
  freebsd 6.0 server; I see this in the last output
  
  reboot   ~ Thu Apr 24 06:15
  shutdown ~ Thu Apr 24 06:10
  
  but cannot see anybody having been logged in at the time. Is
  there any way I can trace the origin of the shutdown command?

I see a time like that, my gut suspicion for the shutdown is
something drive y a cro job.


Robert Huff


































































































































































































































































  
  I looked in the root shell history various other logs, but couldn't see 
  anything obvious.



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


Re: unexpected reboot / which files to check

2008-04-27 Thread Wojciech Puchar


Which files (apart from /var/log/messages) one should check to determine
why server was suddenly rebooted? I am on a FreeBSD 7.0-Release.

not much more. check dmesg.boot it often have things from before reboot.


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


Re: shutdown forensics

2008-04-27 Thread Robin Becker

Robert Huff wrote:

Robin Becker writes:

 I'm trying to figure out what caused an unplanned shutdown of a
 freebsd 6.0 server; I see this in the last output
 
 reboot   ~ Thu Apr 24 06:15

 shutdown ~ Thu Apr 24 06:10
 
 but cannot see anybody having been logged in at the time. Is

 there any way I can trace the origin of the shutdown command?


I see a time like that, my gut suspicion for the shutdown is
something drive y a cro job.


Robert Huff


...

I've looked at the various cron jobs and cannot see anything that looks 
suspicious. Root only has an ntp job which runs at 01:17. The one other 
user with a crontab has jobs running at *:19 and 03:13. Looked in 
/var/crash and see minfree from 2005.

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


Re: Ports Question

2008-04-27 Thread Daniel Bye
On Sun, Apr 27, 2008 at 01:19:57AM +0200, Roland Smith wrote:
 On Sat, Apr 26, 2008 at 04:40:58PM -0400, Grant Peel wrote:
  Hi all,
  
  What is the proper method to pass configure arguments when installing a 
  port?
 
 While you can supply arguments on the command line, it is hard to
 remember.
 
 Therefore I think it is best to set arguments in make.conf. For example;
 
 -- make.conf excerpt --
 .if ${.CURDIR:M*/graphics/xpdf}
 A4=yes
 .endif
 
 .if ${.CURDIR:M*/mail/mutt-devel}
 WITH_MUTT_SLANG2=yes
 WITHOUT_MUTT_HTML=yes 
 WITHOUT_MUTT_XML=yes 
 WITHOUT_MUTT_COMPRESSED_FOLDERS=yes 
 WITHOUT_NLS=yes 
 NOPORTDOCS=yes
 .endif
 
 .if ${.CURDIR:M*/print/cups*}
 CUPS_OVERWRITE_BASE=true
 .endif
 -- make.conf excerpt --
 
 The '.if' statement ensures that the variables are only set when make is
 called from the praticular port direction.

I find the portconf method a little easier to manage - installing 
ports-mgmt/portconf adds some lines to your make.conf, which allow you
to set options for your ports in a file called /usr/local/etc/ports.conf.

For example,

mail/exim: WITH_MYSQL=1 | WITH_SPF=1

The file is honoured by manual builds, and by the likes of portinstall,
portmaster etc.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpZmDM7Pr4rr.pgp
Description: PGP signature


Re: VLAN Trunking with Freebsd

2008-04-27 Thread Nejc Škoberne

Hey,


I am sure this topic has been discussed before, however, I have been
coming across unanswered inquiries within the last two months about
possibly using the trunking aspect of 802.1q standard network routing,
with only freebsd.  


I have attempted to create mulitple vlan interfaces and have failed, on
6.3-Stable.  


Does anyone know if the vlan emplimentation on Freebsd allows for
trunking or, at the least, multiple vlans per physical device?


This is my config:

cloned_interfaces=vlan2 vlan3 vlan4 vlan5
ifconfig_re0=inet 192.168.1.62 netmask 255.255.255.192
ifconfig_re1=inet 192.168.1.254 netmask 255.255.255.128
ifconfig_bge0=inet a.b.c.d netmask 255.255.255.240
ifconfig_em0=up
ifconfig_vlan2=192.168.41.1 vlan 2 vlandev em0
ifconfig_vlan3=192.168.19.3 vlan 3 vlandev em0
ifconfig_vlan4=192.168.42.1 vlan 4 vlandev em0
ifconfig_vlan5=192.168.100.1 vlan 5 vlandev em0

re0, re1, bge0 are ordinary interfaces (non-802.1q), and em0 is connected to a 
switch
with 802.1q support.

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


Re: VLAN Trunking with Freebsd

2008-04-27 Thread Wojciech Puchar


This is my config:

cloned_interfaces=vlan2 vlan3 vlan4 vlan5
ifconfig_re0=inet 192.168.1.62 netmask 255.255.255.192
ifconfig_re1=inet 192.168.1.254 netmask 255.255.255.128
ifconfig_bge0=inet a.b.c.d netmask 255.255.255.240
ifconfig_em0=up
ifconfig_vlan2=192.168.41.1 vlan 2 vlandev em0
ifconfig_vlan3=192.168.19.3 vlan 3 vlandev em0
ifconfig_vlan4=192.168.42.1 vlan 4 vlandev em0
ifconfig_vlan5=192.168.100.1 vlan 5 vlandev em0

re0, re1, bge0 are ordinary interfaces (non-802.1q), and em0 is connected to 
a switch

with 802.1q support.



maybe off-topic but when buying switches make sure it's clearly written 
802.1Q support. There are VLAN capable switches, some very cheap, that 
just block traffic between ports except between port 1 and others, but no 
vlan tagging.



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


Re: unexpected reboot / which files to check

2008-04-27 Thread Zbigniew Szalbot

Hello all,

Dominic Fandrey pisze:


Which files (apart from /var/log/messages) one should check to determine
why server was suddenly rebooted? I am on a FreeBSD 7.0-Release.


I would take a look weather any dumps showed up in /var/crash



Nothing in /var/crash

This is the last line before reboot:
Apr 27 10:48:39 relay syslogd: exiting on signal 15

This is the first line during system startup:
Apr 27 10:57:40 relay syslogd: kernel boot file is /boot/kernel/kernel

Which leads me to believe the system was off for a few minutes. It is a 
new machine, currently not too much loaded so it wouldn't take so long 
to start (9 minutes).


Will check with the provider if there was some short power failure or 
something like that.


Thanks!

Zbigniew Szalbot

--
Zbigniew Szalbot
www.lc-words.com


smime.p7s
Description: S/MIME Cryptographic Signature


Article on implementing UFS journaling on desktop PCs (updated)

2008-04-27 Thread Manolis Kiagias


I have just updated my recent article on journaling for desktops:

http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



Main differences:

- The abstract is somewhat shorter

- Separate providers for journal and data are needed only when the 
partition to be journaled is not empty. This is now clarified in the 
Understanding journaling section.


- A new section Journaling new partitions was added (explains how to 
use a single provider for data / journal on an empty/new partition and 
how to set the size of the journal)


- A further reading section was added with a few links related to 
journaling.


- Various other small fixes in content / markup.

Please review this new revision and send me your comments.

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


Re: VLAN Trunking with Freebsd

2008-04-27 Thread Vince

Nejc Škoberne wrote:

Hey,


I am sure this topic has been discussed before, however, I have been
coming across unanswered inquiries within the last two months about
possibly using the trunking aspect of 802.1q standard network routing,
with only freebsd. 
I have attempted to create mulitple vlan interfaces and have failed, on
6.3-Stable. 
Does anyone know if the vlan emplimentation on Freebsd allows for

trunking or, at the least, multiple vlans per physical device?


This is my config:

cloned_interfaces=vlan2 vlan3 vlan4 vlan5
ifconfig_re0=inet 192.168.1.62 netmask 255.255.255.192
ifconfig_re1=inet 192.168.1.254 netmask 255.255.255.128
ifconfig_bge0=inet a.b.c.d netmask 255.255.255.240
ifconfig_em0=up
ifconfig_vlan2=192.168.41.1 vlan 2 vlandev em0
ifconfig_vlan3=192.168.19.3 vlan 3 vlandev em0
ifconfig_vlan4=192.168.42.1 vlan 4 vlandev em0
ifconfig_vlan5=192.168.100.1 vlan 5 vlandev em0

re0, re1, bge0 are ordinary interfaces (non-802.1q), and em0 is 
connected to a switch

with 802.1q support.

If you are just creating from the command line and want cisco router 
like subinterfaces, the following works (I have the vlan module built 
into my kernel might need to load it otherwise.)

[EMAIL PROTECTED]
(19:22:09 ~) 0 # ifconfig bge0.1
ifconfig: interface bge0.1 does not exist
[EMAIL PROTECTED]
(19:22:13 ~) 0 # ifconfig bge0.1 create
[EMAIL PROTECTED]
(19:22:15 ~) 0 # ifconfig bge0.1
bge0.1: flags=8842BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=3RXCSUM,TXCSUM
ether 00:e0:81:2d:a3:16
media: Ethernet autoselect (100baseTX full-duplex)
status: active
vlan: 1 parent interface: bge0
[EMAIL PROTECTED]
(19:22:17 ~) 0 # ifconfig bge0.1 destroy

Not certain how thats represented in rc.conf, Will have a look.

Vince


HTH,
Nejc
___
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]


ZFS + gmirror: how?

2008-04-27 Thread Guus Houtzager

Hi,

I'm rather new to FreeBSD and I'm having trouble with ZFS and gmirror.  
I've used this guide to install FreeBSD 7 on ZFS:

http://www.ish.com.au/solutions/articles/freebsdzfs
This goes flawless, however, the /bootdir is still just /dev/ad01sa  
(in my case), so if that disk breaks, I still can't boot from ad1. So  
I thought I could just make a gmirror containing /dev/ad0s1a and  
ad1s1a and use that for /bootdir. This however does not work.

What I did is:
- gmirror load
- gmirror label -v -b round-robin gm0 /dev/ad1s1a
- newfs /dev/mirror/gm0
- mount /dev/mirror/gm0 /mnt/tmp
- dump -L -0 -f- /bootdir | (cd /mnt/tmp  restore -r -v -f-)
- edit /etc/fstab and /mnt/root/etc/fstab: change all references to  
ad0s1a by /dev/mirror/gm0

- echo 'geom_mirror_load=YES'  /boot/loader.conf
- echo 'geom_mirror_load=YES'  /mnt/tmp/boot/loader.conf
- reboot
However: I can see the bootprocess starting first ZFS followed by a  
message saying it's waiting for GEOM gmirror to start, which it does  
after a little while and then I get a prompt where I can manually tell  
the system where the root filesystem is. And if I tell it zfs:system/ 
root it does not work (my zpool is named system).
Anyone know what I'm doing wrong and what's the best way to do this?  
Thanks in advance!


PS: please CC me in any reply, as I'm not subscribed to this list.  
Thanks!


Regards,
--
Guus HoutzagerEmail: [EMAIL PROTECTED]
  ++?++ Out of Cheese error. Redo from start.
   -- Terry Pratchett, Interesting Times



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


Re: LOADER_TFTP_SUPPORT=YES and FreeBSD 6.3

2008-04-27 Thread Patrick Lamaizière
Le Sat, 26 Apr 2008 20:56:26 +0300,
Omer Faruk Sen [EMAIL PROTECTED] a écrit :

 Hi,

Hello,

 I am trying to build a install server. I have used make
 -DLOADER_TFTP_SUPPORT=YES in /usr/src/obj and copied it over to
 my /pxeboot/ which I have copied contents from FreeBSD 6.3 Install
 cd. But no matter what I have done pxeboot always tries to use nfs
 but no tftp. There is a similar thread that states with FreeBSD 6.3
 and above LOADER_TFTP_SUPPORT=YES doesn't work:
 
 http://www.opensubscriber.com/message/freebsd-questions@freebsd.org/8560733.html
 
 
 Does anyone successfully managed to use pxeboot with tftp ( and
 mfsroot) but not with the nfs mount?

It seems you must recompile the kernel without NFS_ROOT. See :
http://www.ultradesic.com/?section=144

I've just did it to install FreeBSD 7.0 via tftp only on a litle Soekris
box.

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


Re: ppp reconnecting problem

2008-04-27 Thread Patrick Lamaizière
Le Sun, 27 Apr 2008 09:13:06 +0200,
Ivan Toman [EMAIL PROTECTED] a __crit :

 
Hello!
I encountered big problem after switching router from gentoo to
freebsd. It does not properly reconnect ADSL link after loosing
connection, for example, when ISP cycle IP address or when I pull
 out cable from ADSL switcher for testing purporse. I cannot realize
 what's going on and really need help.
First problem get when ISP disconnect me after 24 hours due to IP
change. Link does not properly get reconnected. ppp tries to
 connect, and appearenty is connected, but something is wrong because
 no traffic is possible and after few seconds ppp goes down and
 reconnects again. And again and again 

If you kill ppp and restart it, does-it work again ?
When I was runing ppp on FreeBSD i saw few times this kind of already
in network phase  You can restart ppp each day with cron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Compiz Fusion brings all Gnome with itself

2008-04-27 Thread Novembre
Hi,

I've installed Compiz Fusion on my machine using packages. Installing it
from ports was unsuccessful since it needs gio-fam-backend which in turn
needs glib-2.16.3 to be installed. I don't really want to update my glib
since I don't know if I need to update all my system (or at least those
packages which depend on it) as well or not after updating glib (I just
didn't want to take the risk). Anyhow, installing Compiz Fusion from ports
brought with it all Gnome:

-
[EMAIL PROTECTED] /usr/ports]$ pkg_info | grep -i gnome
atk-1.20.0  A GNOME accessibility toolkit (ATK)
eel-2.20.0  Generally useful classes and extensions to GNOME
gconf2-2.20.1   A configuration database system for GNOME
gnome-control-center-2.20.1_1 Control center for GNOME 2 project
gnome-desktop-2.20.1_1 Additional UI API for GNOME 2
gnome-doc-utils-0.12.2 GNOME doc utils
gnome-icon-theme-2.20.0_1 A collection of icons for the GNOME 2 desktop
gnome-keyring-2.20.1 A program that keeps passwords and other secrets
gnome-menus-2.20.1  Implementation of the FreeDesktop Desktop Menu Spec
gnome-mime-data-2.18.0_2 A MIME and Application database for GNOME
gnome-panel-2.20.1  Panel component for the GNOME 2 Desktop
gnome-vfs-2.20.0_2  GNOME Virtual File System
gnome_subr-1.0  Common startup and shutdown subroutines used by GNOME
scrip
gnomehier-2.3_10A utility port that creates the GNOME directory tree
libbonobo-2.20.1_1  A component and compound document system for GNOME2
libbonoboui-2.20.0  GUI frontend to the libbonobo component of GNOME 2
libglade2-2.6.2 GNOME glade library
libgnome-2.20.1.1_1 Libraries for GNOME, a GNU desktop environment
libgnomecanvas-2.20.1.1 A graphics library for GNOME
libgnomekbd-2.20.0  GNOME keyboard shared library
libgnomeui-2.20.1.1 Libraries for the GNOME GUI, a GNU desktop environment
libxml2-2.6.31  XML parser library for GNOME
libxslt-1.1.22_1The XSLT C library for GNOME
nautilus-2.20.0 File manager for the GNOME desktop
py25-libxml2-2.6.31 Python interface for XML parser library for GNOME
-

especially, 'ps -ax' now shows these two processes running:
-
865  ??  I  0:00.15 /usr/local/libexec/gconfd-2 14
876  ??  I  0:00.03 gnome-pty-helper
-

How can I stop them from running when I start X? And how can I remove all
these useless Gnome packages that I won't use? Do I need to update
everything that depends on it if I decide to update glib?

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


Firewalls

2008-04-27 Thread Doug Hardie
FreeBSD supports 3 firewalls:  IPF, IPFW, and PF.  Some time ago  
(perhaps years) I seem to recall some discussion that one or more of  
those was better maintained and higher quality than the others.  I  
don't see any indications of this in the handbook.  Several years ago  
I needed to do traffic shaping and used IPFW with dummynet.  It worked  
but the need eventually went away.  More recently I needed to  
incorporate spamd which defaults to PF so I used that.  However, now I  
am back to needing traffic shaping again.  I suspect trying to use  
both PF and IPFW simultaneously will not be a good approach.  In  
addition, there now are instructions for using spamd with IPFW so it  
appears that either PF or IPFW will do what I need.  Is there any  
additional information available to assist in selecting between  
those?  Thanks.

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


problems with a graphical locking screen/app

2008-04-27 Thread Gary Kline
Maybe thie list knows.  I've searched the web, and KDE Sites.  NADA.  For
a couple weeks, when my screen blanks, it requires my passwd to get back
to work.
I have no screensaver srt, AFAICT.  I messed with ``Configure Desktop''
to no avail.  The screen has my name and a window for the passwd and
below that

change user |  | Unlock c.  des anybody know wyhat this
is? and how to fix?

tx,

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: simple network traffic query tool

2008-04-27 Thread Norberto Meijome
On Sat, 26 Apr 2008 12:08:14 +0200
Zbigniew Szalbot [EMAIL PROTECTED] wrote:

 I hope I am not stealing the thread by asking an additional question. 
 Thanks to this thread I discovered :) systat -ifstat and other switches. 
 Does such data like below survive reboots?
 
   re0  in  8.062 KB/s 13.414 KB/s1.987 GB
   out21.561 KB/s 53.346 KB/s3.043 GB

i don't think so.. and they *may* even wrap around on a server with a long 
uptime and lots of traffic... 

B

_
{Beto|Norberto|Numard} Meijome

Software QA is like cleaning my cat's litter box: Sift out the big chunks. Stir 
in the rest. Hope it doesn't stink.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Question behavior about socket syscall in release 6.2

2008-04-27 Thread Martin Candurra
I have found some weird behavior about the socket system call in freebsd
release 6.2.
The problem appears if I try to open more sockets than the ulimits allows:
the socket system call gets blocked instead of returning an EMFILE error.

This only happens to me in release 6.2 ( I tested in 7.0 but it works fine).
The following python script is what I have used to reproduce the issue:

import os
import socket
from random import randint
import sys
socketAddress = (127.0.0.1, randint(2, 3))


s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(socketAddress)
s.listen(1)

socketList = []
child = -1
for i in range(1):

child = os.fork()
if (child):
clientCon, address = s.accept()
socketList.append(clientCon)
os.waitpid(0, os.WNOHANG)
else:
print child %d % i
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if (clientSocket==-1):
print(client socket error)
err = clientSocket.connect(socketAddress)
if (err==-1):
print(client connect error)
break



Is there something I'm missing ? Can someone shed me some light about this ?

Thanks in advance.

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


Re: Firewalls

2008-04-27 Thread Eric Humphries
On Sun, Apr 27, 2008 at 8:14 PM, Doug Hardie [EMAIL PROTECTED] wrote:
 FreeBSD supports 3 firewalls:  IPF, IPFW, and PF.  Some time ago (perhaps
 years) I seem to recall some discussion that one or more of those was better
 maintained and higher quality than the others.  I don't see any indications
 of this in the handbook.  Several years ago I needed to do traffic shaping
 and used IPFW with dummynet.  It worked but the need eventually went away.
 More recently I needed to incorporate spamd which defaults to PF so I used
 that.  However, now I am back to needing traffic shaping again.  I suspect
 trying to use both PF and IPFW simultaneously will not be a good approach.
 In addition, there now are instructions for using spamd with IPFW so it
 appears that either PF or IPFW will do what I need.  Is there any additional
 information available to assist in selecting between those?  Thanks.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
 [EMAIL PROTECTED]


PF supports traffic shaping via ALTQ.

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


fetch question

2008-04-27 Thread Ho-young, SONG
Hello, i'm korea FreeBSD user
i have problem
i can't install port programs and portsnaps
i can do wget this program
but can't do fetch
FreeBSD STABLE FreeBSD 7.0-STABLE
what is problem?


---

[EMAIL PROTECTED] /usr/ports/net-p2p/rtorrent]# fetch -p
http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
fetch: http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz:
Connection refused
[EMAIL PROTECTED] /usr/ports/net-p2p/rtorrent]# fetch
http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
fetch: http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz:
Connection refused
[EMAIL PROTECTED] /usr/ports/net-p2p/rtorrent]# wget
http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
--2008-04-28 13:18:57--
http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
Resolving libtorrent.rakshasa.no... 66.220.1.220
Connecting to libtorrent.rakshasa.no|66.220.1.220|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 489174 (478K) [application/x-gzip]
Saving to: `rtorrent-0.7.9.tar.gz'

31% [=== ] 155,600 104K/s ^


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


Re: simple network traffic query tool

2008-04-27 Thread Zbigniew Szalbot

Hi,

Norberto Meijome pisze:


On Sat, 26 Apr 2008 12:08:14 +0200
Zbigniew Szalbot [EMAIL PROTECTED] wrote:

I hope I am not stealing the thread by asking an additional question. 
Thanks to this thread I discovered :) systat -ifstat and other switches. 
Does such data like below survive reboots?


  re0  in  8.062 KB/s 13.414 KB/s1.987 GB
out21.561 KB/s 53.346 KB/s3.043 GB


i don't think so.. and they *may* even wrap around on a server with a long uptime and lots of traffic... 



Due to an unexpected power off, I have it confirmed... ;)


Thanks Norberto!

--
Zbigniew Szalbot
www.lc-words.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Can't upgrade lsof

2008-04-27 Thread Beat Siegenthaler

Larry Smith wrote:


I'm a newbie trying to upgrade 'lsof'. 'Portupgrade -a' goes well except for 
lsof and a couple of files that depend on it (gnome-system-monitor, 
gnome-applets, etc.)

  I have cvs'ed my ports tree, did portsdb, pkgdb and portsclean over the last 
couple of days to see if it self-corrects.  It didn't.  Googling didn't turn up 
anything either. Any suggestions, advice, or comments would be greatly 
appreciated.


Rebuilding the World will help. I had the same Problem and contacted
the port maintainer.
Also, it is reported that upgrading to latest 7-STABLE will fix this.




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


Re: Firewalls

2008-04-27 Thread Norberto Meijome
On Sun, 27 Apr 2008 21:44:35 -0500
Eric Humphries [EMAIL PROTECTED] wrote:

 PF supports traffic shaping via ALTQ.

I've been meaning to try this. does it support 'pipes' in the same sense as
ipfw ? if so, it seems another reason use ipfw is gone...

B

_
{Beto|Norberto|Numard} Meijome

With COBOL, the job description of 'computer programmer' will be a thing of
the past. Everybody will program. The boss will dictate a program to his
secretary, who will keypunch it for him. 1960's quote about the upcoming COBOL
language (thx. Lance N!)

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fetch question

2008-04-27 Thread Byung-Hee HWANG
hi,

On Mon, 2008-04-28 at 13:23 +0900, Ho-young, SONG wrote:
 Hello, i'm korea FreeBSD user
 i have problem
 i can't install port programs and portsnaps
 i can do wget this program
 but can't do fetch
 FreeBSD STABLE FreeBSD 7.0-STABLE
 what is problem?
 
 
 ---
 
 [EMAIL PROTECTED] /usr/ports/net-p2p/rtorrent]# fetch -p
 http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz
 fetch: http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz:
 Connection refused
[...]

jihad# uname -srm
FreeBSD 7.0-RELEASE i386
jihad# pwd
/usr/ports/net-p2p/rtorrent
jihad# fetch -p
usage: fetch [-146AFMPRUadlmnpqrsv] [-N netrc] [-o outputfile]
 [-S bytes] [-B bytes] [-T seconds] [-w seconds]
 [-h host -f file [-c dir] | URL ...]
jihad# 

as you see above, your fetch(1) is strange.. ;;

jihad# make fetch
===  Vulnerability check disabled, database not found
= rtorrent-0.7.9.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
= Attempting to fetch from http://libtorrent.rakshasa.no/downloads/.
rtorrent-0.7.9.tar.gz 100% of  477 kB  176 kBps
jihad#
 
actually i can download the distfile by fetch(1) ;;

does it have any other hints?

-- 
Perhaps your grandchildren will become the new PEZZONOVANTI.
-- Vito Corleone, Chapter 20, page 290

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