Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 2008 05:21:23 -0500
From:      "Balaji Kasthurirangan" <kasthurirangan.balaji@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   socket bind failure - errno 49
Message-ID:  <92db61c20805030321x7b943088x6bc79933e4e3bd7d@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I have tried searching the archives and in vain. Hence i am posting to this
group. If this not the right one, pls direct me.

I am using FreeBSD 6.1. Initially i was able to create socket, bind it and
do all sorts of things. But when i tried now, it isn't working. I am trying
after a long gap. The errno is 49 - invalid address.
I used gethostbyname and it returns whatever is there in /etc/hosts. I have
checked the /etc/resolv.conf. My config details are

/etc/rc.conf

hostname="Balaji"

/etc/hosts

192.168.1.1 Balaji
127.0.0.1 localhost
::1 localhost

/etc/resolv.conf

nameserver 192.168.1.1

I tried setting Balaji to 0.0.0.0, still it doesn't work. Pls help me.

Also, when my system boots, couple of eye-catchy messages

syslogd: can't bind address

sm_mta[root]:syserror : can't assign address // i hope this is wrt mail/smtp

My suspect is that, the error happens after my system was shutdown
improperly(sudden power off and my laptop battery isn't working, and
ofcourse i am freebsd on my toshiba tera laptop - P4).
I have done fdisk to ensure my disk is clean.

Thanks,
Balaji.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?92db61c20805030321x7b943088x6bc79933e4e3bd7d>