arprefresh: remove a comment
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 18 Apr 2013 07:27:23 +0000 (09:27 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 18 Apr 2013 07:31:55 +0000 (09:31 +0200)
What is in the comment is already in the socket filter

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/arprefresh/src/olsrd_arprefresh.c

index 939ffef..29b1121 100644 (file)
@@ -112,14 +112,7 @@ olsr_arp_event(void *foo __attribute__ ((unused)))
                             MSG_TRUNC, (struct sockaddr *)&from,
                             &fromlen);
 
-    if (0 <= size && size >= (ssize_t) sizeof(buf)
-
-                                                 /*** &&
-                   ETH_P_IP == ntohs(buf.eth.h_proto) &&
-                   IPPROTO_UDP == buf.ip.protocol &&
-                   arprefresh_portnum == ntohs(buf.udp.source) &&
-                   arprefresh_portnum == ntohs(buf.udp.dest) ***/
-      ) {
+    if (0 <= size && size >= (ssize_t) sizeof(buf)) {
       union {
         struct arpreq arp;
         struct sockaddr_in in_pa;