[netperf-dev] netperf2 commit notice r359 - trunk/src

raj at netperf.org raj at netperf.org
Fri Sep 17 16:19:14 PDT 2010


Author: raj
Date: 2010-09-17 16:19:14 -0700 (Fri, 17 Sep 2010)
New Revision: 359

Modified:
   trunk/src/netlib.c
   trunk/src/netsh.c
Log:
protocols protocols everywhere but will any of them transmit

Modified: trunk/src/netlib.c
===================================================================
--- trunk/src/netlib.c	2010-09-17 22:36:05 UTC (rev 358)
+++ trunk/src/netlib.c	2010-09-17 23:19:14 UTC (rev 359)
@@ -523,6 +523,11 @@
     return "IPPROTO_DCCP";
     break;
 #endif
+#if defined(IPPROTO_UDPLITE)
+  case IPPROTO_UDPLITE:
+    return "IPPROTO_UDPLITE";
+    break;
+#endif
   default:
     snprintf(unknown,sizeof(unknown),"IPPROTO_UNKNOWN(%d)",protocol);
     return(unknown);

Modified: trunk/src/netsh.c
===================================================================
--- trunk/src/netsh.c	2010-09-17 22:36:05 UTC (rev 358)
+++ trunk/src/netsh.c	2010-09-17 23:19:14 UTC (rev 359)
@@ -446,6 +446,7 @@
     return IPPROTO_TCP;
   }
 #endif
+
 #ifdef IPPROTO_UDP
   if (!strcasecmp(temp,"udp")) {
     socket_type = SOCK_DGRAM;
@@ -470,6 +471,12 @@
     return IPPROTO_DCCP;
   }
 #endif
+#ifdef IPPROTO_UDPLITE
+  if (!strcasecmp(temp,"udplite")) {
+    socket_type = SOCK_DGRAM;
+    return IPPROTO_UDPLITE;
+  }
+#endif
   return IPPROTO_IP;
 }
 



More information about the netperf-dev mailing list