p2pd: remove unused IsBroadcast
authorFerry Huberts <f.huberts@mindef.nl>
Tue, 6 Dec 2011 11:44:53 +0000 (12:44 +0100)
committerFerry Huberts <f.huberts@mindef.nl>
Tue, 6 Dec 2011 12:10:54 +0000 (13:10 +0100)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/p2pd/src/Packet.c
lib/p2pd/src/Packet.h

index 13769a3..c7f6daa 100644 (file)
@@ -119,18 +119,6 @@ int IsMulticastv4(struct ip* hdr)
   return 0;
 }
 
-int IsBroadcast(struct ip* hdr)
-{
-  uint32_t addr;
-
-  assert(hdr != NULL);
-
-  memcpy(&addr, &hdr->ip_dst.s_addr, sizeof(addr));
-  if (addr == 0xFFFFFFFF)
-    return 1;
-    
-  return 0;
-}
 
 /* -------------------------------------------------------------------------
  * Function   : IsIpv6Fragment
index eff3cfd..0804d0a 100644 (file)
@@ -72,7 +72,6 @@ int IsIpFragment(unsigned char* ipPacket);
 u_int16_t GetIpTotalLength(unsigned char* ipPacket);
 int IsIpv4Fragment(struct ip*);
 int IsMulticastv4(struct ip*);
-int IsBroadcast(struct ip*);
 int IsIpv6Fragment(struct ip6_hdr*);
 int IsMulticastv6(struct ip6_hdr*);
 u_int8_t GetTtl(unsigned char* ipPacket);