use existing utility method
authorJosh Blum <josh@joshknows.com>
Mon, 28 Sep 2009 19:14:32 +0000 (12:14 -0700)
committerJosh Blum <josh@joshknows.com>
Mon, 28 Sep 2009 19:14:32 +0000 (12:14 -0700)
vrt/lib/expanded_header.cc

index d7da06af48a082fd45ef7bd1707a17e9fa21c377..0eb2042d8f33796096e645db3f44b1e8504bdd18 100644 (file)
@@ -113,7 +113,7 @@ namespace vrt {
     }
 
     /* is this a if context packet? */
-    if (ntohl(p[0]) & VRTH_PT_IF_CONTEXT){
+    if (h->if_context_p()){
         *payload = p;
         *n32_bit_words_payload = n32_bit_words_packet;
     }