[pisa-src] r1799 - in trunk/libpisa: packet.c packet.h

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 26 Nov 2009 14:25:23 +0100

Author: tjansen
Date: Thu Nov 26 14:25:23 2009
New Revision: 1799

Log:
Removed unused function is_pisatun_packet().

Modified:
   trunk/libpisa/packet.c
   trunk/libpisa/packet.h

Modified: trunk/libpisa/packet.c
==============================================================================
--- trunk/libpisa/packet.c      Thu Nov 26 14:22:29 2009        (r1798)
+++ trunk/libpisa/packet.c      Thu Nov 26 14:25:23 2009        (r1799)
@@ -16,22 +16,6 @@
 #include "util.h"
 
 /**
- * Check if the given buffer is a valid PISA tunnel control packet
- *
- * @param data   pointer to the data to be checked
- * @return true or false
- */
-bool is_pisatun_packet(const char *data)
-{
-       const pisa_packet *pkt = (const pisa_packet *)data;
-
-       if ((pisa_get_packet_type(pkt) & PISA_TYPE_MASK) == PISA_PKTTYPE_TUN)
-               return true;
-       else
-               return false;
-}
-
-/**
  * Send a control packet.
  * @param fd file descriptor for the socket
  * @param addr destination address

Modified: trunk/libpisa/packet.h
==============================================================================
--- trunk/libpisa/packet.h      Thu Nov 26 14:22:29 2009        (r1798)
+++ trunk/libpisa/packet.h      Thu Nov 26 14:25:23 2009        (r1799)
@@ -123,8 +123,6 @@
        } body;
 } __attribute__ ((packed)) pisa_packet;
 
-bool is_pisatun_packet(const char *data);
-
 void pisa_send_control_packet_ipv4(int fd, struct sockaddr_in* addr, 
pisa_packet *p);
 void pisa_send_control_packet_ipv6(int fd, struct sockaddr_in6* addr, 
pisa_packet *p);
 void pisa_send_control_packet_ipv4_type(int fd, struct sockaddr_in* addr, 
pisa_tlv_type type);

Other related posts:

  • » [pisa-src] r1799 - in trunk/libpisa: packet.c packet.h - Thomas Jansen