OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [net-common-tcpip-manpages-net-addrcmp.html] - Blame information for rev 598

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 unneback
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2
<!-- This material may be distributed only subject to the terms      -->
3
<!-- and conditions set forth in the Open Publication License, v1.0  -->
4
<!-- or later (the latest version is presently available at          -->
5
<!-- http://www.opencontent.org/openpub/).                           -->
6
<!-- Distribution of the work or derivative of the work in any       -->
7
<!-- standard (paper) book form is prohibited unless prior           -->
8
<!-- permission is obtained from the copyright holder.               -->
9
<HTML
10
><HEAD
11
><TITLE
12
>net_addrcmp</TITLE
13
><meta name="MSSmartTagsPreventParsing" content="TRUE">
14
<META
15
NAME="GENERATOR"
16
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17
"><LINK
18
REL="HOME"
19
TITLE="eCos Reference Manual"
20
HREF="ecos-ref.html"><LINK
21
REL="UP"
22
TITLE="TCP/IP Library Reference"
23
HREF="tcpip-library-reference.html"><LINK
24
REL="PREVIOUS"
25
TITLE="link_addr"
26
HREF="net-common-tcpip-manpages-link-addr.html"><LINK
27
REL="NEXT"
28
TITLE="ns"
29
HREF="net-common-tcpip-manpages-ns.html"></HEAD
30
><BODY
31
CLASS="SECT1"
32
BGCOLOR="#FFFFFF"
33
TEXT="#000000"
34
LINK="#0000FF"
35
VLINK="#840084"
36
ALINK="#0000FF"
37
><DIV
38
CLASS="NAVHEADER"
39
><TABLE
40
SUMMARY="Header navigation table"
41
WIDTH="100%"
42
BORDER="0"
43
CELLPADDING="0"
44
CELLSPACING="0"
45
><TR
46
><TH
47
COLSPAN="3"
48
ALIGN="center"
49
>eCos Reference Manual</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="net-common-tcpip-manpages-link-addr.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Chapter 38. TCP/IP Library Reference</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="net-common-tcpip-manpages-ns.html"
72
ACCESSKEY="N"
73
>Next</A
74
></TD
75
></TR
76
></TABLE
77
><HR
78
ALIGN="LEFT"
79
WIDTH="100%"></DIV
80
><DIV
81
CLASS="SECT1"
82
><H1
83
CLASS="SECT1"
84
><A
85
NAME="NET-COMMON-TCPIP-MANPAGES-NET-ADDRCMP">net_addrcmp</H1
86
><TABLE
87
BORDER="5"
88
BGCOLOR="#E0E0F0"
89
WIDTH="70%"
90
><TR
91
><TD
92
><PRE
93
CLASS="SCREEN"
94
>NET_ADDRCMP(3)          System Library Functions Manual         NET_ADDRCMP(3)
95
 
96
NAME
97
     net_addrcmp - compare socket address structures
98
 
99
SYNOPSIS
100
     #include &lt;netdb.h&#62;
101
 
102
     int
103
     net_addrcmp(struct sockaddr *sa1, struct sockaddr *sa2);
104
 
105
DESCRIPTION
106
     The net_addrcmp() function compares two socket address structures, sa1
107
     and sa2.
108
 
109
RETURN VALUES
110
     If sa1 and sa2 are for the same address, net_addrcmp() returns 0.
111
 
112
     The sa_len fields are compared first.  If they do not match,
113
     net_addrcmp() returns -1 or 1 if sa1-&#62;sa_len is less than or greater than
114
     sa2-&#62;sa_len, respectively.
115
 
116
     Next, the sa_family members are compared.  If they do not match,
117
     net_addrcmp() returns -1 or 1 if sa1-&#62;sa_family is less than or greater
118
     than sa2-&#62;sa_family, respectively.
119
 
120
     Lastly, if each socket address structure's sa_len and sa_family fields
121
     match, the protocol-specific data (the sa_data field) is compared.  If
122
     there's a match, both sa1 and sa2 must refer to the same address, and 0
123
     is returned; otherwise, a value &#62;0 or &lt;0 is returned.
124
 
125
HISTORY
126
     A net_addrcmp() function was added in OpenBSD 2.5.
127
 
128
BSD                              July 3, 1999                              BSD
129
    </PRE
130
></TD
131
></TR
132
></TABLE
133
></DIV
134
><DIV
135
CLASS="NAVFOOTER"
136
><HR
137
ALIGN="LEFT"
138
WIDTH="100%"><TABLE
139
SUMMARY="Footer navigation table"
140
WIDTH="100%"
141
BORDER="0"
142
CELLPADDING="0"
143
CELLSPACING="0"
144
><TR
145
><TD
146
WIDTH="33%"
147
ALIGN="left"
148
VALIGN="top"
149
><A
150
HREF="net-common-tcpip-manpages-link-addr.html"
151
ACCESSKEY="P"
152
>Prev</A
153
></TD
154
><TD
155
WIDTH="34%"
156
ALIGN="center"
157
VALIGN="top"
158
><A
159
HREF="ecos-ref.html"
160
ACCESSKEY="H"
161
>Home</A
162
></TD
163
><TD
164
WIDTH="33%"
165
ALIGN="right"
166
VALIGN="top"
167
><A
168
HREF="net-common-tcpip-manpages-ns.html"
169
ACCESSKEY="N"
170
>Next</A
171
></TD
172
></TR
173
><TR
174
><TD
175
WIDTH="33%"
176
ALIGN="left"
177
VALIGN="top"
178
>link_addr</TD
179
><TD
180
WIDTH="34%"
181
ALIGN="center"
182
VALIGN="top"
183
><A
184
HREF="tcpip-library-reference.html"
185
ACCESSKEY="U"
186
>Up</A
187
></TD
188
><TD
189
WIDTH="33%"
190
ALIGN="right"
191
VALIGN="top"
192
>ns</TD
193
></TR
194
></TABLE
195
></DIV
196
></BODY
197
></HTML
198
>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.