Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Address Family?

Tags:

When I read about socket programming, I get to know that AF_ stands for Address Family. But literally, a family should have many members. So, what are the members of, say, AF_INET address family?

In my opinion, I think it would be more appropriate to say Address Type than Addresss Family. Also this applies to PF (Protocol Family).

Thanks.

like image 597
smwikipedia Avatar asked Feb 12 '11 07:02

smwikipedia


People also ask

What is the meaning of address-family?

The address-family <family> <type> command defines BGP behavior for each specific supported case. The most common address families are ipv4 unicast and ipv6 unicast . The other possible choices supported in this version are ipv4 multicast and ipv6 multicast .

What is address-family IPv4?

Now, the "address-family ipv4" declares neighbors with whom we want to exchange normal "IPv4 unicast" routes. This may be surprising because to exchange IPv4 routes with a neighbor, it is sufficient to simply define that neighbor by its address.

What is address-family in Cisco?

Address Families-enabled routers establish peers based on IPv6 link-local addresses, but can advertise IPv4 routes. This capability allows IPv4 routers in different subnets to peer with each other through the IPv6 network (see Figure 1).

Which of the following is Internet address-family?

Members of AF_INET address family are IPv4 addresses. Members of AF_INET6 address family are IPv6 addresses. Members of AF_UNIX address family are names of Unix domain sockets ( /var/run/mysqld/mysqld. sock is an example).


2 Answers

Members of AF_INET address family are IPv4 addresses.

Members of AF_INET6 address family are IPv6 addresses.

Members of AF_UNIX address family are names of Unix domain sockets (/var/run/mysqld/mysqld.sock is an example).

Members of AF_IPX address family are IPX addresses, and so on. I don't think you really need to distinguish between family and type here. They are merely synonyms, except that family looks like more specialized, well-suited for this purpose, whilst type is a too much general word.

like image 87
ulidtko Avatar answered Sep 20 '22 18:09

ulidtko


  Name                   Purpose                     AF_UNIX, AF_LOCAL      Local communication                  AF_INET                IPv4 Internet protocols            AF_INET6               IPv6 Internet protocols    AF_IPX                 IPX - Novell protocols    AF_NETLINK             Kernel user interface device        AF_X25                 ITU-T X.25 / ISO-8208 protocol     AF_AX25                Amateur radio AX.25 protocol    AF_ATMPVC              Access to raw ATM PVCs    AF_APPLETALK           Appletalk                          AF_PACKET              Low level packet interface    
like image 25
Kiran Francis Avatar answered Sep 19 '22 18:09

Kiran Francis