I think functions about ARP and RARP would help. I know how to do this under Windows, but I have no idea about such things under *nix.




Talos Chen, 22

Shanghai, China

[EMAIL PROTECTED]


From: "Kyle Hamilton" <[EMAIL PROTECTED]>
Reply-To: openssl-users@openssl.org
To: openssl-users@openssl.org
Subject: Re: How to access the IP/Ethernet addresses using OpenSSL
Date: Sun, 5 Mar 2006 17:18:32 -0700
>In OpenSSL, you can get the underlying socket descriptor (using int
>SSL_get_fd(const SSL *ssl)) and then call getpeername() on that
>descriptor.
>
>Accessing the hardware addresses is very system-specific. It
>generally involves looking into the ARP cache, and making sure you're
>on the same subnet as the peer.
>
>-Kyle H
>
>On 3/5/06, kashif javed <[EMAIL PROTECTED]> wrote:
> > Dear,
> >
> > I am developing an application on my RedHat Linux 9.0
> > system using its default OpenSSL 0.9.7, can you please
> > help me understand how can i access the IP addresses
> > of both the source and destination nodes on
> > application layer? Also how can i access the Hardware
> > addresses or Ethernet addresses of both source and
> > destination(to whom we forward the packets)?
> >
> > Regards,
> >
> > Kashif
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > ______________________________________________________________________
> > OpenSSL Project http://www.openssl.org
> > User Support Mailing List openssl-users@openssl.org
> > Automated List Manager [EMAIL PROTECTED]
> >
>______________________________________________________________________
>OpenSSL Project http://www.openssl.org
>User Support Mailing List openssl-users@openssl.org
>Automated List Manager [EMAIL PROTECTED]


免费下 载 MSN Explorer Get 2 months FREE*. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]

Reply via email to