Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_check
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 9 Aug 2009 07:59:51 +0000 (07:59 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 9 Aug 2009 07:59:51 +0000 (07:59 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7

139 files changed:
asn1/ansi-tcap/packet-ansi_tcap-template.c
asn1/ansi_map/packet-ansi_map-template.c
asn1/camel/packet-camel-template.c
asn1/gsmmap/packet-gsmmap-template.c
asn1/inap/packet-inap-template.c
asn1/t125/packet-t125-template.c
asn1/t38/packet-t38-template.c
asn1/tcap/packet-tcap-template.c
epan/dissectors/packet-2dparityfec.c
epan/dissectors/packet-acn.c
epan/dissectors/packet-afs.c
epan/dissectors/packet-aim.c
epan/dissectors/packet-ansi_map.c
epan/dissectors/packet-ansi_tcap.c
epan/dissectors/packet-artnet.c
epan/dissectors/packet-bat.c
epan/dissectors/packet-bittorrent.c
epan/dissectors/packet-bssap.c
epan/dissectors/packet-bthci_acl.c
epan/dissectors/packet-bthci_cmd.c
epan/dissectors/packet-bthci_evt.c
epan/dissectors/packet-btl2cap.c
epan/dissectors/packet-camel.c
epan/dissectors/packet-cast.c
epan/dissectors/packet-cfm.c
epan/dissectors/packet-cigi.c
epan/dissectors/packet-cisco-wids.c
epan/dissectors/packet-ctdb.c
epan/dissectors/packet-dcm.c
epan/dissectors/packet-dcp-etsi.c
epan/dissectors/packet-dec-bpdu.c
epan/dissectors/packet-dec-dnart.c
epan/dissectors/packet-dect.c
epan/dissectors/packet-dtls.c
epan/dissectors/packet-dvmrp.c
epan/dissectors/packet-e100.c
epan/dissectors/packet-echo.c
epan/dissectors/packet-egd.c
epan/dissectors/packet-enttec.c
epan/dissectors/packet-epl.c
epan/dissectors/packet-epl_v1.c
epan/dissectors/packet-evrc.c
epan/dissectors/packet-fc.c
epan/dissectors/packet-fcels.c
epan/dissectors/packet-ff.c
epan/dissectors/packet-fix.c
epan/dissectors/packet-giop.c
epan/dissectors/packet-gprs-llc.c
epan/dissectors/packet-gsm_map.c
epan/dissectors/packet-h261.c
epan/dissectors/packet-h263p.c
epan/dissectors/packet-hpext.c
epan/dissectors/packet-hpsw.c
epan/dissectors/packet-iax2.c
epan/dissectors/packet-icq.c
epan/dissectors/packet-iec104.c
epan/dissectors/packet-ieee802154.c
epan/dissectors/packet-ieee802a.c
epan/dissectors/packet-ifcp.c
epan/dissectors/packet-igap.c
epan/dissectors/packet-igmp.c
epan/dissectors/packet-inap.c
epan/dissectors/packet-ipmi.c
epan/dissectors/packet-ipsi-ctl.c
epan/dissectors/packet-ipvs-syncd.c
epan/dissectors/packet-isakmp.c
epan/dissectors/packet-iuup.c
epan/dissectors/packet-iwarp-ddp-rdmap.c
epan/dissectors/packet-jpeg.c
epan/dissectors/packet-jxta.c
epan/dissectors/packet-kdp.c
epan/dissectors/packet-kerberos.c
epan/dissectors/packet-kink.c
epan/dissectors/packet-kpasswd.c
epan/dissectors/packet-llc.c
epan/dissectors/packet-manolito.c
epan/dissectors/packet-mpeg1.c
epan/dissectors/packet-mpls.c
epan/dissectors/packet-mrdisc.c
epan/dissectors/packet-ms-mms.c
epan/dissectors/packet-msnip.c
epan/dissectors/packet-mstp.c
epan/dissectors/packet-mysql.c
epan/dissectors/packet-nbd.c
epan/dissectors/packet-ncp-nmas.c
epan/dissectors/packet-ncp-sss.c
epan/dissectors/packet-ncp.c
epan/dissectors/packet-netdump.c
epan/dissectors/packet-netsync.c
epan/dissectors/packet-nhrp.c
epan/dissectors/packet-omapi.c
epan/dissectors/packet-osi.c
epan/dissectors/packet-ppp.c
epan/dissectors/packet-pppoe.c
epan/dissectors/packet-pw-atm.c
epan/dissectors/packet-pw-cesopsn.c
epan/dissectors/packet-pw-fr.c
epan/dissectors/packet-pw-satop.c
epan/dissectors/packet-quake3.c
epan/dissectors/packet-rdt.c
epan/dissectors/packet-retix-bpdu.c
epan/dissectors/packet-rfc2190.c
epan/dissectors/packet-rgmp.c
epan/dissectors/packet-rlogin.c
epan/dissectors/packet-rmp.c
epan/dissectors/packet-rpc.c
epan/dissectors/packet-rtcp.c
epan/dissectors/packet-rtnet.c
epan/dissectors/packet-rtp-events.c
epan/dissectors/packet-rtp.c
epan/dissectors/packet-rtps.c
epan/dissectors/packet-rtps2.c
epan/dissectors/packet-s5066.c
epan/dissectors/packet-skinny.c
epan/dissectors/packet-smb-browse.c
epan/dissectors/packet-smb-mailslot.c
epan/dissectors/packet-smb-pipe.c
epan/dissectors/packet-smb.c
epan/dissectors/packet-smb2.c
epan/dissectors/packet-ssl.c
epan/dissectors/packet-starteam.c
epan/dissectors/packet-t125.c
epan/dissectors/packet-t38.c
epan/dissectors/packet-tcap.c
epan/dissectors/packet-tcp.c
epan/dissectors/packet-teamspeak2.c
epan/dissectors/packet-vnc.c
epan/dissectors/packet-wccp.c
epan/dissectors/packet-winsrepl.c
epan/dissectors/packet-wtls.c
epan/dissectors/packet-x224.c
epan/dissectors/packet-zbee-aps.c
epan/dissectors/packet-zbee-nwk.c
epan/dissectors/packet-zbee-zdp.c
plugins/ethercat/packet-ethercat-frame.c
plugins/m2m/packet-m2m.c
plugins/opcua/opcua.c
plugins/wimax/packet-wmx.c
plugins/wimaxasncp/packet-wimaxasncp.c

index 6b107493756e945a3be8beb1cf89e8f0a5a56ca8..0a4a2220b3c8bef174458cb6b977e18eff18c90e 100644 (file)
@@ -332,10 +332,7 @@ dissect_ansi_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
         ansi_tcap_ctx_init(&ansi_tcap_private);
 
     tcap_top_tree = parent_tree;
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI TCAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI TCAP");
 
     /* create display subtree for the protocol */
     if(parent_tree){
index 001e51d0b2d969aada0713b366ac984043839f6b..aeb6881757ced631bbda084c4113facc2fa765f6 100644 (file)
@@ -4333,10 +4333,7 @@ dissect_ansi_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /*
      * Make entry in the Protocol column on summary display
      */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI MAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI MAP");
 
     /* Data from the TCAP dissector */
     if (pinfo->private_data == NULL){
index c9a85f95cc5a991dc5b26afa5434693204c86e76..c49bbfb6458e5451d1662fab19797360dc360194 100644 (file)
@@ -444,9 +444,7 @@ dissect_camel(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
   asn1_ctx_t asn1_ctx;
   asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Camel");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Camel");
 
   /* create display subtree for the protocol */
   if(parent_tree){
index e1d23c27adc346453a23550d71f8ae9f5631f717..7c205e65a489a787ae88567b967d926f9aa09901 100644 (file)
@@ -1776,10 +1776,7 @@ dissect_gsm_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM MAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM MAP");
 
     top_tree = parent_tree;
 
index 55aeb4f8fd32a215ff33ea7fd27655991db4e703..a2042a8de7d446297e52bec7a77a690627f51f0c 100644 (file)
@@ -129,10 +129,7 @@ dissect_inap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        asn1_ctx_t asn1_ctx;
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "INAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "INAP");
 
     /* create display subtree for the protocol */
     if(parent_tree){
index 1a60cf1a6709bb3e8d7066ada72c11c28fd35ce3..36dc6c01d6581dbd83be81690d807041e8b05422 100644 (file)
@@ -61,9 +61,7 @@ dissect_t125(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree)
   gboolean pc;
   gint32 tag;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.125");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.125");
   if (check_col(pinfo->cinfo, COL_INFO)){
     col_clear(pinfo->cinfo, COL_INFO);
   }
@@ -76,9 +74,7 @@ dissect_t125(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree)
   if ( (class==BER_CLASS_APP) && (tag>=101) && (tag<=104) ){
     dissect_ConnectMCSPDU_PDU(tvb, pinfo, tree);
   } else {
-    if (check_col(pinfo->cinfo, COL_INFO)){
-      col_set_str(pinfo->cinfo, COL_INFO, "T.125 payload");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "T.125 payload");
     proto_tree_add_text(tree, tvb, 0, -1, "T.125 payload");
   }
 
index be20461ab22344458c066833224d423b3381b34c..d3345e41e2bbf2213418e87bd93aa0067982ad46 100644 (file)
@@ -512,9 +512,7 @@ dissect_t38_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                }
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
@@ -561,9 +559,7 @@ dissect_t38_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tvbuff_t *next_tvb;
        guint16 ifp_packet_number=1;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 76f3f018123bd4e8085223fefd0ce7cfee0e37b3..cd896c48c38175917580d0d683275554e7f0f5d8 100644 (file)
@@ -201,10 +201,7 @@ dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
     tcap_top_tree = parent_tree;
     tcap_stat_tree = NULL;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
 
     /* create display subtree for the protocol */
     if(parent_tree){
index ffae0268fa680800d80289d8645311f9560ff637..ddb57dd9043735b117385e005dd875cb20fd5931 100644 (file)
@@ -118,10 +118,7 @@ static void dissect_2dparityfec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
    OffsetField    = tvb_get_guint8(tvb, 13);
    NAField        = tvb_get_guint8(tvb, 14);
 
-   if(check_col(pinfo->cinfo, COL_PROTOCOL))
-   {
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "2dFEC");
-   }
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "2dFEC");
 
    /* Configure the info column */
    if(check_col(pinfo->cinfo, COL_INFO))
index d6703f8301db8570a17803a89bfd70b28ef4abe1..ae9f179205ca7551d5de021e848e05b22bcecf99 100644 (file)
@@ -2587,9 +2587,7 @@ dissect_acn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 /*   }                   */
 
   /* Set the protocol column */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACN");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACN");
 
   /* Clear out stuff in the info column */
   if(check_col(pinfo->cinfo,COL_INFO)){
index 5dfb0aa8c274c23361cde4e8098e700d0301d2dc..f5d190b059b0764d373b02c1771a669dae82607b 100644 (file)
@@ -1423,9 +1423,7 @@ dissect_afs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        void (*dissector)(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *tree, int offset, int opcode);
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "AFS (RX)");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AFS (RX)");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 4446de7a51dba7a5c2a15dcc7d31874096245d32..9a1516580b79a719c0611eb3f73c46d6dfc50faa 100644 (file)
@@ -881,9 +881,7 @@ static void dissect_aim_snac(tvbuff_t *tvb, packet_info *pinfo,
 static void dissect_aim_flap_err(tvbuff_t *tvb, packet_info *pinfo, 
                                 int offset, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_INFO)) {
-    col_set_str(pinfo->cinfo, COL_INFO, "FLAP error");
-  }
+  col_set_str(pinfo->cinfo, COL_INFO, "FLAP error");
 
   /* Show the undissected payload */
   if (tvb_length_remaining(tvb, offset) > 0)
@@ -893,9 +891,7 @@ static void dissect_aim_flap_err(tvbuff_t *tvb, packet_info *pinfo,
 static void dissect_aim_keep_alive(tvbuff_t *tvb, packet_info *pinfo, 
                                   int offset, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_INFO)) {
-    col_set_str(pinfo->cinfo, COL_INFO, "Keep Alive");
-  }
+  col_set_str(pinfo->cinfo, COL_INFO, "Keep Alive");
 
   /* Show the undissected payload */
   if (tvb_length_remaining(tvb, offset) > 0)
@@ -905,9 +901,7 @@ static void dissect_aim_keep_alive(tvbuff_t *tvb, packet_info *pinfo,
 static void dissect_aim_close_conn(tvbuff_t *tvb, packet_info *pinfo, 
                                   int offset, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_INFO)) {
-    col_set_str(pinfo->cinfo, COL_INFO, "Close Connection");
-  }      
+  col_set_str(pinfo->cinfo, COL_INFO, "Close Connection");       
   
   offset = dissect_aim_tlv_sequence(tvb, pinfo, offset, tree, client_tlvs);
 }
@@ -915,9 +909,7 @@ static void dissect_aim_close_conn(tvbuff_t *tvb, packet_info *pinfo,
 static void dissect_aim_unknown_channel(tvbuff_t *tvb, packet_info *pinfo, 
                                        int offset, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_INFO)) {
-    col_set_str(pinfo->cinfo, COL_INFO, "Unknown Channel");
-  }
+  col_set_str(pinfo->cinfo, COL_INFO, "Unknown Channel");
 
   /* Show the undissected payload */
   if (tvb_length_remaining(tvb, offset) > 0)
index 72684acae6f94e4bc8902c9c92862a758fbbdc9d..d5803e02f4e177d70602628ff115af7be7b7406a 100644 (file)
@@ -16155,10 +16155,7 @@ dissect_ansi_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /*
      * Make entry in the Protocol column on summary display
      */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI MAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI MAP");
 
     /* Data from the TCAP dissector */
     if (pinfo->private_data == NULL){
index f3d6816c33de062c253334a6c925005d99d56018..b1ea0d0dd91e6484d231c6adfd6ac20eb85bba51 100644 (file)
@@ -1325,10 +1325,7 @@ dissect_ansi_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
         ansi_tcap_ctx_init(&ansi_tcap_private);
 
     tcap_top_tree = parent_tree;
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI TCAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ANSI TCAP");
 
     /* create display subtree for the protocol */
     if(parent_tree){
index 2ae1becf1141b8c7d4a0ab1e1d7ea2ba2dc5a65e..c76fa241a7120d8c89f7c7ddc0aae882066659d2 100644 (file)
@@ -1364,9 +1364,7 @@ dissect_artnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   proto_tree *ti,*hi,*si,*artnet_tree=NULL,*artnet_header_tree=NULL;
 
   /* Set the protocol column */
-  if(check_col(pinfo->cinfo,COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo,COL_PROTOCOL,"ARTNET");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ARTNET");
 
   /* Clear out stuff in the info column */
   if(check_col(pinfo->cinfo,COL_INFO)){
index 5ea8831159d5e6d3e135af79a72bfa60c33e5dfd..e9f3a468f47d2c97587745d071cc5fd7a225102f 100644 (file)
@@ -132,9 +132,7 @@ static void dissect_bat_batman(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
        guint8 version;
 
        /* set protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_BATMAN");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_BATMAN");
 
        version = tvb_get_guint8(tvb, 0);
        switch (version) {
@@ -336,9 +334,7 @@ static void dissect_bat_gw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        ip_addr = tvb_get_ptr(tvb, ip_pos, 4);
 
        /* set protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_GW");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_GW");
 
        /* Set info column */
        if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -396,9 +392,7 @@ static void dissect_bat_vis(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 version;
 
        /* set protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_VIS");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_VIS");
 
        version = tvb_get_guint8(tvb, 4);
        switch (version) {
@@ -439,9 +433,7 @@ static void dissect_bat_vis_v22(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
        vis_packeth->tq_max = tvb_get_ntohs(tvb, 6);
 
        /* set protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_VIS");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_VIS");
 
        /* Set info column */
        if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -574,9 +566,7 @@ static void dissect_bat_vis_v23(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
        vis_packeth->tq_max = tvb_get_guint8(tvb, 6);
 
        /* set protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_VIS");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BAT_VIS");
 
        /* Set info column */
        if (check_col(pinfo->cinfo, COL_INFO)) {
index 0e17a910fe9dd560f50d4b4f866c9cbbf54eaa2c..fe537a2250b95c9d9d285a2dfc7e62cadd8b02f7 100644 (file)
@@ -555,9 +555,7 @@ static void dissect_bittorrent_message (tvbuff_t *tvb, packet_info *pinfo, proto
        } */
       if (msgtype == NULL) {
          proto_tree_add_text(tree, tvb, offset, -1, "Continuation data");
-         if (check_col(pinfo->cinfo, COL_INFO)) {
-            col_set_str(pinfo->cinfo, COL_INFO, "Continuation data");
-         }
+         col_set_str(pinfo->cinfo, COL_INFO, "Continuation data");
          return;
       }
    } else {
@@ -575,9 +573,7 @@ static void dissect_bittorrent_message (tvbuff_t *tvb, packet_info *pinfo, proto
    /* Keepalive message */
    if (length == 0) {
       proto_tree_add_item(mtree, hf_bittorrent_msg_len, tvb, offset, BITTORRENT_HEADER_LENGTH, FALSE);
-      if (check_col(pinfo->cinfo, COL_INFO)) {
-         col_set_str(pinfo->cinfo, COL_INFO, "KeepAlive");
-      }
+      col_set_str(pinfo->cinfo, COL_INFO, "KeepAlive");
       return;
    }
 
@@ -686,9 +682,7 @@ static void dissect_bittorrent_welcome (tvbuff_t *tvb, packet_info *pinfo _U_, p
    int i;
    char *version;
 
-   if (check_col(pinfo->cinfo, COL_INFO)) {
-      col_set_str(pinfo->cinfo, COL_INFO, "Handshake");
-   }
+   col_set_str(pinfo->cinfo, COL_INFO, "Handshake");
 
    proto_tree_add_item(tree, hf_bittorrent_prot_name_len, tvb, offset, 1, FALSE); offset+=1;
    proto_tree_add_item(tree, hf_bittorrent_prot_name, tvb, offset, 19, FALSE); offset += 19;
@@ -721,13 +715,9 @@ static void dissect_bittorrent_tcp_pdu (tvbuff_t *tvb, packet_info *pinfo, proto
 {
    proto_item *ti;
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "BitTorrent");
-   }
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "BitTorrent");
 
-   if (check_col(pinfo->cinfo, COL_INFO)) {
-      col_set_str(pinfo->cinfo, COL_INFO, "BitTorrent ");
-   }
+   col_set_str(pinfo->cinfo, COL_INFO, "BitTorrent ");
 
    ti = proto_tree_add_item (tree, proto_bittorrent, tvb, 0, -1, FALSE);
    tree = proto_item_add_subtree(ti, ett_bittorrent);
index fd64e256cf809f7c733e59f4b3c9f03a29b189a6..0928e6d5127eac71c9e737022cf6923acadd236a 100644 (file)
@@ -1652,10 +1652,7 @@ static void dissect_bssap_plus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
        /*
         * Make entry in the Protocol column on summary display
         */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BSSAP+");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BSSAP+");
     
        if (pinfo->sccp_info && pinfo->sccp_info->data.co.assoc)
                pinfo->sccp_info->data.co.assoc->payload = SCCP_PLOAD_BSSAP;
index fb231a67b5c321c65f7a6323a5bd9a56ef2492b8..df4878802bfb9d78a08851ee1dd01f21ebd7acef 100644 (file)
@@ -102,9 +102,7 @@ dissect_btacl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        chandle_data_t *chandle_data;
        void* pd_save;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_ACL");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_ACL");
 
        if(tree){
                ti=proto_tree_add_item(tree, proto_btacl, tvb, offset, -1, FALSE);
index 41a2259ebe8f264c5532fb07f3bb0f41620d9c2d..79101d6fbf38eff0f591637138df339d2a7a9f6e 100644 (file)
@@ -1889,9 +1889,7 @@ dissect_bthci_cmd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        proto_item_append_text(ti_cmd," - %s", val_to_str(opcode, bthci_cmd_opcode_vals, "Unknown 0x%04x"));
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_CMD");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_CMD");
 
        if((check_col(pinfo->cinfo, COL_INFO))){
                col_append_fstr(pinfo->cinfo, COL_INFO, " %s", val_to_str(opcode, bthci_cmd_opcode_vals, "Unknown 0x%04x"));
index fae9d03c71d8c79d610e09e1275e828cd4b6290d..60437d3ce1a79b7b1ee21f31756f0a052eae4254 100644 (file)
@@ -2317,9 +2317,7 @@ dissect_bthci_evt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        offset++;
 
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_EVT");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_EVT");
 
        if((check_col(pinfo->cinfo, COL_INFO))){
                col_append_fstr(pinfo->cinfo, COL_INFO, " %s", val_to_str(evt_code, evt_code_vals, "Unknown 0x%08x"));
index 6863e58ad9231804b92d3503671478d8d87eabef..95aeee9c4ec35b3ce0e4aa557c87362bb0768be9 100644 (file)
@@ -1018,9 +1018,7 @@ static void dissect_btl2cap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        config_data_t *config_data;
        void* pd_save;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "L2CAP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "L2CAP");
        if(check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
                col_set_str(pinfo->cinfo, COL_INFO, pinfo->p2p_dir == P2P_DIR_SENT ? "Sent " : "Rcvd ");
index e2457bb499f7fae6c1ef3f9dd5b092e4d143652f..393f40c7d8ac55d9f24b93306a54bcdec983a0dc 100644 (file)
@@ -7194,9 +7194,7 @@ dissect_camel(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
   asn1_ctx_t asn1_ctx;
   asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Camel");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Camel");
 
   /* create display subtree for the protocol */
   if(parent_tree){
index a1ad2383743a6e7aaacc9bd9409452f25123a9f9..1ab56702fa83319cd66218bc54f3f2cf919e2186 100644 (file)
@@ -1078,13 +1078,9 @@ static void dissect_cast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   }
 
   /* Make entries in Protocol column and Info column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CAST");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "CAST");
 
-  if (check_col(pinfo->cinfo, COL_INFO)) {
-    col_set_str(pinfo->cinfo, COL_INFO, "Cast Client Control Protocol");
-  }
+  col_set_str(pinfo->cinfo, COL_INFO, "Cast Client Control Protocol");
   tcp_dissect_pdus(tvb, pinfo, tree, cast_desegment, 4, get_cast_pdu_len, dissect_cast_pdu);
 }
 
index 6a05d8dbf1879584a8d3f554657cd2f98ad9e9c6..709d5be5678353bf6a204b134f5474b8da9b5121 100644 (file)
@@ -1471,9 +1471,7 @@ static void dissect_cfm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *cfm_tlv_tree = NULL;
 
         /* display the CFM protol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CFM");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CFM");
 
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo,COL_INFO)) {
index 5bf14f0f1b48a479327696a40003480cb1ae75da..700f6b235f7e99ce33f1aafa1f32caa3c9d20386 100644 (file)
@@ -2629,9 +2629,7 @@ dissect_cigi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
 
     /* Make entries in Protocol column and Info column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "CIGI");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CIGI");
 
     /* If we have the start of frame or IG Control packet set the version
      * XXX - If another version of cigi is added to this dissector be sure to
index 80e106941aa59223dad1a11583e878a1f90420af..97dc80190f61026ac92a40c4e160aac6a5a9bd4c 100644 (file)
@@ -82,9 +82,7 @@ dissect_cwids(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        col_set_str(pinfo->cinfo, COL_PROTOCOL, "CWIDS");
        col_clear(pinfo->cinfo, COL_INFO);
 
-       if (check_col(pinfo->cinfo, COL_INFO)) {
-         col_set_str(pinfo->cinfo, COL_INFO, "Cwids: ");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "Cwids: ");
        /* FIXME: col_set_fence(pinfo->cinfo, all-cols, only addr-cols?); */
 
        cwids_tree = NULL;
index ef966fde6cb34a22c79f47c539b7f9410a4a011d..98ab58e9e34b8078cf0dad21b26db3a70f32508e 100644 (file)
@@ -1004,9 +1004,7 @@ dissect_ctdb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        }
        
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CTDB");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CTDB");
        if(check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 9e99b4311d0e7150159a26ec72148621db961ce6..0572b97b6020ff5393b44225a877d1138787e512 100644 (file)
@@ -6263,9 +6263,7 @@ dissect_dcm_main(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean i
 
     /* Mark it. This is a DICOM packet */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DICOM");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DICOM");
 
      /* Process all PDUs in the buffer */
     while (pdu_start < tlen) {
index d614c2a47bfd73e35daf21ff96f1758c23557f65..2e2c1110278091ee2a15e58090acefb03eeade6e 100644 (file)
@@ -450,9 +450,7 @@ dissect_pft(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
   guint16 rsk=0, rsz=0;
 
   pinfo->current_proto = "DCP-PFT";
-  if (check_col (pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCP-PFT");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCP-PFT");
 
   if (tree) {                   /* we are being asked for details */
     ti = proto_tree_add_item (tree, proto_pft, tvb, 0, -1, FALSE);
@@ -555,9 +553,7 @@ dissect_af (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
   tvbuff_t *next_tvb = NULL;
 
   pinfo->current_proto = "DCP-AF";
-  if (check_col (pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCP-AF");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCP-AF");
 
   if (tree) {                   /* we are being asked for details */
     ti = proto_tree_add_item (tree, proto_af, tvb, 0, -1, FALSE);
@@ -630,9 +626,7 @@ dissect_tpl(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
   guint16 maj, min;
 
   pinfo->current_proto = "DCP-TPL";
-  if (check_col (pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCP-TPL");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCP-TPL");
 
   if(tree) {
     proto_item *ti = NULL;
index fdb0ebfbd5c97f2140f038a9bbfc8fb92b106f3c..2a1388c88121d65e3b39a9c07ba8d4381b81f0ee 100644 (file)
@@ -118,9 +118,7 @@ dissect_dec_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
       proto_item *ti;
       const char *sep;
 
-      if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-           col_set_str(pinfo->cinfo, COL_PROTOCOL, "DEC_STP");
-      }
+      col_set_str(pinfo->cinfo, COL_PROTOCOL, "DEC_STP");
       if (check_col(pinfo->cinfo, COL_INFO)) {
            col_clear(pinfo->cinfo, COL_INFO);
       }
index 7e6e83745c9a408ed1d83572d25312df94c53a57..b1905076e49fc0e03f5316ee8a946f083c853281 100644 (file)
@@ -381,9 +381,7 @@ dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
         col_clear(pinfo->cinfo, COL_PROTOCOL);
     }
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "DEC DNA");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DEC DNA");
     if (check_col(pinfo->cinfo, COL_INFO)) {
         col_clear(pinfo->cinfo, COL_INFO);
     }
@@ -592,10 +590,7 @@ do_initialization_msg(
     guint8  version, eco_nr, user_eco;
     guint8  remainder_count;
 
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-        col_set_str(pinfo->cinfo, COL_INFO,
-          "Routing control, initialization message");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "Routing control, initialization message");
     proto_tree_add_item(tree, hf_dec_rt_src_node, tvb,
         my_offset, 2, TRUE);
     offset += 2;
@@ -635,10 +630,7 @@ do_verification_msg(
     guint   my_offset = offset;
     guint8  remainder_count;
 
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-      col_set_str(pinfo->cinfo, COL_INFO,
-          "Routing control, verification message");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "Routing control, verification message");
     proto_tree_add_item(tree, hf_dec_rt_src_node, tvb,
         my_offset, 2, TRUE);
     offset += 2;
@@ -662,10 +654,7 @@ do_hello_test_msg(
     guint   my_offset = offset;
     guint   remainder_count;
 
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-      col_set_str(pinfo->cinfo, COL_INFO,
-          "Routing control, hello/test message");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "Routing control, hello/test message");
     proto_tree_add_item(tree, hf_dec_rt_src_node, tvb,
         my_offset, 2, TRUE);
     my_offset += 2;
@@ -704,19 +693,13 @@ do_routing_msg(
         startid = tvb_get_letohs(tvb, my_offset + 2);
         rtginfo = tvb_get_letohs(tvb, my_offset + 4);
         if (msg == 3) {
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "Routing control, Level 1 routing message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "Routing control, Level 1 routing message");
             proto_tree_add_none_format(tree, hf_dec_rt_segment, tvb,
                 my_offset, 6,
                 "Segment: count:%d, start Id: %d, hops:%d, cost: %d",
                 count, startid, (rtginfo & 0x7c00) >> 10, rtginfo & 0x3ff);
         } else {
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "Routing control, Level 2 routing message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "Routing control, Level 2 routing message");
             proto_tree_add_none_format(tree, hf_dec_rt_segment, tvb,
                 my_offset, 6,
                 "Segment: count:%d, start area: %d, hops:%d, cost: %d",
@@ -798,10 +781,7 @@ do_hello_msg(
     if (msg == 5) {
         /* Ethernet router hello message
            Has a 'priority' field in this position */
-        if (check_col(pinfo->cinfo, COL_INFO)) {
-            col_set_str(pinfo->cinfo, COL_INFO,
-                 "Routing control, Ethernet Router Hello  message");
-        }
+        col_set_str(pinfo->cinfo, COL_INFO, "Routing control, Ethernet Router Hello  message");
         priority = tvb_get_guint8(tvb, my_offset);
         proto_tree_add_uint(
             tree, hf_dec_rt_iprio, tvb, my_offset, 1, priority);
@@ -813,10 +793,7 @@ do_hello_msg(
         /* The endnode hello message has 'seed' and 'neighbor' fields */
         guint8  seed;
 
-        if (check_col(pinfo->cinfo, COL_INFO)) {
-            col_set_str(pinfo->cinfo, COL_INFO,
-                "Routing control, Endnode Hello message");
-        }
+        col_set_str(pinfo->cinfo, COL_INFO, "Routing control, Endnode Hello message");
         seed = tvb_get_guint8(tvb, my_offset);
         proto_tree_add_item(tree, hf_dec_rt_seed, tvb,
             my_offset, 8, seed);
@@ -983,10 +960,7 @@ handle_nsp_msg(
             /* We are done, return my_offset */
             break;
         case INTERRUPT_MSG:        /* "Interrupt message" */
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "NSP interrupt message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "NSP interrupt message");
             ack_num = tvb_get_letohs(tvb, my_offset);
             if (ack_num & 0x8000) {
                 proto_tree_add_none_format(tree, hf_dec_rt_acknum,
@@ -1026,10 +1000,7 @@ handle_nsp_msg(
             /* We are done, return my_offset */
             break;
         case LINK_SERVICE_MSG:     /* "Link service message" */
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "NSP link control message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "NSP link control message");
             ack_num = tvb_get_letohs(tvb, my_offset);
             if (ack_num & 0x8000) {
                 proto_tree_add_none_format(tree, hf_dec_rt_acknum,
@@ -1126,10 +1097,7 @@ handle_nsp_msg(
             /* We are done, return my_offset */
             break;
         case OTHER_DATA_ACK_MSG:   /* "Other data acknowledgement message" */
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "NSP other data ACK message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "NSP other data ACK message");
             ack_num = tvb_get_letohs(tvb, my_offset);
             proto_tree_add_none_format(tree, hf_dec_rt_acknum,
                 tvb, my_offset, 2,
@@ -1154,10 +1122,7 @@ handle_nsp_msg(
             break;
         case CONN_CONFIRM_MSG:     /* "Connect confirm" */
         case CONN_INITIATE_MSG:    /* "Connect initiate" */
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "NSP connect confirm/initiate message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "NSP connect confirm/initiate message");
             services = tvb_get_guint8(tvb, my_offset);
             proto_tree_add_uint(tree, hf_dec_rt_services, tvb,
                          my_offset, 1, services);
@@ -1176,10 +1141,7 @@ handle_nsp_msg(
             break;
         case DISCONN_INITIATE_MSG: /* "Disconnect initiate" */
         case DISCONN_CONFIRM_MSG:  /* "Disconnect confirm" */
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-              col_set_str(pinfo->cinfo, COL_INFO,
-                  "NSP disconnect initiate/confirm message");
-            }
+            col_set_str(pinfo->cinfo, COL_INFO, "NSP disconnect initiate/confirm message");
             reason = tvb_get_letohs(tvb, my_offset);
             proto_tree_add_item(tree, hf_dec_disc_reason, tvb,
                  my_offset, 2, TRUE);
index 9488785e5ccf2ac2b0546fc2c365ec12aa500830..391dc48d7dc8a2f31c33b1c4365c720425c5f7b8 100644 (file)
@@ -1864,10 +1864,7 @@ dissect_dect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        if(pkt_len<13)
        {
-               if(check_col(pinfo->cinfo, COL_PROTOCOL))
-               {
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "No Data");
-               }
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "No Data");
                return;
        }
 
@@ -1928,26 +1925,17 @@ dissect_dect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
                switch(type) {
                case 0x1675:
-                       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-                       {
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT PP");
-                       }
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT PP");
                        proto_item_append_text(typeti, " Phone Packet");
                        dissect_decttype(DECT_PACKET_PP, &pkt_afield, &pkt_bfield, pinfo, pkt_ptr, tvb, ti, DectTree);
                        break;
                case 0xe98a:
-                       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-                       {
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT RFP");
-                       }
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT RFP");
                        proto_item_append_text(typeti, " Station Packet");
                        dissect_decttype(DECT_PACKET_FP, &pkt_afield, &pkt_bfield, pinfo, pkt_ptr, tvb, ti, DectTree);
                        break;
                default:
-                       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-                       {
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT Unk");
-                       }
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT Unk");
                        proto_item_append_text(typeti, " Unknown Packet");
                        break;
                }
index f07e568e1aabe64f5799a403326b2a8f0a90d58e..8f47e45a9f7725bbfaa22c4250f3bcf240f9cde7 100644 (file)
@@ -398,10 +398,7 @@ dissect_dtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   /* Initialize the protocol column; we'll set it later when we
    * figure out what flavor of DTLS it is (actually only one
    version exists). */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTLS");
-    }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTLS");
 
   /* clear the the info column */
   col_clear(pinfo->cinfo, COL_INFO);
@@ -457,10 +454,7 @@ dissect_dtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                             "Continuation Data");
 
            /* Set the protocol column */
-           if (check_col(pinfo->cinfo, COL_PROTOCOL))
-             {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL,"DTLS");
-             }
+           col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTLS");
          }
        break;
       }
@@ -614,10 +608,7 @@ dissect_dtls_record(tvbuff_t *tvb, packet_info *pinfo,
       col_append_str(pinfo->cinfo, COL_INFO, "Continuation Data");
 
     /* Set the protocol column */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL,"DTLS");
-      }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTLS");
     return offset + 13 + record_length;
   }
 
index 5ed6a8934a530cf260059e0ab0867dd0d9ef7e06..cfd2e72870e56cb5bcf1c0c1cfa12179ff07e1f2 100644 (file)
@@ -703,9 +703,7 @@ dissect_dvmrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int of
        tree = proto_item_add_subtree(item, ett_dvmrp);
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DVMRP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DVMRP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 6f966e473abb89aa1f0e52c1e891c13261d316c3..48f9a221a5a83fd7960844f8ad868bd9b0a1abcc 100644 (file)
@@ -80,14 +80,8 @@ dissect_e100(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             tvb_get_ntohl(tvb, e100_bytes_cap.offset) == tvb_length(tvb)-e100_encap_len)
         {
             guint32 bytes_captured=0;
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            {
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "e100");
-            }
-            if (check_col(pinfo->cinfo, COL_INFO))
-            {
-                col_set_str(pinfo->cinfo, COL_INFO, "E100 Encapsulated Packet");
-            }
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "e100");
+            col_set_str(pinfo->cinfo, COL_INFO, "E100 Encapsulated Packet");
             if (tree)
             {
                 /* pick apart protocol for display */
index f715b468ca07ac5bd5dc0f5ad3af174bdbcca51f..4b0c3ffbd33391879eb9db255edd7b1a8e9badfe 100644 (file)
@@ -59,9 +59,7 @@ static void dissect_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     request = TRUE;
   }
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECHO");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECHO");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_set_str(pinfo->cinfo, COL_INFO, 
index e4f238c306973cef24e9d230fca85739ba696a3b..7c7054309f132bf6055cd2993a11d2bef0bec251 100644 (file)
@@ -92,10 +92,7 @@ static gint ett_status_item = -1;
 static void dissect_egd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
   /* replace UDP with EGD in display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-  {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "EGD");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "EGD");
 
   /* Clear out stuff in the info column */
   if (check_col(pinfo->cinfo,COL_INFO))
index 92475b3e225228af5a9e47756b7a7e01140a3006..137dc956b725a3179f7088c56536aa3c2ce7890d 100644 (file)
@@ -349,9 +349,7 @@ dissect_enttec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *ti,*enttec_tree=NULL;
 
        /* Set the protocol column */
-       if (check_col(pinfo->cinfo,COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo,COL_PROTOCOL,"ENTTEC");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ENTTEC");
 
        head = tvb_get_ntohl(tvb, offset);
 
index f326d877ba913f6b23c468f67e87842cb43b79e9..dd34ec4020c2945db6ec153215085c90f7c0cc56 100644 (file)
@@ -253,18 +253,12 @@ dissect_epl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /* Make entries in Protocol column and Info column on summary display */
     if (pinfo->ethertype == ETHERTYPE_EPL_V2)
     {
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        {
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPL");
-        }
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPL");
         udpencap = FALSE;
     }
     else
     {   /* guess that this is an EPL frame encapsulated into an UDP datagram */
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        {
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPL/UDP");
-        }
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPL/UDP");
         udpencap = TRUE;
     }
 
index c58445166a43daa7e521f4a642cdca192695d239..5d21b3c0bd46aeac33743bf7bb7ab14a91b76404 100644 (file)
@@ -256,9 +256,7 @@ dissect_epl_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        info_str[0] = 0;
 
        /* make entries in Protocol column and Info column on summary display */
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPL_V1");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPL_V1");
 
 
        /* get service type */
index 5573fab19f4b7cfda85c803f1065379fff819b6c..785dfca1956f03ba0843592b7017d07c19d1d617 100644 (file)
@@ -212,10 +212,7 @@ dissect_evrc_aux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, evrc_varia
     guint8                      speech_data_len[0x20];
 
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "EVRC");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "EVRC");
 
     if (!tree) return;
 
index ec1d23cef702227043f665c314accb52006836be..981f77f4e4dd534eda54409f042a473bb06a1d54 100644 (file)
@@ -1173,12 +1173,8 @@ dissect_fc_helper (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean
         } else if ((fchdr.r_ctl & 0x0F) == FC_BLS_BARJT) {
             dissect_fc_ba_rjt (next_tvb, pinfo, tree);
         } else if ((fchdr.r_ctl & 0x0F) == FC_BLS_ABTS) {
-            if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "BLS");
-            }
-            if (check_col(pinfo->cinfo, COL_INFO)) {
-                col_set_str(pinfo->cinfo, COL_INFO, "ABTS");
-            }
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "BLS");
+            col_set_str(pinfo->cinfo, COL_INFO, "ABTS");
         }
     }
     tap_queue_packet(fc_tap, pinfo, &fchdr);
index d6b53a8170d7f4eff3461ad2dbb70ef06b80d39a..0ac89817cec1c6629900fefdc95fecd0681daa98 100644 (file)
@@ -1731,9 +1731,7 @@ dissect_fcels_cbind (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
 
         proto_tree_add_item (cbind_tree, hf_fcels_opcode, tvb, offset, 1, FALSE);
     }
-    if (check_col (pinfo->cinfo, COL_INFO)) {
-        col_set_str (pinfo->cinfo, COL_INFO, "CBIND ");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "CBIND ");
 
     proto_tree_add_item (cbind_tree, hf_fcels_cbind_liveness, tvb, offset+4, 2, FALSE);
     proto_tree_add_item (cbind_tree, hf_fcels_cbind_addr_mode, tvb, offset+6, 1, FALSE);
@@ -1774,9 +1772,7 @@ dissect_fcels_unbind (tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
 
         proto_tree_add_item (cbind_tree, hf_fcels_opcode, tvb, offset, 1, FALSE);
     }
-    if (check_col (pinfo->cinfo, COL_INFO)) {
-        col_set_str (pinfo->cinfo, COL_INFO, "UNBIND ");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "UNBIND ");
 
     proto_tree_add_item (cbind_tree, hf_fcels_cbind_userinfo, tvb, offset+4, 4, FALSE);
     proto_tree_add_item (cbind_tree, hf_fcels_chandle, tvb, offset+10, 2, FALSE);
index 789b12d30786faf1d8ffba944001e5417ea3ff1a..b19bace4c1a0cd15a2f0fdbc61d1d28c7d30cc70 100644 (file)
@@ -13448,9 +13448,7 @@ dissect_ff(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        guint32 trailer_len = 0;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FF");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FF");
 
        Options = tvb_get_guint8(tvb, 1);
        ProtocolAndType = tvb_get_guint8(tvb, 2);
index d9a5f66b47129ba2fb426354127e57edd60e9615..3e0c367ee4899dfe09cbe4e6ea4340e35fbb2c47 100644 (file)
@@ -234,9 +234,7 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     int check_sum = 0;
 
     /* Make entries in Protocol column and Info column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "FIX");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FIX");
     if (check_col(pinfo->cinfo, COL_INFO)) {
         col_clear(pinfo->cinfo, COL_INFO);
     }
@@ -244,9 +242,7 @@ dissect_fix_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /* get at least the fix version: 8=FIX.x.x */
     if (fix_marker(tvb, 0) != 0) {
         /* not a fix packet start but it's a fix packet */
-        if (check_col(pinfo->cinfo, COL_INFO)) {
-            col_set_str(pinfo->cinfo, COL_INFO, "[FIX continuation]");
-        }
+        col_set_str(pinfo->cinfo, COL_INFO, "[FIX continuation]");
         ti = proto_tree_add_item(tree, proto_fix, tvb, 0, -1, FALSE);
         fix_tree = proto_item_add_subtree(ti, ett_fix);
         proto_tree_add_item(fix_tree, hf_fix_data, tvb, 0, -1, FALSE);
index 6017cb9149490b7c4dc985c557fe77b4de7a4df4..830fcbfdc76d58a80274bf7532c2a8f0f58043d4 100644 (file)
@@ -3846,10 +3846,7 @@ static void dissect_giop_common (tvbuff_t * tvb, packet_info * pinfo, proto_tree
   tvb_memcpy (giop_header_tvb, (guint8 *)&header, 0, GIOP_HEADER_SIZE );
 
 
-  if (check_col (pinfo->cinfo, COL_PROTOCOL))
-    {
-      col_set_str (pinfo->cinfo, COL_PROTOCOL, "GIOP");
-    }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "GIOP");
 
   if (header.GIOP_version.major != GIOP_MAJOR ||
       ((minor_version = header.GIOP_version.minor) > GIOP_MINOR))
index d132447b1b9d449d7b3ef90a5f6e8b8f5bea3736..e7e61a627453035def17027fa3a993c1a55e6642 100644 (file)
@@ -484,20 +484,14 @@ dissect_llcgprs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *uinfo_tree = NULL;
        /* END MLT CHANGES */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "GPRS-LLC");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GPRS-LLC");
 
        addr_fld = tvb_get_guint8(tvb,offset);
        offset++;
 
        if (addr_fld > 128 )
        {
-               if (check_col(pinfo->cinfo,COL_INFO))
-               {
-                      col_set_str(pinfo->cinfo,COL_INFO,"Invalid packet - Protocol Discriminator bit is set to 1");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Invalid packet - Protocol Discriminator bit is set to 1");
                return;
        }
 
index 100252679b97bbdd82119229635f98d8103dd6ad..8a0a373788d535f9462c1fba43b9337367170581 100644 (file)
@@ -17595,10 +17595,7 @@ dissect_gsm_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM MAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM MAP");
 
     top_tree = parent_tree;
 
index 59da18ca61a7bb46b0b051e4682c430b41ab6c15..5c3135bd323db3a84dfd3ee2a1b2cfbfb1189cd3 100644 (file)
@@ -68,13 +68,9 @@ dissect_h261( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
        proto_tree *h261_tree     = NULL;
        unsigned int offset       = 0;
 
-       if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )   {
-               col_set_str( pinfo->cinfo, COL_PROTOCOL, "H.261" );
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "H.261");
 
-       if ( check_col( pinfo->cinfo, COL_INFO) ) {
-               col_set_str( pinfo->cinfo, COL_INFO, "H.261 message");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "H.261 message");
 
        if ( tree ) {
                ti = proto_tree_add_item( tree, proto_h261, tvb, offset, -1, FALSE );
index dd4f8bbc5378f848006cf747cba59cc4590772a6..410002a23fff449189a876f189fa7abc1d19d7ed 100644 (file)
@@ -88,9 +88,7 @@ dissect_h263P( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
        tvbuff_t *next_tvb;
        */
 
-       if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )   {
-               col_set_str( pinfo->cinfo, COL_PROTOCOL, "H.263 RFC4629 " );
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "H.263 RFC4629 ");
 
        if ( tree ) {
          ti = proto_tree_add_item( tree, proto_h263P, tvb, offset, -1, FALSE );
index 6cb5d1e364705729fdb35f01729fd0a8ff6da22b..c5bf4760c514572a95e6eb862f186d24c2aae1c5 100644 (file)
@@ -61,9 +61,7 @@ dissect_hpext(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16         dxsap, sxsap;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "HPEXT");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "HPEXT");
 
        dxsap = tvb_get_ntohs(tvb, 3);
        sxsap = tvb_get_ntohs(tvb, 5);
index 9853166fa7b1e40c0b89e4f44a624084a2f79df3..7e430687b97d61124be9922527d7ab97cde13f10 100644 (file)
@@ -85,13 +85,9 @@ dissect_hpsw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item      *ti = NULL;
        guint8          version;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "HP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "HP");
 
-       if (check_col(pinfo->cinfo, COL_INFO)) {
-               col_set_str(pinfo->cinfo, COL_INFO, "HP Switch Protocol");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "HP Switch Protocol");
 
        version = tvb_get_guint8(tvb, 0);
 
index f3ff65b50fed698a6a56fdef3e51432a55591e6a..0f5520093e90c90a6fc94d5408f759889b8f0c6d 100644 (file)
@@ -2000,12 +2000,8 @@ static void desegment_iax(tvbuff_t *tvb, packet_info *pinfo, proto_tree *iax2_tr
       }
 
     if( pinfo->desegment_offset == 0 ) {
-      if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAX2");
-      }
-      if (check_col(pinfo->cinfo, COL_INFO)){
-       col_set_str(pinfo->cinfo, COL_INFO, "[IAX2 segment of a reassembled PDU]");
-      }
+      col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAX2");
+      col_set_str(pinfo->cinfo, COL_INFO, "[IAX2 segment of a reassembled PDU]");
     }
   }
 
index f45cf05346bbf9ffb371db9d14b90fe33113431a..db6f76b850f2d0f6297aadcdd8505bd7c2619bcd 100644 (file)
@@ -451,12 +451,8 @@ dissect_icqv4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item *ti = NULL;
 
     /* Not really implemented yet */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv4 (UDP)");
-    }
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-       col_set_str(pinfo->cinfo, COL_INFO, "ICQ Version 4 protocol");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv4 (UDP)");
+    col_set_str(pinfo->cinfo, COL_INFO, "ICQ Version 4 protocol");
     if (tree) {
         ti = proto_tree_add_protocol_format(tree, proto_icq, tvb, 0, -1,
                                            "ICQv4");
@@ -474,12 +470,8 @@ dissect_icqv3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item *ti = NULL;
 
     /* Not really implemented yet */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv3 (UDP)");
-    }
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-       col_set_str(pinfo->cinfo, COL_INFO, "ICQ Version 3 protocol");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv3 (UDP)");
+    col_set_str(pinfo->cinfo, COL_INFO, "ICQ Version 3 protocol");
     if (tree) {
         ti = proto_tree_add_protocol_format(tree, proto_icq, tvb, 0, -1,
                                            "ICQv3");
@@ -497,12 +489,8 @@ dissect_icqv2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item *ti = NULL;
 
     /* Not really implemented yet */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv2 (UDP)");
-    }
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-       col_set_str(pinfo->cinfo, COL_INFO, "ICQ Version 2 protocol");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv2 (UDP)");
+    col_set_str(pinfo->cinfo, COL_INFO, "ICQ Version 2 protocol");
     if (tree) {
         ti = proto_tree_add_protocol_format(tree, proto_icq, tvb, 0, -1,
                                            "ICQv2");
@@ -1740,9 +1728,7 @@ dissect_icq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   if (version < 2 || version > 5)
     return 0;  /* This is not a (recognized) ICQ packet */
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQ");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQ");
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
   }
index 684398c8fc6e5e5387fe133e8b3d5c27ae34652a..d00e4f4b08a39d5f4424dcab70ba149b0cb2c79f 100644 (file)
@@ -427,9 +427,7 @@ static void dissect_iec104asdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
 
        if (!(check_col(pinfo->cinfo, COL_INFO) || tree))   return; /* Be sure that the function is only called twice */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))  {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "104asdu");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "104asdu");
        if (check_col(pinfo->cinfo, COL_INFO))  {
                col_clear(pinfo->cinfo, COL_INFO);
        }
@@ -522,9 +520,7 @@ static void dissect_iec104apci(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
 
        if (!(check_col(pinfo->cinfo, COL_INFO) || tree))   return; /* Be sure that the function is only called twice */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))  {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "104apci");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "104apci");
        if (check_col(pinfo->cinfo, COL_INFO))  {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 7024a4a7afb072800a352c9576bb1a1942c4b7cc..1ccc32cc0cbc5965a485bef23cf615a9ee765479 100644 (file)
@@ -423,9 +423,7 @@ dissect_ieee802154_nonask_phy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
     }
 
     /* Add the protocol name. */
-    if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.15.4 non-ASK PHY");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.15.4 non-ASK PHY");
     /* Add the packet length. */
     if(check_col(pinfo->cinfo, COL_PACKET_LENGTH)){
         col_clear(pinfo->cinfo, COL_PACKET_LENGTH);
@@ -585,9 +583,7 @@ dissect_ieee802154_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, g
         ieee802154_tree = proto_item_add_subtree(proto_root, ett_ieee802154);
     }
     /* Add the protocol name. */
-    if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.15.4");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.15.4");
     /* Add the packet length. */
     if(check_col(pinfo->cinfo, COL_PACKET_LENGTH)){
         col_clear(pinfo->cinfo, COL_PACKET_LENGTH);
index 94408fa8ff168114084da25ebd66c6105e566b98..16906c93f8d3cfe5a182f9465c23392bdd8cc9fa 100644 (file)
@@ -91,9 +91,7 @@ dissect_ieee802a(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        dissector_table_t subdissector_table;
        int             hf;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE802a");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE802a");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 8bd7d44b97fed843bacf7b8b7f52275cb20e6545..0c690dd392b616cd16911450e7d9e47df54389cb 100644 (file)
@@ -335,9 +335,7 @@ dissect_ifcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                return;
        }
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "iFCP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "iFCP");
 
        frame_len = (tvb_get_ntohs (tvb, offset+12) & 0x03FF)*4;
 
index d30e2150274d9ec62b3b234d937c65b5669c2d87..9565a06da37a95860f6071caafff99cf7d10c18d 100644 (file)
@@ -146,9 +146,7 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int off
     item = proto_tree_add_item(parent_tree, proto_igap, tvb, offset, -1, FALSE);
     tree = proto_item_add_subtree(item, ett_igap);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGAP");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
     }
index d96acbd57d4484c7d4685a42b2a9c5c533b20261..affaf6fae86de467f5b555be8d698484cbcf71a5 100644 (file)
@@ -909,9 +909,7 @@ dissect_igmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        tree = proto_item_add_subtree(item, ett_igmp);
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGMP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGMP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 68c3302258424ea6b4cea3f4a1af29e5d58c9840..98e699ab85d92047e2a08eb42284ffb7f46151aa 100644 (file)
@@ -9137,10 +9137,7 @@ dissect_inap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        asn1_ctx_t asn1_ctx;
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "INAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "INAP");
 
     /* create display subtree for the protocol */
     if(parent_tree){
index 44a0ba014bcb0b9161b50fa78e660da40e6290c4..3ca33d410abeb23a62229df2a3230b0565dc76b9 100644 (file)
@@ -1365,9 +1365,7 @@ dissect_ipmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *ti;
        ipmi_dissect_format_t dfmt;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPMI/ATCA");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPMI/ATCA");
 
        current_pinfo = pinfo;
 
index 33f24d51a50996266d355d88505f85a1264ad5ce..1ac965550d1f1b4e0fcd4d20c69f08804c43fb90 100644 (file)
@@ -185,9 +185,7 @@ static void dissect_ipsictl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     }
   }
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPSICTL");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPSICTL");
 
   if (haspdus)
   {
index 80eb88737ee695ab2cebf65616f137b45e7b8ab3..c83b8333bda15c9fac134afd2c6d42708c54dd7a 100644 (file)
@@ -107,9 +107,7 @@ dissect_ipvs_syncd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        tree = proto_item_add_subtree(item, ett_ipvs_syncd);
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPVS");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPVS");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 4fb2bbb17b1e7686746e3febfb6a6d3dcb77c481..060ecb64980f598efa0d003d13b058fd74660612 100644 (file)
@@ -1016,9 +1016,7 @@ dissect_isakmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
    * 1 byte payload with the value 0xff.
    */
   if( (tvb_length(tvb)==1) && (tvb_get_guint8(tvb, offset)==0xff) ){
-    if (check_col(pinfo->cinfo, COL_INFO)){
-      col_set_str(pinfo->cinfo, COL_INFO, "NAT Keepalive");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "NAT Keepalive");
     proto_tree_add_item(isakmp_tree, hf_isakmp_nat_keepalive, tvb, offset, 1, FALSE);
     return;
   }
index 66f22330c0806d21ed31a1bf88f41d2c38d5bde1..b082083087f2f101164282eafa75367277370dc6 100644 (file)
@@ -609,10 +609,7 @@ static void dissect_iuup(tvbuff_t* tvb_in, packet_info* pinfo, proto_tree* tree)
     guint16  crccheck;
     tvbuff_t* tvb = tvb_in;
     
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IuUP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IuUP");
 
     if (two_byte_pseudoheader) {
         int len = tvb_length(tvb_in) - 2;
index 589eab470ad16b7463591626a85ee08c9b136783..b48097627464b0c1f4b443be06ac6b39a20adb87 100644 (file)
@@ -265,9 +265,7 @@ ddp_rdma_packetlist(packet_info *pinfo, gboolean ddp_last_flag,
 {
        const gchar *ddp_fragment_state;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DDP/RDMA");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DDP/RDMA");
 
        if (ddp_last_flag) {
                ddp_fragment_state = "[last DDP segment]";
index 56fe22568319a6e9af7c1a54a5f84dd742635f04..87b4d7876fabc5f41d4ed3b6f2f2056290ecedec 100644 (file)
@@ -86,13 +86,9 @@ dissect_jpeg( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
 
        unsigned int offset       = 0;
 
-       if ( check_col( pinfo->cinfo, COL_PROTOCOL ) ) {
-               col_set_str( pinfo->cinfo, COL_PROTOCOL, "JPEG" );
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "JPEG");
 
-       if ( check_col( pinfo->cinfo, COL_INFO) ) {
-               col_set_str( pinfo->cinfo, COL_INFO, "JPEG message");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "JPEG message");
 
        if ( tree ) {
                ti = proto_tree_add_item( tree, proto_jpeg, tvb, offset, -1, FALSE );
index 49710f1ccc2f42f48ae01017ab0363d67292ba1d..9e377c996962ea98de379e3219538768fb4e43c9 100644 (file)
@@ -475,9 +475,7 @@ static int dissect_jxta_udp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tr
         return -needed;
     }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "JXTA");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "JXTA");
 
     if (tree) {
         guint tree_offset = 0;
@@ -821,13 +819,9 @@ static int dissect_jxta_welcome(tvbuff_t * tvb, packet_info * pinfo, proto_tree
 
     /* Dissect the Welcome Message */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "JXTA");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "JXTA");
 
-    if (check_col(pinfo->cinfo, COL_INFO)) {
-        col_set_str(pinfo->cinfo, COL_INFO, "Welcome");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "Welcome");
 
     {
        gchar *welcomeline = tvb_get_ephemeral_string(tvb, offset, first_linelen);
@@ -1321,9 +1315,7 @@ static int dissect_jxta_message(tvbuff_t * tvb, packet_info * pinfo, proto_tree
         ep_strbuf_append_printf(dst_addr, ":%d", pinfo->destport);
     }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "JXTA");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "JXTA");
 
     if (check_col(pinfo->cinfo, COL_INFO)) {
         if( complete_messages > 1 ) {
index 23ef5bb7be60eef659b7b8bacf69f6a496bf3dcc..e2572575c3ce400fd1322df40dcf831ca9570f27 100644 (file)
@@ -83,9 +83,7 @@ static void dissect_kdp(tvbuff_t *tvb,
   guint32 src_flowid = G_MAXUINT32; 
   int offset;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "KDP");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "KDP");
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
   }
index 0a49939182b4f9e4a9343271f160ac499a271c5f..58b088dcf60d5978cbee1a305925d38ce956a4c0 100644 (file)
@@ -4635,9 +4635,7 @@ dissect_kerberos_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         * The dissector failed to recognize this as a valid
         * Kerberos message.  Mark it as a continuation packet.
         */
-       if (check_col(pinfo->cinfo, COL_INFO)) {
-               col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
     }
 }
 
index 440fa2ff0b328aa383723dbb567f467345523c69..9bdef6179e931c93c2431747b68ce23765dc65f5 100644 (file)
@@ -197,9 +197,7 @@ dissect_kink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree){
   
   type = tvb_get_guint8(tvb,offset);
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "KINK");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "KINK");
     
   /* It shows kink type by the type value. */
   if(check_col(pinfo->cinfo, COL_INFO)){
index 3a7b57690aafd1dc7b4856734c0485d4cb3b6a98..e897eee104c8f53b3826d49d5c056f6ce5f21d7f 100644 (file)
@@ -276,9 +276,7 @@ dissect_kpasswd_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         * The dissector failed to recognize this as a valid
         * Kerberos message.  Mark it as a continuation packet.
         */
-       if (check_col(pinfo->cinfo, COL_INFO)) {
-               col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
     }
 }
 
index 8e743e541e15326b4d9ba9a6e2fc70a702a8a730..e994d72d25c14a286ace7e9b1de34e31e9ba301c 100644 (file)
@@ -418,9 +418,7 @@ dissect_basicxid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item      *ti = NULL;
        guint8          format, types, wsize;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "XID");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "XID");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
@@ -470,9 +468,7 @@ dissect_llc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8          dsap, ssap, format;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLC");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLC");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 9530661cf9ff5f3cf033d62c5529b56e860adc44..b3626fc0ac16a7e557c59541fc4f1fb59629e465 100644 (file)
@@ -107,10 +107,7 @@ dissect_manolito(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        if (tvb_reported_length(tvb) <= 20)      /* no payload, just headers */
        {
-               if (check_col(pinfo->cinfo, COL_INFO)) 
-               {
-                       col_set_str(pinfo->cinfo, COL_INFO, "Ping");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Ping");
        } else {
                offset = 20;            /* fields start here */
 
index b707609d688a311a16e7960bdd0ba29eab15d746..a1e6b17dba1779e3ed27741eaa4b2c2a91c8059c 100644 (file)
@@ -125,15 +125,9 @@ dissect_mpeg1( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
        guint16     mpg_ffv;
        guint16     mpg_ffc;
 
-       if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )
-         {
-           col_set_str( pinfo->cinfo, COL_PROTOCOL, "MPEG-1" );
-         }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPEG-1");
 
-       if ( check_col( pinfo->cinfo, COL_INFO) )
-         {
-           col_set_str( pinfo->cinfo, COL_INFO, "MPEG-1 message");
-         }
+       col_set_str(pinfo->cinfo, COL_INFO, "MPEG-1 message");
 
        /* Get MPEG-1  fields */
 
index 6d77b1e80306f200227e334d041213da8cd26df1..308472b656cddbf41689d8dc3f4433dddbdfd2da 100644 (file)
@@ -709,13 +709,9 @@ dissect_mpls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item  *ti;
     tvbuff_t *next_tvb;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo,COL_PROTOCOL, "MPLS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPLS");
 
-    if (check_col(pinfo->cinfo,COL_INFO)) {
-       col_set_str(pinfo->cinfo,COL_INFO,"MPLS Label Switched Packet");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "MPLS Label Switched Packet");
 
     /* Start Decoding Here. */
     while (tvb_reported_length_remaining(tvb, offset) > 0) {
index d4174b6294c6994dd6d7607d9aeca981dee9cca5..05b34d7a4ec675c5282bb9e3d205a8482d8bb330 100644 (file)
@@ -203,9 +203,7 @@ dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int o
        tree = proto_item_add_subtree(item, ett_mrdisc);
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MRDISC");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MRDISC");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 6fb04cc91729f9aaf3e2c3c39543c366fe609e98..fc6cacc21003aef7adb2c1767f8462930960c805 100644 (file)
@@ -390,14 +390,8 @@ static gint dissect_msmms_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree
 
 
     /* Set columns */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSMMS");
-    }
-    if (check_col(pinfo->cinfo, COL_INFO))
-    {
-        col_set_str(pinfo->cinfo, COL_INFO, "Command: ");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSMMS");
+    col_set_str(pinfo->cinfo, COL_INFO, "Command: ");
 
     /* Add hidden filter for "msmms.command" */
     ti = proto_tree_add_item(tree, hf_msmms_command, tvb, 0, 0, FALSE);
@@ -586,10 +580,7 @@ static gint dissect_msmms_data_udp_command(tvbuff_t *tvb, packet_info *pinfo, pr
     gint offset = 0;
 
     /* Set protocol column */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSMMS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSMMS");
 
     /* Create MSMMS data protocol tree */
     if (tree)
@@ -610,10 +601,7 @@ static gint dissect_msmms_data_udp_command(tvbuff_t *tvb, packet_info *pinfo, pr
     proto_tree_add_item(msmms_tree, hf_msmms_data_command_id, tvb, offset, 2, TRUE);
     offset += 4;
 
-    if (check_col(pinfo->cinfo, COL_INFO))
-    {
-        col_set_str(pinfo->cinfo, COL_INFO, "Request to resend packet(s):");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "Request to resend packet(s):");
 
     /* Show list of packets to resend */
     while (tvb_reported_length_remaining(tvb, offset) >= 4)
@@ -678,10 +666,7 @@ static gint dissect_msmms_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
         }
     }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSMMS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSMMS");
 
     /* Add hidden filter for "msmms.data" */
     proto_tree_add_item(tree, hf_msmms_data, tvb, 0, 0, FALSE);
index 2df63aed53b5e44a253a13750f2ee340e3653813..6ee5ac4ed3fa3f86136306e888061f2382b937fe 100644 (file)
@@ -233,9 +233,7 @@ dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int of
        tree = proto_item_add_subtree(item, ett_msnip);
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSNIP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSNIP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 74f20136a3a3c412947062ba9b58f68e7aea7b01..ce323974000168e213d0f60d0154e7b5713bd920 100644 (file)
@@ -163,9 +163,7 @@ dissect_mstp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
 #endif
 
        col_set_str(pinfo->cinfo, COL_PROTOCOL, "BACnet");
-       if (check_col(pinfo->cinfo, COL_INFO)) {
-               col_set_str(pinfo->cinfo, COL_INFO, "BACnet MS/TP");
-       }
+       col_set_str(pinfo->cinfo, COL_INFO, "BACnet MS/TP");
        mstp_frame_type = tvb_get_guint8(tvb, offset);
        mstp_frame_destination = tvb_get_guint8(tvb, offset+1);
        mstp_frame_source = tvb_get_guint8(tvb, offset+2);
index f8a3e53e0a1131e211fb79bc3a32625494b731b2..7dbfa0182e51f24671dbdaafb7e10249d1fc4604 100644 (file)
@@ -1195,9 +1195,7 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
        offset+= 3;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MySQL");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MySQL");
 
        if (pinfo->destport == pinfo->match_port) {
                is_response= FALSE;
@@ -1232,29 +1230,21 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        if (is_response) {
                if (packet_number == 0) {
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "Server Greeting" );
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "Server Greeting");
                        offset= mysql_dissect_greeting(tvb, pinfo, offset,
                                                       mysql_tree, conn_data);
                } else {
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "Response" );
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "Response");
                        offset= mysql_dissect_response(tvb, pinfo, offset,
                                                       mysql_tree, conn_data);
                }
        } else {
                if (packet_number == 1) {
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "Login Request");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "Login Request");
                        offset= mysql_dissect_login(tvb, pinfo, offset,
                                                    mysql_tree, conn_data);
                } else {
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "Request");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "Request");
                        offset= mysql_dissect_request(tvb, pinfo, offset,
                                                      mysql_tree, conn_data);
                }
index cfefea22030e5d67d281217fc3e6dc21fe3e5a78..087a73a16338404feedcc4f1cf17f3ce5a222bec 100644 (file)
@@ -191,9 +191,7 @@ dissect_nbd_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        nbd_transaction_t *nbd_trans=NULL;
        emem_tree_key_t hkey[3];
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBD");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBD");
 
        if(check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
index 812e719eece885d9059df0aa63cd51082f36129a..cc51d32c93b6090a55584f4ab492033eba0c6a41 100644 (file)
@@ -299,9 +299,7 @@ dissect_nmas_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, nc
     foffset += 1;
 
     /* Fill in the INFO column. */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMAS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMAS");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_add_fstr(pinfo->cinfo, COL_INFO, "C NMAS - %s",
                     val_to_str(subfunc, nmas_func_enum, "Unknown (0x%02x)"));
@@ -494,9 +492,7 @@ dissect_nmas_reply(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, guin
         subverb = request_value->req_nds_flags;
         msgverb = request_value->nds_request_verb;
     }
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMAS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMAS");
     if (tvb_reported_length_remaining(tvb, foffset)<4) {
         return;
     }
index 964e3b21439bcc52d6220d554fe8dc32495a5828..6d9249f4988bdc72c596daa1a285231675103674 100644 (file)
@@ -578,9 +578,7 @@ dissect_sss_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, ncp
     foffset += 1;
 
     /* Fill in the PROTOCOL & INFO  columns. */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSSS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSSS");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_add_fstr(pinfo->cinfo, COL_INFO, "C SecretStore - %s", val_to_str(subfunc, sss_func_enum, "Unknown (%d)"));
     }
@@ -728,9 +726,7 @@ dissect_sss_reply(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ncp_tree, guint
         subverb = request_value->req_nds_flags;
         msgverb = request_value->nds_request_verb;
     }
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSSS");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSSS");
     if (tvb_length_remaining(tvb, foffset)<4) {
         return;
     }
index f0b6b04407598a1a514ca59885b7c5ceb0fdeee3..df6d493d0d70ae65a7641394dffa7e636db1b1ca 100644 (file)
@@ -654,10 +654,7 @@ dissect_ncp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
             break;
         } else {
             if (tvb_get_guint8(tvb, commhdr + 2) & 0x10) {
-                if (check_col(pinfo->cinfo, COL_INFO)) {
-                    col_set_str(pinfo->cinfo, COL_INFO,
-                        "End of Burst");
-                }
+                col_set_str(pinfo->cinfo, COL_INFO, "End of Burst");
             }
         }
         break;
index 834ac19b49ecdbb34f9c4a1904f7e5042138d919..8794970dc2e76bb431988299afe8b09d5ab2bb4a 100644 (file)
@@ -99,9 +99,7 @@ dissect_netdump(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (tvb_reported_length(tvb) == 0)
                return;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Netdump");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Netdump");
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo,COL_INFO)) {
                col_clear(pinfo->cinfo,COL_INFO);
index a5685eb3507ad9a526b3db6100a69a7e765c58d3..c839280be825d0d5f6f223d93d32b7bb16e787da 100644 (file)
@@ -466,9 +466,7 @@ dissect_netsync_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *ti,*netsync_tree=NULL;
 
        /* Set the protocol column */
-       if (check_col(pinfo->cinfo,COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo,COL_PROTOCOL,"Netsync");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Netsync");
 
 
        if (tree == NULL)
index 585e76880a7a9491efc1338cb31c2338bb571447..e3ceef7af0075d35473732b632de1113d83085a2 100644 (file)
@@ -840,9 +840,7 @@ void dissect_nhrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *nhrp_tree = NULL;
        oui_info_t *oui_info;
                
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NHRP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NHRP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index c435d4d8391217ed973b2e0c8602b8875e85b11e..d464fb35158ed227604b78e1034cc2c6237c8fbd 100644 (file)
@@ -108,10 +108,7 @@ dissect_omapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint32 objlength;
 
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-  {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "OMAPI");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "OMAPI");
 
   if (check_col(pinfo->cinfo, COL_INFO)) 
   {
@@ -133,10 +130,7 @@ dissect_omapi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     ptvcursor_add(cursor, hf_omapi_version, 4, FALSE);
     ptvcursor_add(cursor, hf_omapi_hlength, 4, FALSE);
 
-    if (check_col(pinfo->cinfo, COL_INFO)) 
-    {
-      col_set_str(pinfo->cinfo, COL_INFO, "Status message");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "Status message");
     proto_item_append_text(ti, ", Status message"); 
 
     return;
index fbc7e29058d5c4631ac3904a631b630d2c0567dd..872d3dce6ef75076e0cb855cdc3699cb621cf1ef 100644 (file)
@@ -264,21 +264,15 @@ static void dissect_osi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /* ESIS (X.25) is not currently decoded */
 
     case NLPID_ISO9542X25_ESIS:
-      if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESIS (X.25)");
-      }
+      col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESIS (X.25)");
       call_dissector(data_handle,tvb, pinfo, tree);
       break;
     case NLPID_ISO10747_IDRP:
-      if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IDRP");
-      }
+      col_set_str(pinfo->cinfo, COL_PROTOCOL, "IDRP");
       call_dissector(data_handle,tvb, pinfo, tree);
       break;
     default:
-      if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISO");
-      }
+      col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISO");
       if (check_col(pinfo->cinfo, COL_INFO)) {
        col_add_fstr(pinfo->cinfo, COL_INFO, "Unknown ISO protocol (%02x)", nlpid);
       }
index 517e8cab0baf86b614b6c333c5ac52f57fd91639..78b44e1ac8bc44f32c7e9ca3edc24cc432df59ab 100644 (file)
@@ -3735,9 +3735,7 @@ dissect_ppp_raw_hdlc( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
           * None found - this is presumably continued from an earlier
           * packet and continued in a later packet.
           */
-         if (check_col(pinfo->cinfo, COL_INFO)){
-                 col_set_str(pinfo->cinfo, COL_INFO,"PPP Fragment");
-         }
+         col_set_str(pinfo->cinfo, COL_INFO, "PPP Fragment");
          if (tree)
                  proto_tree_add_text(bs_tree, tvb, offset, -1, "PPP Fragment");
          offset++;
@@ -3754,9 +3752,7 @@ dissect_ppp_raw_hdlc( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
           * We have some data preceding the first PPP packet;
           * mark it as a PPP fragment.
           */
-         if(check_col(pinfo->cinfo, COL_INFO)){
-                 col_set_str(pinfo->cinfo, COL_INFO,"PPP Fragment");
-         }
+         col_set_str(pinfo->cinfo, COL_INFO, "PPP Fragment");
          length = offset;
          if (tree)
                  proto_tree_add_text(bs_tree, tvb, 0, length, "PPP Fragment");
@@ -3779,9 +3775,7 @@ dissect_ppp_raw_hdlc( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
                   * a later packet.
                   */
                  if (first) {
-                         if(check_col(pinfo->cinfo, COL_INFO)){
-                                 col_set_str(pinfo->cinfo, COL_INFO,"PPP Fragment");
-                         }
+                         col_set_str(pinfo->cinfo, COL_INFO, "PPP Fragment");
                  }
                  if (tree)
                          proto_tree_add_text(bs_tree, tvb, offset, -1, "PPP Fragment");
index 2b48293306237ffab3dec245e2a17e6ecf91518d..b161a80dcf75281fa5a8ded9c3aec32209d0e426 100644 (file)
@@ -425,10 +425,7 @@ static void dissect_pppoed(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree  *pppoe_tree = NULL;
        proto_item  *ti;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPPoED");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPPoED");
        if (check_col(pinfo->cinfo, COL_INFO))
        {
                col_clear(pinfo->cinfo, COL_INFO);
@@ -679,10 +676,7 @@ static void dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item  *ti = NULL;
        tvbuff_t    *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo,COL_PROTOCOL, "PPPoES");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPPoES");
        if (check_col(pinfo->cinfo,COL_INFO))
        {
                col_clear(pinfo->cinfo,COL_INFO);
index b3bb2fca5b34222ed4fd087025e5207d722142e8..63c920b21da381c2ade882a0fecd89d796689b07 100644 (file)
@@ -488,11 +488,7 @@ gboolean too_small_packet_or_notpw(tvbuff_t * tvb
                {
                        col_set_str(pinfo->cinfo, COL_PROTOCOL, proto_name_column);
                }
-               if (check_col(pinfo->cinfo, COL_INFO))
-               {
-                       col_set_str(pinfo->cinfo, COL_INFO,
-                               "Malformed: PW packet is too small");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Malformed: PW packet is too small");
                return TRUE;
        }
        if (dissect_try_cw_first_nibble(tvb, pinfo, tree))
index be7788301084d45c39a89e4e6bd00cf521030d51..5a4a39926f845185753bc86034f353c75bf13e24 100644 (file)
@@ -106,11 +106,7 @@ static void dissect_pw_cesopsn( tvbuff_t * tvb_original, packet_info * pinfo, pr
                {
                        col_set_str(pinfo->cinfo, COL_PROTOCOL, shortname);
                }
-               if (check_col(pinfo->cinfo, COL_INFO))
-               {
-                       col_set_str(pinfo->cinfo, COL_INFO,
-                               "Malformed: PW packet is too small");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Malformed: PW packet is too small");
                return;
        }
 
index 1952e2d51d29eca21233e48de2b4a32c4e33e4a3..27acb0fe8cc7647f65abc7b95a7e663170365894 100644 (file)
@@ -93,15 +93,8 @@ dissect_pw_fr( tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree )
                                "PW packet (%d) is smaller than PW encapsulation header (%d)"
                                ,(int)packet_size,(int)encaps_size);
                }
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))   
-               {
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR PW");
-               }
-               if (check_col(pinfo->cinfo, COL_INFO))
-               {
-                       col_set_str(pinfo->cinfo, COL_INFO, 
-                               "Malformed: PW packet < PW encapsulation header");
-               }
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR PW");
+               col_set_str(pinfo->cinfo, COL_INFO, "Malformed: PW packet < PW encapsulation header");
                return;
        }
 
@@ -171,10 +164,7 @@ dissect_pw_fr( tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree )
                packet_quality |= PQ_PAYLOAD_SIZE_ZERO;
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))   
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR PW");
-       }  
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR PW");  
        if (check_col(pinfo->cinfo, COL_INFO))
        {
                col_clear(pinfo->cinfo, COL_INFO);
index 5db068eb1f344fed96fb6b8c876d4d697fd4e9c4..f46e3ad8324254a483ed1ee994b2d5c8f70d62a1 100644 (file)
@@ -102,11 +102,7 @@ static void dissect_pw_satop(tvbuff_t * tvb_original, packet_info * pinfo, proto
                {
                        col_set_str(pinfo->cinfo, COL_PROTOCOL, shortname);
                }
-               if (check_col(pinfo->cinfo, COL_INFO))
-               {
-                       col_set_str(pinfo->cinfo, COL_INFO,
-                               "Malformed: PW packet is too small");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Malformed: PW packet is too small");
                return;
        }
 
index 4fb3f3992ea19509b94e4178e83ef856db1c0b32..89c244196edbe6cea3b303d619775c20e2766bdf 100644 (file)
@@ -505,9 +505,7 @@ dissect_quake3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
 
        if (tvb_get_ntohl(tvb, 0) == 0xffffffff) {
-               if (check_col(pinfo->cinfo, COL_INFO)) {
-                       col_set_str(pinfo->cinfo, COL_INFO, "Connectionless ");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Connectionless ");
                if (quake3_tree)
                        proto_tree_add_uint_format(quake3_tree,
                                hf_quake3_connectionless,
@@ -517,9 +515,7 @@ dissect_quake3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        tvb, pinfo, quake3_tree, &direction);
        }
        else {
-               if (check_col(pinfo->cinfo, COL_INFO)) {
-                       col_set_str(pinfo->cinfo, COL_INFO, "Game ");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Game ");
                if (quake3_tree)
                        proto_tree_add_uint_format(quake3_tree,
                                hf_quake3_game,
index cc79adf3e6c7e45be3e0c429b0547b0f746b613a..9664a5c2594422a07fa1db9f60b808c3b65ed0b3 100644 (file)
@@ -302,10 +302,7 @@ static void dissect_rdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint16     packet_type;
 
     /* Set/clear columns */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "RDT");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RDT");
     if (check_col(pinfo->cinfo, COL_INFO))
     {
         col_clear(pinfo->cinfo, COL_INFO);
index e63ce962cd1d5c8c75345fd8aaebf23227161673..0ae81215f8ffb6ab86a52c8f9087c0affa1ace3f 100644 (file)
@@ -65,9 +65,7 @@ dissect_retix_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *ti;
   const guint8 *bridge_mac_str;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "R-STP");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "R-STP");
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
   }
index 1d8e8fe1c1955f0e6efa5d657f6dbbf386d23faa..ea41569335d07062c7273befe1c114b354845826 100644 (file)
@@ -91,9 +91,7 @@ dissect_rfc2190( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
 
     rfc2190_version = (tvb_get_guint8( tvb, offset ) & 0xc0 ) >> 6;
 
-    if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )   {
-        col_set_str( pinfo->cinfo, COL_PROTOCOL, "H.263 " );
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "H.263 ");
 
     if( rfc2190_version == 0x00) {
         if ( check_col( pinfo->cinfo, COL_INFO) ) {
index 49f28563b007abbde17d00d25e662e4b56161427..146f08748436172dc29d759b00ea50755d4145be 100644 (file)
@@ -77,9 +77,7 @@ dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int off
     item = proto_tree_add_item(parent_tree, proto_rgmp, tvb, offset, -1, FALSE);
     tree = proto_item_add_subtree(item, ett_rgmp);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RGMP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RGMP");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
     }
index 0ed58d7503ef37ad16022afcde45b0f2e18ca6a2..c3008116a4e4ced9b47f0c6524b479712ba8a295 100644 (file)
@@ -424,10 +424,7 @@ dissect_rlogin(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
 
        /* Set protocol column text */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Rlogin");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Rlogin");
 
        /* Set info column */
        if (check_col(pinfo->cinfo, COL_INFO))
index 62c8e076458f47f7463ba3bf2d1111bd0b487dbd..e9088a388c12567949e9b0795b2858a0cd2335d5 100644 (file)
@@ -106,9 +106,7 @@ dissect_rmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item      *ti = NULL;
        guint8          type, len;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RMP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index f725a50c5f5a5157f2afeb523dcd72088b9e1a61..d1d407ea6147451a20295c1e08ea47c3e16e81d6 100644 (file)
@@ -2619,9 +2619,7 @@ dissect_rpc_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                 * protocol and info fields to indicate that this is
                 * an RPC auth level message, then process the args.
                 */
-               if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPC");
-               }
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPC");
                if (check_col(pinfo->cinfo, COL_INFO)) {
                        col_clear(pinfo->cinfo, COL_INFO);
                        col_append_fstr(pinfo->cinfo, COL_INFO,
index 629d109ec755d88427ad585cde95a6f6156b067c..9f047e2209da9b325c2811912b284153ae51b9b6 100644 (file)
@@ -2532,9 +2532,7 @@ dissect_rtcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
     guint32 srtcp_offset = 0;
     guint32 srtcp_index  = 0;
 
-    if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )   {
-        col_set_str( pinfo->cinfo, COL_PROTOCOL, "RTCP" );
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTCP");
 
     /* first see if this conversation is encrypted SRTP, and if so do not try to dissect the payload(s) */
     p_conv = find_conversation(pinfo->fd->num, &pinfo->net_src, &pinfo->net_dst,
index a6661c1c7d7f14331d634224fedfee8543a5da80..83bbc380b0379627ae79de847aca142fa520f685 100644 (file)
@@ -400,9 +400,7 @@ dissect_rtnet_tdma_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root) {
   msg = tvb_get_ntohl(tvb, offset);
 
   /* Set the protocol column */
-  if (check_col(pinfo->cinfo,COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo,COL_PROTOCOL,"TDMA-V1");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "TDMA-V1");
 
   /* set the info column */
   if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -519,9 +517,7 @@ dissect_rtnet_tdma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root) {
   msg = tvb_get_ntohs(tvb, 2);
 
   /* Set the protocol column */
-  if (check_col(pinfo->cinfo,COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo,COL_PROTOCOL,"TDMA");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "TDMA");
 
   /* Set the info column */
   if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -596,9 +592,7 @@ dissect_rtmac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   }
 
   /* Set the protocol column */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTmac");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTmac");
 
   /* set the info column */
   if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -682,9 +676,7 @@ dissect_rtcfg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   const guint8 *haddr;
 
   /* Set the protocol column */
-  if(check_col(pinfo->cinfo,COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo,COL_PROTOCOL,"RTcfg");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTcfg");
 
   /* Clear out stuff in the info column */
   if(check_col(pinfo->cinfo,COL_INFO)){
index d14de2cb824742e0a27f7c51c6ff591faa8e6f25..e47b777c31b8587c159efe1b07f2d59f9b344429 100644 (file)
@@ -92,10 +92,7 @@ dissect_rtp_events( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
        guint8      rtp_evt;
        guint8      octet;
 
-       if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )
-       {
-           col_set_str( pinfo->cinfo, COL_PROTOCOL, "RTP EVENT" );
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTP EVENT");
        col_clear(pinfo->cinfo, COL_INFO);
 
 
index 82c6d7c6d09be790344bc67127cf1ce75f286211..e849f45f1ade14884e1d020fd326af134bec0374 100644 (file)
@@ -883,14 +883,8 @@ dissect_rtp_data( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
 
                if( pinfo->desegment_offset == 0 )
                {
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       {
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTP");
-                       }
-                       if (check_col(pinfo->cinfo, COL_INFO))
-                       {
-                               col_set_str(pinfo->cinfo, COL_INFO, "[RTP segment of a reassembled PDU]");
-                       }
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTP");
+                       col_set_str(pinfo->cinfo, COL_INFO, "[RTP segment of a reassembled PDU]");
                }
        }
 
@@ -1064,9 +1058,7 @@ dissect_rtp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
                /*
                 * Unknown or unsupported version.
                 */
-               if ( check_col( pinfo->cinfo, COL_PROTOCOL ) )   {
-                       col_set_str( pinfo->cinfo, COL_PROTOCOL, "RTP" );
-               }
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTP");
 
                if ( check_col( pinfo->cinfo, COL_INFO) ) {
                        col_add_fstr( pinfo->cinfo, COL_INFO,
index c009fe0d69ba3fc920dbcb51daef0e5a3d678de7..3f84d6210243d7727674998627169976600aa00a 100644 (file)
@@ -5591,9 +5591,7 @@ static gboolean dissect_rtps(tvbuff_t *tvb,
   if (tvb_get_guint8(tvb,offset+4) != 1) return FALSE;
 
   /* --- Make entries in Protocol column ---*/
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTPS");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTPS");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
index e3529e0f849cfccb1f38ec8e71ef524e1c0346f7..c0571abba9122da37bc2b5bed7c218f8329cbcdd 100644 (file)
@@ -8180,9 +8180,7 @@ static gboolean dissect_rtps(tvbuff_t *tvb,
   }
 
   /* --- Make entries in Protocol column ---*/
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTPS2");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTPS2");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
index 8eb82236eedc59b453ba3c5f79713402ad96ceaf..f2ce069da0a760b0b4b316ee924f47b312cfd286 100644 (file)
@@ -1299,9 +1299,7 @@ dissect_s5066_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        /* Determine PDU type to display in INFO column */
        guint8 pdu_type = tvb_get_guint8(tvb, s5066_header_size);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "S5066");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "S5066");
        /* Clear out stuff in the info column, the add PDU type */
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index e1e4f7f4bbe87d6216d534fcdad459bca6b0c5e6..dae12660dff32322096161cca77a4e7d1bb90fdf 100644 (file)
@@ -2677,13 +2677,9 @@ dissect_skinny(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   }
 
   /* Make entries in Protocol column and Info column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SKINNY");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SKINNY");
 
-  if (check_col(pinfo->cinfo, COL_INFO)) {
-    col_set_str(pinfo->cinfo, COL_INFO, "Skinny Client Control Protocol");
-  }
+  col_set_str(pinfo->cinfo, COL_INFO, "Skinny Client Control Protocol");
 
   tcp_dissect_pdus(tvb, pinfo, tree, skinny_desegment, 4,
        get_skinny_pdu_len, dissect_skinny_pdu);
index 87328bae189e795bf95ce1874001c3c093a8b8e8..7bd9a178666d61f00c897227849c7b0731e83d1e 100644 (file)
@@ -571,9 +571,7 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
        int i;
        guint32 uptime;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BROWSER");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BROWSER");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
@@ -816,9 +814,7 @@ dissect_mailslot_lanman(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
        const guint8 *host_name;
        guint namelen;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BROWSER");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BROWSER");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index a6d89ab56feb9babdc725a760d9c56c37142d132..25cdfe53481de1f4773aff4a3eeb310669016d3c 100644 (file)
@@ -99,15 +99,11 @@ dissect_mailslot_smb(tvbuff_t *mshdr_tvb, tvbuff_t *setup_tvb,
        }
        pinfo->current_proto = "SMB Mailslot";
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB Mailslot");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB Mailslot");
 
        if ((tvb==NULL) || (tvb_reported_length(tvb)==0)) {
                /* Interim reply */
-               if (check_col (pinfo->cinfo, COL_INFO)) {
-                       col_set_str(pinfo->cinfo, COL_INFO, "Interim reply");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Interim reply");
                return TRUE;
        }
 
index 825e9b661aa33c83febe57d1d4284e1c9022961a..9826475e6fdcbb7090f472f2d8a73cdb3a708899 100644 (file)
@@ -2651,9 +2651,7 @@ dissect_pipe_lanman(tvbuff_t *pd_tvb, tvbuff_t *p_tvb, tvbuff_t *d_tvb,
        }
        pinfo->current_proto = "LANMAN";
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LANMAN");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LANMAN");
 
        if (parent_tree) {
                item = proto_tree_add_item(parent_tree, proto_smb_lanman,
@@ -3539,9 +3537,7 @@ dissect_pipe_smb(tvbuff_t *sp_tvb, tvbuff_t *s_tvb, tvbuff_t *pd_tvb,
        /*
         * Set the columns.
         */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB Pipe");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB Pipe");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_set_str(pinfo->cinfo, COL_INFO,
                    smb_info->request ? "Request" : "Response");
index b6d4395a5283575aecf8cb044376f156f082eaf9..05468fc6d6a75f125960a2b296a6f626a7824662 100644 (file)
@@ -16261,9 +16261,7 @@ dissect_smb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
 
        top_tree=parent_tree;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 0f78bb3b6f041fb88c346368f09ef16d76b82c0a..088b85913f908f2b12e96d5cd1479d7f907a9c18 100644 (file)
@@ -5263,9 +5263,7 @@ dissect_smb2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolea
        }
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB2");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB2");
        if (check_col(pinfo->cinfo, COL_INFO)){
                if (first_in_chain) {
                        /* first packet */
index a088bde70957791ba9641a03dd7634581e2e96bb..9797e056e3572c9c7872ec97b93bbcb1e3582f4e 100644 (file)
@@ -615,10 +615,7 @@ dissect_ssl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /* Initialize the protocol column; we'll set it later when we
      * figure out what flavor of SSL it is (assuming we don't
      * throw an exception before we get the chance to do so). */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSL");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSL");
     /* clear the the info column */
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1171,12 +1168,8 @@ again:
                         * of the payload, and that's 0).
                         * Just mark this as SSL.
                         */
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSL");
-                       }
-                       if (check_col(pinfo->cinfo, COL_INFO)){
-                               col_set_str(pinfo->cinfo, COL_INFO, "[SSL segment of a reassembled PDU]");
-                       }
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSL");
+                       col_set_str(pinfo->cinfo, COL_INFO, "[SSL segment of a reassembled PDU]");
                }
 
                /*
index b1753b66b80cea49ec9c4d7aa7bb52abd6f48fc7..cea4d782f8cb462d068cfb23fe0814658381b04d 100644 (file)
@@ -486,9 +486,7 @@ dissect_starteam(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gint offset = 0;
        static gint iPreviousFrameNumber = -1;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "StarTeam");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "StarTeam");
 
        if(check_col(pinfo->cinfo, COL_INFO)){
                /* This is a trick to know whether this is the first PDU in this packet or not */
index c1f61a95492073b0aafdf77a09f9ae96788ce347..32e2e67e57b50b900b8c2b61c85a61295f170d5c 100644 (file)
@@ -2134,9 +2134,7 @@ dissect_t125(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree)
   gboolean pc;
   gint32 tag;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.125");
-  }
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.125");
   if (check_col(pinfo->cinfo, COL_INFO)){
     col_clear(pinfo->cinfo, COL_INFO);
   }
@@ -2149,9 +2147,7 @@ dissect_t125(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *parent_tree)
   if ( (class==BER_CLASS_APP) && (tag>=101) && (tag<=104) ){
     dissect_ConnectMCSPDU_PDU(tvb, pinfo, tree);
   } else {
-    if (check_col(pinfo->cinfo, COL_INFO)){
-      col_set_str(pinfo->cinfo, COL_INFO, "T.125 payload");
-    }
+    col_set_str(pinfo->cinfo, COL_INFO, "T.125 payload");
     proto_tree_add_text(tree, tvb, 0, -1, "T.125 payload");
   }
 
index 0b0d44241ee7033fa6f5019259ea0cd808e4b540..435d1044380e3ef6ebf659717b26c6017e07b3e3 100644 (file)
@@ -1093,9 +1093,7 @@ dissect_t38_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                }
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
@@ -1142,9 +1140,7 @@ dissect_t38_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tvbuff_t *next_tvb;
        guint16 ifp_packet_number=1;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "T.38");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 0c20ea30ba6c017fe532f10d2cf22874424bd20c..ab7d20a6155f03ce0167d2a41affe1c995841b7e 100644 (file)
@@ -1481,10 +1481,7 @@ dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
     tcap_top_tree = parent_tree;
     tcap_stat_tree = NULL;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
 
     /* create display subtree for the protocol */
     if(parent_tree){
index 7a1c1553c62a9a7c99db2cd4319fc1333e9ab300..d76fceba2782105ac91a293b04fc689042c54ac0 100644 (file)
@@ -1890,12 +1890,8 @@ again:
                         * of the payload, and that's 0).
                         * Just mark this as TCP.
                         */
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCP");
-                       }
-                       if (check_col(pinfo->cinfo, COL_INFO)){
-                               col_set_str(pinfo->cinfo, COL_INFO, "[TCP segment of a reassembled PDU]");
-                       }
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCP");
+                       col_set_str(pinfo->cinfo, COL_INFO, "[TCP segment of a reassembled PDU]");
                }
 
                /*
index c99dc6c042f2b8748d3174931b6b35128904644b..32cdc65a307f015c6ce143e85b5488474c4c221f 100644 (file)
@@ -706,9 +706,7 @@ static void dissect_ts2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16 class = tvb_get_letohs(tvb, 0);
 
        conversation_data = ts2_get_conversation(pinfo);
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TS2");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TS2");
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo,COL_INFO)) {
                col_clear(pinfo->cinfo,COL_INFO);
index 14207aeed60096ca9a253d6026e4170f76a03103..19792753172734b9f04024d61a39e29dd83fe8b1 100644 (file)
@@ -764,10 +764,7 @@ vnc_startup_messages(tvbuff_t *tvb, packet_info *pinfo, gint offset,
                break;
 
        case SECURITY_TYPES :
-               if (check_col(pinfo->cinfo, COL_INFO)) {
-                       col_set_str(pinfo->cinfo, COL_INFO,
-                                   "Authentication type selected by client");
-               }
+               col_set_str(pinfo->cinfo, COL_INFO, "Authentication type selected by client");
                proto_tree_add_item(tree, hf_vnc_client_security_type, tvb,
                                                        offset, 1, FALSE);
                per_conversation_info->security_type_selected =
index f771cbdc22a17a58482277688b30ec0876c2c615..934acf86e407d6e0f46c6b2a0614e0f1bbef727f 100644 (file)
@@ -210,9 +210,7 @@ dissect_wccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (match_strval(wccp_message_type, wccp_type_vals) == NULL)
                return 0;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL)) {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WCCP");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WCCP");
        if(check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index 66625b9d90ed42d7df74cb868cd679e219472d80..d13e65f83ef5efdc4bdd5b2b2e0fd6adde4f2d66 100644 (file)
@@ -573,72 +573,56 @@ dissect_winsrepl_replication(tvbuff_t *winsrepl_tvb, packet_info *pinfo,
 
        switch (command) {
                case WREPL_REPL_TABLE_QUERY:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_TABLE_QUERY");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_TABLE_QUERY");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_TABLE_QUERY");
                        proto_item_append_text(repl_item, ", WREPL_REPL_TABLE_QUERY");
                        winsrepl_offset = dissect_winsrepl_table_query(winsrepl_tvb, pinfo,
                                                                       winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_TABLE_REPLY:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_TABLE_REPLY");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_TABLE_REPLY");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_TABLE_REPLY");
                        proto_item_append_text(repl_item, ", WREPL_REPL_TABLE_REPLY");
                        winsrepl_offset = dissect_winsrepl_table_reply(winsrepl_tvb, pinfo,
                                                                       winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_SEND_REQUEST:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_SEND_REQUEST");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_SEND_REQUEST");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_SEND_REQUEST");
                        proto_item_append_text(repl_item, ", WREPL_REPL_SEND_REQUEST");
                        winsrepl_offset = dissect_winsrepl_send_request(winsrepl_tvb, pinfo,
                                                                        winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_SEND_REPLY:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_SEND_REPLY");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_SEND_REPLY");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_SEND_REPLY");
                        proto_item_append_text(repl_item, ", WREPL_REPL_SEND_REPLY");
                        winsrepl_offset = dissect_winsrepl_send_reply(winsrepl_tvb, pinfo,
                                                                      winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_UPDATE:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_UPDATE");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_UPDATE");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_UPDATE");
                        proto_item_append_text(repl_item, ", WREPL_REPL_UPDATE");
                        winsrepl_offset = dissect_winsrepl_update(winsrepl_tvb, pinfo,
                                                                  winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_UPDATE2:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_UPDATE2");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_UPDATE2");
                        proto_item_append_text(winsrepl_item, ",WREPL_REPL_UPDATE2");
                        proto_item_append_text(repl_item, ",WREPL_REPL_UPDATE2");
                        winsrepl_offset = dissect_winsrepl_update2(winsrepl_tvb, pinfo,
                                                                   winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_INFORM:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_INFORM");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_INFORM");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_INFORM");
                        proto_item_append_text(repl_item, ", WREPL_REPL_INFORM");
                        winsrepl_offset = dissect_winsrepl_inform(winsrepl_tvb, pinfo,
                                                                  winsrepl_offset, repl_tree);
                        break;
                case WREPL_REPL_INFORM2:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_INFORM2");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_REPL_INFORM2");
                        proto_item_append_text(winsrepl_item, ", WREPL_REPL_INFORM2");
                        proto_item_append_text(repl_item, ", WREPL_REPL_INFORM2");
                        winsrepl_offset = dissect_winsrepl_inform2(winsrepl_tvb, pinfo,
@@ -657,9 +641,7 @@ dissect_winsrepl_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        proto_tree *winsrepl_tree = NULL;
        enum wrepl_mess_type mess_type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WINS-Replication");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WINS-Replication");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
@@ -688,25 +670,19 @@ dissect_winsrepl_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
 
        switch (mess_type) {
                case WREPL_START_ASSOCIATION:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_START_ASSOCIATION");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_START_ASSOCIATION");
                        proto_item_append_text(winsrepl_item, ", WREPL_START_ASSOCIATION");
                        dissect_winsrepl_start(tvb, pinfo,
                                                        offset, winsrepl_tree);
                        break;
                case WREPL_START_ASSOCIATION_REPLY:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_START_ASSOCIATION_REPLY");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_START_ASSOCIATION_REPLY");
                        proto_item_append_text(winsrepl_item, ", WREPL_START_ASSOCIATION_REPLY");
                        dissect_winsrepl_start(tvb, pinfo,
                                                        offset, winsrepl_tree);
                        break;
                case WREPL_STOP_ASSOCIATION:
-                       if (check_col(pinfo->cinfo, COL_INFO)) {
-                               col_set_str(pinfo->cinfo, COL_INFO, "WREPL_STOP_ASSOCIATION");
-                       }
+                       col_set_str(pinfo->cinfo, COL_INFO, "WREPL_STOP_ASSOCIATION");
                        proto_item_append_text(winsrepl_item, ", WREPL_STOP_ASSOCIATION");
                        dissect_winsrepl_stop(tvb, pinfo,
                                                       offset, winsrepl_tree);
index c424cd787c59f07eb14ba0c62b10aa0f24376f2f..45aa6fd1c997d9b4ff41630729d980b281ffec09 100644 (file)
@@ -339,9 +339,7 @@ dissect_wtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
 
        /* Develop the string to put in the Info column */
-       if (check_col(pinfo->cinfo, COL_INFO)) {
-               col_set_str(pinfo->cinfo, COL_INFO, "WTLS" );
-       };
+       col_set_str(pinfo->cinfo, COL_INFO, "WTLS");
 
        /* In the interest of speed, if "tree" is NULL, don't do any work not
        necessary to generate protocol tree items. */
index df0a5cafb27179948ff2adbc50482215594a9525..885aed19d8c753ee264752199ec32f6c8f81f6b3 100644 (file)
@@ -179,9 +179,7 @@ dissect_x224(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        conversation_t *conversation;
        x224_conv_info_t *x224_info;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)){
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "X.224");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "X.224");
        if (check_col(pinfo->cinfo, COL_INFO)){
                col_clear(pinfo->cinfo, COL_INFO);
        }
index b37fe77209f4618b6b9056799bcbef7504b0e116..e45d768f753da4744e91c1b477e96c0f8460924a 100644 (file)
@@ -567,9 +567,7 @@ dissect_zbee_aps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         aps_tree = proto_item_add_subtree(proto_root, ett_zbee_aps);
     }
     /* Set the protocol column, if the NWK layer hasn't already done so. */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZigBee");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZigBee");
 
     /*  Get the FCF */
     fcf = tvb_get_guint8(tvb, offset);
index 48c172b6fc3006d4b3dbed3ce0d941a1b950111a..e2041fd51c03af81a99c051cc716b86987dd0e16 100644 (file)
@@ -367,9 +367,7 @@ dissect_zbee_nwk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     memset(&packet, 0, sizeof(packet));
 
     /* Add ourself to the protocol column, clear the info column, and create the protocol tree. */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZigBee");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZigBee");
     if (check_col(pinfo->cinfo, COL_INFO)) {
         col_clear(pinfo->cinfo, COL_INFO);
     }
index 319388643728b4fb90b2bb9d77e98f79aaf18e1a..e87a751a84bdc717a5b4d5745ecf6e12f81e0552 100644 (file)
@@ -1098,9 +1098,7 @@ dissect_zbee_zdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     }
 #if 0   
     /* Overwrite the protocol column */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZigBee ZDP");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZigBee ZDP");
 #endif
     /* Get and display the sequence number. */
     seqno = tvb_get_guint8(tvb, offset);
index 68385413fe2b642f2b3f2ff7786f59292aa0220f..8e8c0be533d88b3d5680e437b993791fd72c30e3 100644 (file)
@@ -82,10 +82,7 @@ static void dissect_ethercat_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree
    gint offset = 0;
    EtherCATFrameParserHDR hdr;
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL))
-   {
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECATF");
-   }
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECATF");
 
    if (check_col(pinfo->cinfo, COL_INFO))
    {
index 6a3e5f4fab2d582394ab9b5166e331b77d40c661..564f49f7f57fec6edca9c244f4e5aa1501e87158 100644 (file)
@@ -183,10 +183,7 @@ static void dissect_m2m(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int expected_len;
 
        /* display the M2M protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMax");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMax");
 
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo, COL_INFO))
index 269fe329a57dfa30d2c85a0f76d36c74959b28f5..3200204087d62b52c797da85b2e5ef751b7c5773 100644 (file)
@@ -164,10 +164,7 @@ static void dissect_opcua_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree
     FctParse pfctParse = NULL;
     enum MessageType msgtype = MSG_INVALID;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "OpcUa");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "OpcUa");
 
     /* parse message type */
     if (tvb->real_data[0] == 'H' && tvb->real_data[1] == 'E' && tvb->real_data[2] == 'L')
index d5fcf556a0d7f4bc589412e1ebbaf664c236a84b..9beffdf051f0e4d1fcf1707f9f9eaa25fe5fd0d8 100644 (file)
@@ -792,10 +792,7 @@ static void dissect_wimax(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        UNREFERENCED_PARAMETER(tree);
 
        /* display the WiMax protocol name */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       {
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMax");
-       }
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMax");
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index c07d73a6c026367e0e13f599ab01c1246cd0ea07..375765eabd08f6a26e029928a8b8a0f183261cd8 100644 (file)
@@ -1999,10 +1999,7 @@ dissect_wimaxasncp(
      */
 
     /* Make entries in Protocol column and Info column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    {
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMAX");
-    }
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "WiMAX");
 
     /* We'll fill in the "Info" column after fetch data, so we clear the
        column first in case calls to fetch data from the packet throw an