[sr-dev] git:andrei/raw_sock: core: always compile the raw sockets code on linux

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Aug 10 11:19:38 CEST 2010


Module: sip-router
Branch: andrei/raw_sock
Commit: 53cc96bd61778fec14ebabd6a6182313bb778aa9
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=53cc96bd61778fec14ebabd6a6182313bb778aa9

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Aug 10 11:16:38 2010 +0200

core: always compile the raw sockets code on linux

Raw sockets support is compiled always on linux.
Note that while the code is there, one still needs to explicitly
enable them in ser.cfg or at runtime (e.g. setting  udp4_raw = 1 at
runtime will switch to using raw sockets for sending if possible).

---

 Makefile.defs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.defs b/Makefile.defs
index 1eb19f5..4cc1ee6 100644
--- a/Makefile.defs
+++ b/Makefile.defs
@@ -1628,7 +1628,7 @@ ifeq ($(OS), linux)
 	use_futex= yes
 	C_DEFS+=-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD \
 			-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H \
-			-DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER
+			-DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS
 	ifneq ($(found_lock_method), yes)
 		#C_DEFS+= -DUSE_POSIX_SEM
 		C_DEFS+=-DUSE_PTHREAD_MUTEX




More information about the sr-dev mailing list