RFC3678 API support

Marco d'Itri md at Linux.IT
Fri Aug 20 09:05:02 UTC 2004


Package: strace
Severity: wishlist
Tags: patch upstream

diff -urN strace-4.5.6.orig/net.c strace-4.5.6/net.c
--- strace-4.5.6.orig/net.c	2004-07-12 09:44:08.000000000 +0200
+++ strace-4.5.6/net.c	2004-08-20 17:24:43.000000000 +0200
@@ -667,6 +668,36 @@
 #ifdef IP_DROP_MEMBERSHIP
 	{ IP_DROP_MEMBERSHIP,	"IP_DROP_MEMBERSHIP"	},
 #endif
+#ifdef IP_UNBLOCK_SOURCE
+	{ IP_UNBLOCK_SOURCE,	"IP_UNBLOCK_SOURCE"	},
+#endif
+#ifdef IP_BLOCK_SOURCE
+	{ IP_BLOCK_SOURCE,	"IP_BLOCK_SOURCE"	},
+#endif
+#ifdef IP_ADD_SOURCE_MEMBERSHIP
+	{ IP_ADD_SOURCE_MEMBERSHIP,	"IP_ADD_SOURCE_MEMBERSHIP"	},
+#endif
+#ifdef IP_DROP_SOURCE_MEMBERSHIP
+	{ IP_DROP_SOURCE_MEMBERSHIP,	"IP_DROP_SOURCE_MEMBERSHIP"	},
+#endif
+#ifdef MCAST_JOIN_GROUP
+	{ MCAST_JOIN_GROUP,	"MCAST_JOIN_GROUP"	},
+#endif
+#ifdef MCAST_BLOCK_SOURCE
+	{ MCAST_BLOCK_SOURCE,	"MCAST_BLOCK_SOURCE"	},
+#endif
+#ifdef MCAST_UNBLOCK_SOURCE
+	{ MCAST_UNBLOCK_SOURCE,	"MCAST_UNBLOCK_SOURCE"	},
+#endif
+#ifdef MCAST_LEAVE_GROUP
+	{ MCAST_LEAVE_GROUP,	"MCAST_LEAVE_GROUP"	},
+#endif
+#ifdef MCAST_JOIN_SOURCE_GROUP
+	{ MCAST_JOIN_SOURCE_GROUP,	"MCAST_JOIN_SOURCE_GROUP"	},
+#endif
+#ifdef MCAST_LEAVE_SOURCE_GROUP
+	{ MCAST_LEAVE_SOURCE_GROUP,	"MCAST_LEAVE_SOURCE_GROUP"	},
+#endif
 #ifdef IP_BROADCAST_IF
 	{ IP_BROADCAST_IF,	"IP_BROADCAST_IF"	},
 #endif
@@ -677,6 +708,30 @@
 };
 #endif /* SOL_IP */
 
+#ifdef SOL_IPV6
+static struct xlat sockipv6options[] = {
+#ifdef MCAST_JOIN_GROUP
+	{ MCAST_JOIN_GROUP,	"MCAST_JOIN_GROUP"	},
+#endif
+#ifdef MCAST_BLOCK_SOURCE
+	{ MCAST_BLOCK_SOURCE,	"MCAST_BLOCK_SOURCE"	},
+#endif
+#ifdef MCAST_UNBLOCK_SOURCE
+	{ MCAST_UNBLOCK_SOURCE,	"MCAST_UNBLOCK_SOURCE"	},
+#endif
+#ifdef MCAST_LEAVE_GROUP
+	{ MCAST_LEAVE_GROUP,	"MCAST_LEAVE_GROUP"	},
+#endif
+#ifdef MCAST_JOIN_SOURCE_GROUP
+	{ MCAST_JOIN_SOURCE_GROUP,	"MCAST_JOIN_SOURCE_GROUP"	},
+#endif
+#ifdef MCAST_LEAVE_SOURCE_GROUP
+	{ MCAST_LEAVE_SOURCE_GROUP,	"MCAST_LEAVE_SOURCE_GROUP"	},
+#endif
+	{ 0,			NULL			},
+};
+#endif /* SOL_IPV6 */
+
 #ifdef SOL_IPX
 static struct xlat sockipxoptions[] = {
 	{ IPX_TYPE,     "IPX_TYPE"      },
@@ -1378,6 +1433,11 @@
 			printxval(sockipoptions, tcp->u_arg[2], "IP_???");
 			break;
 #endif
+#ifdef SOL_IPV6
+		case SOL_IPV6:
+			printxval(sockipv6options, tcp->u_arg[2], "IPV6_???");
+			break;
+#endif
 #ifdef SOL_IPX
 		case SOL_IPX:
 			printxval(sockipxoptions, tcp->u_arg[2], "IPX_???");
@@ -1505,6 +1565,11 @@
 		printxval(sockipoptions, name, "IP_???");
 		break;
 #endif
+#ifdef SOL_IPV6
+	    case SOL_IPV6:
+		printxval(sockipv6options, name, "IPV6_???");
+		break;
+#endif
 #ifdef SOL_IPX
 	    case SOL_IPX:
 		printxval(sockipxoptions, name, "IPX_???");


-- 
ciao, |
Marco | [7599 spuOPOuBPye0Q]




More information about the Strace-devel mailing list