summaryrefslogtreecommitdiff
path: root/cleopatre/application/igmp_snoopd/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/application/igmp_snoopd/src/main.c')
-rw-r--r--cleopatre/application/igmp_snoopd/src/main.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/cleopatre/application/igmp_snoopd/src/main.c b/cleopatre/application/igmp_snoopd/src/main.c
index 4aa53c59e5..8dff19f0eb 100644
--- a/cleopatre/application/igmp_snoopd/src/main.c
+++ b/cleopatre/application/igmp_snoopd/src/main.c
@@ -44,44 +44,6 @@
#define IGMPV2_HOST_LEAVE_MESSAGE IGMP_HOST_LEAVE_MESSAGE
/**
- * Process an IGMP Query.
- * \param ctx The context.
- * \param igmp_header The IGMP Header in the message.
- * \param msg_end The end of the message.
- */
-static void
-process_query (struct context *ctx, struct igmphdr *igmp_header, unsigned char *msg_end)
-{
- log_debug ("Query");
-
- /* RFC 3376 Section 7.1. Query Version Distinctions */
-
- unsigned char *start = (unsigned char *)igmp_header;
-
- size_t query_len = msg_end - start;
-
- if (query_len == 8)
- {
- if (igmp_header->code == 0)
- {
- process_v1_query ();
- }
- else
- {
- process_v2_query (ctx, igmp_header);
- }
- }
- else if (query_len >= 12)
- {
- process_v3_query (ctx, start, msg_end);
- }
- else
- {
- /* RFC: "silently ignored" */
- }
-}
-
-/**
* Process a packet.
* \param ctx The context.
* \param msg The received message.