How to determine network interface that will be used to send a packet

Hello,
I'm writing to you because I encountered the following problem. My program displayes all network interfaces that are available in the system, but I would like to add a functionality in which a user can enter a destination address IP (ex. the IP address of the Google search engine) and will get information which network interface will be used to send it. As I know it is associated with reading information from routing table in the system. Maybe you know the API (functions/methods) which I could use to do it in Solaris ? I program in C/C++, but if you know how to do it in other programming languages (Java, Perl, Python) I will be grateful for any information.
Thank you for any help, tips and suggestions.
Best regards,
Foxrafi

Thank you for your response it was very helpful :).
I went to the OpenSolaris webpage because I would like to find the code of this command, but unfortunately I don't know where I should start my searches.
There is a page with source code of basic commands, but there is no "route" command: here .
Maybe you are better enlightened where I should start.
Thank you for answer.
Foxrafi

Similar Messages

  • The app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new.

    the app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new for christmas.

    See the following to purchase earlier, compatible version for iOS 6
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • CDs I burn from my itunes 10 on my macbook with snow lepard will not play in the regular cd player.  How do I burn Cds that will pay in a reg old cd player?

    CDs I burn from my itunes 10 on my macbook with snow lepard will not play in the regular cd player.  How do I burn Cds that will pay in a reg old cd player?

    When the computer was new, I had the same issue I have now.  It was new and I could not burn to play on a reg cd player. Today, I can not burn to play on a reg cd player. Inbetween, I could not burn to play on a reg cd player.  I keep giving up and then trying months later.
           I have recently made the cds that play on the computer.  I have also tried in the last month to make a dvd copy, it played.  I have gone to people's homes and tried the cd's burned in my computer. They are not recognized.  This last round I have only used the cd-r but have tried many others in the past. I am running out of money to keep buying different brands, kinds, etc.  I figured it must be my lac of knowledge and am trying to get some new here. 
    Sincerely,
    Paul

  • How can I burn CDs that will play on my car stereo CD player?

    How can I burn CDs that will play on my car stereo CD player?

    Make sure the format when you burn your playlist is one your car's CD player will recognize. Typically mp3 songs are readable now but when in doubt, burn an audio cd. Yes, you will get less songs per cd (as compared to mp3 formatted one) but you are guaranteed the cd will work in any place.  Most cars have it written on the radio somewhere what formats it can read for CDs.. Good luck!

  • How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    Hello,
                  Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
                  Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
    Thank you,
    Best regards,
    paio

  • How to get  Network Interface Cards information ?

    hi all,
    how to get Network Interface Cards information and tcp window size by java ?

    807262 wrote:
    how to get Network Interface Cards information Have a look at [url http://download.oracle.com/javase/6/docs/api/java/net/NetworkInterface.html#getNetworkInterfaces%28%29]NetworkInterface.getNetworkInterfaces()
    tcp window sizeWhich one?
    SO_RCVBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getReceiveBufferSize%28%29]Socket.getReceiveBufferSize()^
    SO_SNDBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getSendBufferSize%28%29]Socket.getSendBufferSize()^

  • I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    I have a I-mac that is not able to upgrade the os past 10.7.5, when I go to upgrade Pages it says i have to be running os 10.10, how can I get Pages that will run with os 10.7.5.

    Click here and follow the instructions. If they’re not applicable, buy an iWork 09 DVD from a source such as Amazon or eBay.
    (116937)

  • I get no wireless signal in my home, so need a network extender for the Lumia 2520.  Specs indicate LTE FDD network:Band 20 (800MHz), Band 3 (1800 MHz), Band 7 (2600 MHz). Does Verizon offer a network extender that will work with the Lumia?

    I get no wireless signal inside my home, only outside, so I need a network extender that will work for the Lumia 2520, Specs indicate it uses LTE FDD netork Band 20 (800MHz), Band 3 (1800MHz), Band 7 (2600 MHz).  Does Verizon offer a network extender that will work with the Lumia 2520?

    We want to make sure you get service in your home Astromandata! I can check your area to see if you qualify for the network extender. What's your zip code? If it does qualify than you will be able to use it for your Lumia to support your voice services. Find out more information here: http://spr.ly/6585fNlt Is anyone else having this issue?
    AmberF_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Is there an adaptor or interface that will allow me to connect a thunderbolt device to my late 2011 Mac Pro Firewire 800 port?

    Is there an adaptor or interface that will allow me to connect a thunderbolt device to my late 2011 Mac Pro Firewire 800 port?

    lllaass is correct.
    To use ThunderBolt devices, a computer must have left the factory with a ThunderBolt port.
    There are no known work-arounds, and there are not likely to be any because Intel controls the chips and is not interested in anything less than the full [including Video features] implementation.

  • How to create a form that will allow the applicant to upload their photo

    I have Adobe Acrobat 9 Pro Extended and I know how to create forms that require text input.
    How to create a form that will allow the applicant to upload their photo? I alo wish to know how to upload a photograph so that I can test the form I created.
    Thank you
    Adrian Watts

    test@ORA10G> with x as (
      2    select '234-1111' as customer, to_date('2-Jan-2008','dd-Mon-yyyy') as call_date, 'Order product' as reason from dual union all
      3    select '234-1132', to_date('3-Jan-2008','dd-Mon-yyyy'), 'Request info' from dual union all
      4    select '231-1154', to_date('4-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
      5    select '234-1111', to_date('2-Nov-2007','dd-Mon-yyyy'), 'Order product' from dual union all
      6    select '234-1132', to_date('9-Jan-2008','dd-Mon-yyyy'), 'Request info' from dual union all
      7    select '231-1154', to_date('9-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
      8    select '234-1111', to_date('5-Dec-2007','dd-Mon-yyyy'), 'Order product' from dual union all
      9    select '234-1131', to_date('7-Dec-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    10    select '231-1154', to_date('1-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    11    select '234-1111', to_date('8-Jan-2008','dd-Mon-yyyy'), 'Order product' from dual union all
    12    select '234-1131', to_date('3-Dec-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    13    select '231-1154', to_date('4-Nov-2007','dd-Mon-yyyy'), 'Forward to Sales' from dual)
    14  --
    15  select customer,max(call_date), reason
    16  from x
    17  where reason = 'Request info'
    18  group by customer, reason;
    CUSTOMER MAX(CALL_ REASON
    231-1154 09-SEP-07 Request info
    234-1131 07-DEC-07 Request info
    234-1132 09-JAN-08 Request info
    test@ORA10G>
    test@ORA10G>pratz

  • How to create a program that will accept a series of strings of 0 and 1 onl

    how to create a program that will accept a series of strings of 0 and 1 only then displays 0 as 48 and displays 1 as 49.

    Isn't one thread enough for your homework?
    http://forum.java.sun.com/thread.jspa?threadID=5253850&messageID=10051155#10051155

  • How to call a procdure that will return me list of values(JSF,ADF BC)

    hi all,
    any one can help me how to call a procedure that will return me list of value with using adf and jsf

    I did this with a LoginModule that returned a list of user roles. Below is the Java call
    stmt = conn.prepareCall(authquery);
            stmt.registerOutParameter(1, OracleTypes.CURSOR);
            stmt.setString(2,username);
            stmt.setString(3,new String(password));
            // realm is null if not set
            stmt.setString(4,_application_realm);
            stmt.execute();
            rolesResultSet = (ResultSet)stmt.getObject(1); 
            stmt.close();authquery is the name of a procedure that returned a ref Cursor
    CREATE OR REPLACE PACKAGE "DBPROCLM" IS
      TYPE principal_ref IS REF CURSOR;
      function get_user_authentication(p_username in varchar2, p_password in varchar2, p_realm varchar2) return principal_ref;
    END;
    CREATE OR REPLACE PACKAGE BODY "DBPROCLM" IS
      FUNCTION get_user_authentication (p_username in varchar2, p_password in varchar2, p_realm varchar2)
      RETURN principal_ref
      AS
        var_username varchar2(100);
        var_userid number(10);
        var_password varchar2(100);
        role_cursor principal_ref;
        FAILED_AUTHENTICATION exception;
      BEGIN
        select userid, username, password into var_userid, var_username, var_password from sec_users where username = p_username;
        if (var_password = p_password) then
          begin
            if (p_realm is null) then
              open role_cursor for
                select rolename from user_roles_view where userid = var_userid;
            else
              open role_cursor for
                select rolename from user_roles_view where userid = var_userid and realm=p_realm;
            end if; -- p_realm check
          end;
          -- if password doesn't match, raise Excpetion for LM to
          -- abort the authentication process
        else raise FAILED_AUTHENTICATION;
        end if;
        RETURN role_cursor;
      END get_user_authentication;
    END;You only ned to expose the call to teh procedure in a method (e.g. on ADF BC Application Module) and create a method binding for it.
    Frank

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

  • HT5312 I forget my answer of two security questions, there is a typo error in rescue email address. How to resolve this so that I can use my Apple ID for online shopping?

    I forget my answer of two security questions, there is a typo error in rescue email address. How to resolve this so that I can use my Apple ID for online shopping?

    You won't be able to change your rescue email address until you can answer your questions, you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to correct your rescue email address for potential future use

  • I'm trying to put a swf file on a dvd that will autostart using OS X

    I'm trying to put a swf file on a dvd that will autostart using OS X and Director MX.  I imported one swf file that has nested movie clips.
    Some of them play and some don't.
    Any suggestions?

    The swf file runs fine on a computer. But now they want me to export it as a .mov and put it  on a dvd that customers without computers can put in a  tv/dvd player. They want it to auto start. When I export it as .mov, QuickTime only plays the first 20 seconds and not all of the nested movie clips play. They don't want it to play in a QuickTime player. Do I need to upgrade to QuickTime Pro? Any suggestions?Thanks
    Date: Sun, 20 Dec 2009 16:24:57 -0700
    From: [email protected]
    To: [email protected]
    Subject: I'm trying to put a swf file on a dvd that will autostart using OS X
    There is no autostart or autorun in OS X. Can you give more detail on the problem with the flash swf files?
    >

Maybe you are looking for

  • How to determine the time of a RONA call

       What table do i need to lookup to determin the time that a RONA call came in for a particular agent  ? Hemal

  • BPEL Database Adapter data to B2B TP

    Hi SOA/BPEL Experts In BPEL How we are going to Map my Data base data ie which i got from Database Adapter to the Partner Link Adapter Service Trading Partner Data for ex EDI, X12 V4010 210's. My Database data which i want to send to the Partner <---

  • Unable to check registry for Visual C++ 2008 redistributables using WIX Bootsraper

    I am able to check registry for Visual C++ 2010 redistributables using WIX Bootsrapper using below code util:RegistrySearch Id="VC2010x86" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86" Variable="CPP2010Redistx86" Value="Insta

  • Constant crashes with 3.04

    I've never had trouble with Safari until I upgrade via 10.4.11 to v3 Now it constantly crashes. Just no real reason. I've gone as far as to do a complete archive install of the system, threw away the prefs and plist and even reset everything. Made su

  • Findstr on 1 file and outputting variables to an outfile

    Hi, I am quite new to the scripting world. I am wondering if you could help me out here. I have a file in a directory (InFile) and would need to compare them to a file similar to what Excel's vlookup is for (CompareFile). Each line in InFile has mult