appropriate IPPROTO_* constant for AF_INET and AF_INET6 , and to 0 otherwise ... represented in the following structure: struct inet_diag_req_v2 { __u8 sdiag_family; __u8 sdiagsuperset of previous */ tcp_socket = socket(AF_INET, SOCK_STREAM, 0); udp_socket = socket ... INET, SOCK_DGRAM, 0); raw_socket = socket(AF_INET, SOCK_RAW, protocol ); DESCRIPTION L…operation. For compatibility, SIOCGIFADDR returns only AF_INET addresses, SIOCSIFADDR accepts AF_INET ... deletes only AF_INET6 addresses. A AF_INET address can be deleted by setti…grouped into protocol families such as AF_INET , AF_IPX , and AF_PACKET , and socket ... only for some socket types, particularly AF_INET sockets. It is not supported for packetcontrolled via ioctl (2) on any AF_INET socket. The ARP module maintains a cache ... Three ioctls are available on all AF_INET sockets. They take a pointerdifferent address family. Only AF_INET is currently supported for that. It is allowed only ... pointer to an integer containing AF_INET . This is useful to pass v4-mapped socketsnetinet/in.h> #include <netinet/tcp.h> tcp_socket = socket(AF_INET, SOCK_STREAM, 0); DESCRIPTION This ... type in sin_family was not AF_INET . EPIPE The other end closed the socketdomain ( addr ->sa_family ) must be AF_INET (or AF_INET6 ). It's advised ... exact match. While IP family ( AF_INET or AF_INET6 ) must be compatible, thatfile descriptor sd_is_socket_inet (3) — Check the type of a file descriptorsocket was with the call: socket(AF_INET, SOCK_PACKET, protocol) This is still supportedkernel (see sock_diag (7)). NETLINK_INET_DIAG (since Linux 2.6.14) An obsolete synonymaddress family type (currently AF_INET or AF_INET6 ), ifa_prefixlen is the lengthudev_device_new_from_syspath (3) AF_INET journald.conf (5), org.freedesktop.machine1 (5), org.freedesktop.resolve1machines WHERE ip_address IN (VALUES('192.168.0.1'::inet), ('192.168.0.10'), ('192.168.1.43')); Tip For simple IN testssys/socket.h> #include <netinet/in.h> raw_socket = socket(AF_INET, SOCK_RAW, int protocol ); DESCRIPTION Raw socketsnetinet/in.h> #include <netinet/udp.h> udp_socket = socket(AF_INET, SOCK_DGRAM, 0); DESCRIPTION Thisfurther information, see unix (7). AF_INET IPv4 Internet protocols. For further informationProtocol SYNOPSIS #include <sys/socket.h> sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE); DESCRIPTION Thisgetutxent() getutxid() getutxline() gmtime() hcreate() hdestroy() hsearch() inet_ntoa() l64a() lgamma() lgammaf() lgammal() localeconv() localtime1AaCcdFfgHhikLlmnopqRrSsTtux .Nm route Cm add Fl inet Ar destination gateway .Nm locate.updatedb Op Fl \-fcodes