代码搜索:AF_INET
找到约 1,347 项符合「AF_INET」的源代码
代码结果 1,347
www.eeworm.com/read/172888/9683330
c sock_get_port.c
#include "unp.h"
int
sock_get_port(const struct sockaddr *sa, socklen_t salen)
{
switch (sa->sa_family) {
case AF_INET: {
struct sockaddr_in *sin = (struct sockaddr_in *) sa;
return(s
www.eeworm.com/read/334895/12564038
c inetaton.c
/* inetaton.c:
*
* Example using inet_aton(3) :
*/
#include
#include
#include
#include
#include
#include
#include
www.eeworm.com/read/334895/12564042
c inetntoa.c
/* inetntoa.c:
*
* Example using inet_ntoa(3) :
*/
#include
#include
#include
#include
#include
#include
#include
www.eeworm.com/read/334895/12564048
c inetaddr.c
/* inetaddr.c:
*
* Example using inet_addr(3) :
*/
#include
#include
#include
#include
#include
#include
#include
www.eeworm.com/read/334895/12564172
c sckname.c
/* sckname.c :
*
* Demonstrate getsockname(2) :
*/
#include
#include
#include
#include
#include
#include
#include
#in
www.eeworm.com/read/334895/12564177
makefile
CC= gcc
STD= _GNU_SOURCE
WARN= -Wall
.c.o:
$(CC) -c $(CFLAGS) -D$(STD) $(WARN) $<
all: af_unix af_unix2 af_inet af_x25 af_ax25
af_unix: af_unix.o
$(CC) af_unix.o -o af_unix
af_unix2: af_unix2
www.eeworm.com/read/112444/15485281
h icmpd.h
#include "unpicmpd.h"
struct client {
int connfd; /* Unix domain stream socket to client */
int family; /* AF_INET or AF_INET6 */
int lport; /* local port bound to client's UDP socket */
www.eeworm.com/read/181590/9245189
h config_types.h
#ifndef CONFIG_TYPES_H
#define CONFIG_TYPES_H
struct hostapd_ip_addr {
union {
struct in_addr v4;
#ifdef CONFIG_IPV6
struct in6_addr v6;
#endif /* CONFIG_IPV6 */
} u;
int af; /* AF_INET / AF_I
www.eeworm.com/read/169087/9881335
h config_types.h
#ifndef CONFIG_TYPES_H
#define CONFIG_TYPES_H
struct hostapd_ip_addr {
union {
struct in_addr v4;
#ifdef CONFIG_IPV6
struct in6_addr v6;
#endif /* CONFIG_IPV6 */
} u;
int af; /* AF_INET / AF_I
www.eeworm.com/read/423392/10563757
h config_types.h
#ifndef CONFIG_TYPES_H
#define CONFIG_TYPES_H
struct hostapd_ip_addr {
union {
struct in_addr v4;
#ifdef CONFIG_IPV6
struct in6_addr v6;
#endif /* CONFIG_IPV6 */
} u;
int af; /* AF_INET / AF_I