<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Bases on the backslash path style you mention I assume you're
    interested in Windows version of NetAdp, so..<br>
    1. The NetAdp on windows is built from the
    src/VBox/HostDrivers/VBoxNetFlt source tree with VBOXNETADP defined,
    i.e. src\VBox\HostDrivers\VBoxNetAdp is not used.<br>
    2. The current code contains a VBOXNETADP_REPORT_DISCONNECTED
    conditionally compiled code (which is now disabled), to report link
    status as disconnected for the case the Host-Only adapter is not
    active (i.e. does not have intnet connected to it), so you can do
    whatever you need based on that code.<br>
    <br>
    Hope this helps,<br>
    Mikhail<br>
    <br>
    <br>
    On 4/11/2011 7:02 PM, Ribhi Kamal wrote:
    <blockquote
      cite="mid:BANLkTi=Wap5mOKVXsvS3WnU8khNA4mThnQ@mail.gmail.com"
      type="cite">
      <div>
        <div>I'm just going through the code slowly to (hopefully)
          implement an interface to set the link status. Do you mind
          explaining a little bit what following method does:</div>
        <div><br>
        </div>
        <div>from: src\VBox\HostDrivers\VBoxNetAdp.c</div>
        <div>static DECLCALLBACK(bool)
          vboxNetAdpPortSetActive(PINTNETRUNKIFPORT pIfPort, bool
          fActive)</div>
        <div><br>
        </div>
        <div>which calls vboxNetAdpSetState (line 91), but what does
          "state" mean here?</div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div><br>
          <div class="gmail_quote">On Mon, Apr 11, 2011 at 4:23 AM,
            Klaus Espenlaub <span dir="ltr"><<a
                moz-do-not-send="true"
                href="mailto:klaus.espenlaub@oracle.com">klaus.espenlaub@oracle.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">
              <div class="im">On 10.04.2011 00:03, Ribhi Kamal wrote:<br>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  Does the virtualbox host-only adapter provide an
                  interface to set its<br>
                  link status?<br>
                </blockquote>
                <br>
              </div>
              You mean disconnecting it from the host? Don't think this
              exists right now, as it would be more or less the same as
              switching to Internal Networking... unlike for VMs, where
              one can control whether the cable is plugged in for each
              NIC.<br>
              <br>
              Klaus<br>
              <br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                <br>
                --<br>
                -- Ribhi<br>
              </blockquote>
              <br>
              _______________________________________________<br>
              vbox-dev mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
              <a moz-do-not-send="true"
                href="http://vbox.innotek.de/mailman/listinfo/vbox-dev"
                target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <br>
          -- <br>
          -- Ribhi<br>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>