<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
    text="#000000">
    raw socket might help. It will bypass routing, but it will also
    bypass the UDP stack...<br>
    man 7 raw<br>
    <br>
    You may also try changing the routing rules:<br>
    man route<br>
    <br>
    #<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 04/03/14 10:02, Erez D wrote:<br>
    </div>
    <blockquote
cite="mid:CAMUp3wmyMR_mfsjoL2sHQ0UYhUWowByNqnLTv+mP1nWoknRYzQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hello<br>
                  <br>
                  <br>
                </div>
                I have 2 external interfaces via two eth cards, both
                connected to the internet<br>
                <br>
              </div>
              I want to send a udp packet to same host:port, but choose
              dynamically which interface to use.<br>
              <br>
            </div>
            can this be done with linux, and how ?<br>
            <br>
            <br>
            <br>
          </div>
          10x<br>
        </div>
        erez.<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Linux-il mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a>
<a class="moz-txt-link-freetext" href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>