Last change
on this file was 2036, checked in by bird, 20 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
467 bytes
|
Line | |
---|
1 | #include <stdio.h>
|
---|
2 | #include <string.h>
|
---|
3 | #include <arpa/inet.h>
|
---|
4 | #include <netinet/in.h>
|
---|
5 | #include <rpc/clnt.h>
|
---|
6 |
|
---|
7 |
|
---|
8 | static int
|
---|
9 | do_test (void)
|
---|
10 | {
|
---|
11 | struct sockaddr_in ad;
|
---|
12 | struct sockaddr_in ad2;
|
---|
13 | memset (&ad, '\0', sizeof (ad));
|
---|
14 | memset (&ad2, '\0', sizeof (ad2));
|
---|
15 |
|
---|
16 | get_myaddress (&ad);
|
---|
17 |
|
---|
18 | printf ("addr = %s:%d\n", inet_ntoa (ad.sin_addr), ad.sin_port);
|
---|
19 |
|
---|
20 | return memcmp (&ad, &ad2, sizeof (ad)) == 0;
|
---|
21 | }
|
---|
22 |
|
---|
23 | #define TEST_FUNCTION do_test ()
|
---|
24 | #include "../test-skeleton.c"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.