Hi Bjørn<br><br><br>I added extra message for each of the cases where this error was occuring.<br>It has failed at bind call..<br>Any suggestions how to find if there is any problem in ifindex detection?<br><br><br>Internet Systems Consortium DHCP Server 4.2.2<br>


Copyright 2004-2011 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank">https://www.isc.org/software/dhcp/</a><br>Wrote 0 leases to leases file.<br>

socket: Error_2 (Bind to the interface name) Invalid argument - make sure<br>
CONFIG_PACKET (Packet socket) and CONFIG_FILTER<br>(Socket Filtering) are enabled in your kernel<br>configuration!<br><br>If you did not get this software from <a href="http://ftp.isc.org" target="_blank">ftp.isc.org</a>, please<br>

get the latest from <a href="http://ftp.isc.org" target="_blank">ftp.isc.org</a> and install that before<br>
requesting help.<br><br>If you did get this software from <a href="http://ftp.isc.org" target="_blank">ftp.isc.org</a> and have not<br>yet read the README, please read it before requesting help.<br>If you intend to request help from the <a href="mailto:dhcp-server@isc.org" target="_blank">dhcp-server@isc.org</a><br>


mailing list, please read the section on the README about<br>submitting bug reports and requests for help.<br><br>Please do not under any circumstances send requests for<br>help directly to the authors of this software - please<br>


send them to the appropriate mailing list as described in<br>the README file.<br><br>exiting.<br><br>Regards,<br>Mukund<br><br><div class="gmail_quote">On Fri, Nov 25, 2011 at 6:44 PM, Bjørn Mork <span dir="ltr"><<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Mukund Deshpande <<a href="mailto:sai.mukund.sagar@gmail.com" target="_blank">sai.mukund.sagar@gmail.com</a>> writes:<br>



<br>
> Can no one help me with this error? :(<br>
> I have been stuck with this error since last 4 days...Have enabled all<br>
> netfilter options..<br>
><br>
> Still dhcp daemon gives same error. CONFIG_PACKET or CONFIG_FILTER<br>
> should be enabled in kernel configuration :|<br>
<br>
</div>The error message is very misleading.  CONFIG_FILTER hasn't existed in<br>
ages. It doesn't have anything to do with NETFILTER. The functionality<br>
which previously required CONFIG_FILTER is unconditionally enabled in<br>
Linux 2.6.<br>
<br>
And if you look through common/lpf.c you'll notice that the exact same<br>
message is printed for not less than three(!) non-related errors.<br>
Unless you have Token Ring enabled, which adds a fourth...  They even<br>
all use "socket" as prefix.  This makes it much harder to tell exactly<br>
which call failed.  But at least the print the returned error code:<br>
"Invalid argument".  So we can look at the three calls and see which one<br>
is likely to cause that:<br>
<br>
1) socket(PF_PACKET, SOCK_PACKET, htons((short)ETH_P_ALL)<br>
<br>
  Yup, could be it if you didn't enable CONFIG_PACKET<br>
<br>
<b>2) bind (sock, &sa, sizeof sa)<br><br></b>
<b>
  Yup, could be it if there is an bug in the ifindex detection?</b><br>
<br>
3) setsockopt (info -> rfdesc, SOL_SOCKET, SO_ATTACH_FILTER, &p, sizeof p)<br>
<br>
  Yup, could be a bug in the filter.  You say you cross compiled<br>
  this. I'm wondering if that might cause endianness problems when<br>
  building the filter?  Don't know - just guessing possible causes....<br>
<br>
The first thing I would do, was verifying that I actually had<br>
CONFIG_PACKET enabled in the running kernel.  Then I would locate these<br>
three calls in common/lpf.c and add enough debug output to them to find<br>
out exactly which one failed.  The path from there depends on the result<br>
of that.<br>
<br>
<br>
<br>
Bjørn<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a></blockquote></div><br><br clear="all"><br>-- <br>Regards,<div>Mukund</div><br>