<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
When I ran olsrd (0.6.4) in host emulation mode with olsr_switch, I
got the error "sendto(v4): Socket operation on non-socket".<br>
<br>
To reproduce the error, (after doing 'make' and 'make switch')<br>
<br>
./olsr_switch<br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
<style type="text/css">
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
A:link { so-language: zxx }
-->
</style>./olsrd -f olsrd.emu.conf -hemu 10.0.0.1<br>
<br>
To debug, I ran olsrd with 'strace' and found that socket
information (the variable 'send_socket') provided to sendto was '0'
which caused the above error. On exploring the code, realized that
in host emulation mode the 'send_socket' was not set.<br>
<br>
PFA, a small patch to resolve this problem. Thank you.<br>
<br>
<br>
Regards,<br>
Vignesh<br>
<br>
</body>
</html>