Lines Matching +full:c +full:- +full:family +full:- +full:name
17 .Sh NAME
67 family of structures are designed to represent network addresses for
81 directly, but instead cast the appropriate networking family specific
88 family begins with a member of the same type, the
94 .Bd -literal -offset indent
95 sa_family_t sa_family /* address family */
96 char sa_data[] /* socket address (variable-length data) */
101 corresponds to the socket family that's actually in use. The following
102 table describes the mapping between the address family and the
110 .Bl -column -offset indent ".Sy Socket Structure" ".Sy Address Family"
111 .It Sy Socket Structure Ta Sy Address Family
123 that is not associated with an address family. Instead, it is large
135 .Bd -literal -offset indent
136 sa_family_t ss_family /* address family */
152 and cast to the appropriate family-specific structure type based on the
160 .Bd -literal -offset indent
161 sa_family_t sin_family /* address family */
205 network byte-order. See
221 .Xr bzero 3C
223 .Xr memset 3C .
229 .Bd -literal -offset indent
230 sa_family_t sin6_family /* address family */
259 describes the 16-byte IPv6 address. In addition to the function
292 .Bd -literal -offset indent
293 sa_family_t sun_family /* address family */
294 char sun_path[108] /* path name */
312 structure is used to describe a layer 2 link-level address. This is used
316 .Bd -literal -offset indent
317 ushort_t sdl_family; /* address family */
320 uchar_t sdl_nlen; /* interface name length */
323 char sdl_data[244]; /* contains both if name and ll address
332 is non-zero this refers to the interface identifier that corresponds to
354 members together describe a character string containing the interface name and
355 the link-layer network address. The name starts at the beginning of
359 The name of the interface occupies the next
363 terminated. The link-layer network address begins immediately after the
364 interface name, and is
368 returns the start of the link-layer network address.
369 The interpretation of the link-layer address depends on the value of
373 then the address is expressed as a 6-byte MAC address.
384 .Bd -literal -offset indent
385 uint16_t sll_family; /* address family */
400 refers to a link-layer protocol. For example, when capturing Ethernet frames
431 a packet that was broadcast across the link-layer;
433 a packet that was sent to a link-layer multicast address; and
457 on port 80. This program should be compiled with the C compiler
460 was named ip4.c, then the full link line would be
461 .Ic cc ip4.c -lsocket -lnsl .
462 .Bd -literal
508 should be compiled with the C compiler
511 was named ip6.c, then the full compiler line would be
512 .Ic cc ip6.c -lsocket -lnsl .
513 .Bd -literal