- Fallback to v4 sockets
- Copy usefulll binaries to bin dir when compiling git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4293 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -133,7 +133,8 @@ void* socket_udp_open(int type, const char* host, const char* port)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Setup socket address options at the client side */
|
/* Setup socket address options at the client side */
|
||||||
socket_info.ai_family = AF_UNSPEC; /* Any address family */
|
socket_info.ai_family = AF_INET; /* Any address family */
|
||||||
|
// socket_info.ai_flags |= AI_V4MAPPED; /* IPv4-mapped IPv6 address */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -180,7 +181,7 @@ void* socket_udp_open(int type, const char* host, const char* port)
|
|||||||
/*
|
/*
|
||||||
* Initiate a communication channel at the SERVER side
|
* Initiate a communication channel at the SERVER side
|
||||||
*/
|
*/
|
||||||
else
|
else {
|
||||||
if (type == SOCKET_SERVER)
|
if (type == SOCKET_SERVER)
|
||||||
{
|
{
|
||||||
/* Set socket options */
|
/* Set socket options */
|
||||||
@@ -194,6 +195,7 @@ void* socket_udp_open(int type, const char* host, const char* port)
|
|||||||
break; /* Bind succeed */
|
break; /* Bind succeed */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
close (sfd);
|
close (sfd);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ all: $(TARGET)
|
|||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||||
|
@$(CP) $@ $(BINDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJS) *.bak *~
|
$(RM) $(OBJS) *.bak *~
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ all: $(TARGET)
|
|||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
|
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
|
||||||
|
@$(CP) $@ $(BINDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJS) *.bak *~
|
$(RM) $(OBJS) *.bak *~
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ all: $(TARGET)
|
|||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||||
|
@$(CP) $(TARGET) $(BINDIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJS) *.bak *~
|
$(RM) $(OBJS) *.bak *~
|
||||||
|
|||||||
Reference in New Issue
Block a user