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

425 files changed:
asn1/acse/packet-acse-template.c
asn1/cmip/packet-cmip-template.c
asn1/disp/packet-disp-template.c
asn1/dop/packet-dop-template.c
asn1/dsp/packet-dsp-template.c
asn1/ftam/packet-ftam-template.c
asn1/h248/packet-h248-template.c
asn1/kerberos/packet-kerberos-template.c
asn1/mms/packet-mms-template.c
asn1/mpeg-audio/packet-mpeg-audio-template.c
asn1/mpeg-pes/packet-mpeg-pes-template.c
asn1/nbap/packet-nbap-template.c
asn1/ocsp/packet-ocsp-template.c
asn1/pcap/packet-pcap-template.c
asn1/pkixcmp/packet-cmp-template.c
asn1/pkixtsp/packet-pkixtsp-template.c
asn1/pres/packet-pres-template.c
asn1/ranap/packet-ranap-template.c
asn1/rnsap/packet-rnsap-template.c
asn1/ros/packet-ros-template.c
asn1/rrc/packet-rrc-template.c
asn1/rtse/packet-rtse-template.c
asn1/s1ap/packet-s1ap-template.c
asn1/s4406/packet-s4406-template.c
asn1/smrse/packet-smrse-template.c
asn1/snmp/packet-snmp-template.c
asn1/x2ap/packet-x2ap-template.c
asn1/x411/packet-x411-template.c
asn1/x420/packet-x420-template.c
asn1/x509af/packet-x509af-template.c
epan/dissectors/packet-3com-xns.c
epan/dissectors/packet-3g-a11.c
epan/dissectors/packet-9p.c
epan/dissectors/packet-aarp.c
epan/dissectors/packet-acap.c
epan/dissectors/packet-acse.c
epan/dissectors/packet-actrace.c
epan/dissectors/packet-afp.c
epan/dissectors/packet-agentx.c
epan/dissectors/packet-aim.c
epan/dissectors/packet-airopeek.c
epan/dissectors/packet-ajp13.c
epan/dissectors/packet-amqp.c
epan/dissectors/packet-amr.c
epan/dissectors/packet-ans.c
epan/dissectors/packet-aodv.c
epan/dissectors/packet-aoe.c
epan/dissectors/packet-ap1394.c
epan/dissectors/packet-arcnet.c
epan/dissectors/packet-armagetronad.c
epan/dissectors/packet-arp.c
epan/dissectors/packet-aruba-adp.c
epan/dissectors/packet-asf.c
epan/dissectors/packet-atalk.c
epan/dissectors/packet-atm.c
epan/dissectors/packet-auto_rp.c
epan/dissectors/packet-ax4000.c
epan/dissectors/packet-ayiya.c
epan/dissectors/packet-bacnet.c
epan/dissectors/packet-beep.c
epan/dissectors/packet-ber.c
epan/dissectors/packet-bfd.c
epan/dissectors/packet-bgp.c
epan/dissectors/packet-bofl.c
epan/dissectors/packet-bootp.c
epan/dissectors/packet-brdwlk.c
epan/dissectors/packet-bssgp.c
epan/dissectors/packet-btrfcomm.c
epan/dissectors/packet-btsdp.c
epan/dissectors/packet-bvlc.c
epan/dissectors/packet-ccsds.c
epan/dissectors/packet-cdp.c
epan/dissectors/packet-cgmp.c
epan/dissectors/packet-chdlc.c
epan/dissectors/packet-cimd.c
epan/dissectors/packet-cisco-sm.c
epan/dissectors/packet-cisco-wids.c
epan/dissectors/packet-clnp.c
epan/dissectors/packet-cmip.c
epan/dissectors/packet-cmp.c
epan/dissectors/packet-cmpp.c
epan/dissectors/packet-cops.c
epan/dissectors/packet-cpha.c
epan/dissectors/packet-csm-encaps.c
epan/dissectors/packet-daap.c
epan/dissectors/packet-daytime.c
epan/dissectors/packet-dcc.c
epan/dissectors/packet-dccp.c
epan/dissectors/packet-dcerpc.c
epan/dissectors/packet-dect.c
epan/dissectors/packet-dhcp-failover.c
epan/dissectors/packet-dhcpv6.c
epan/dissectors/packet-diameter.c
epan/dissectors/packet-disp.c
epan/dissectors/packet-distcc.c
epan/dissectors/packet-dlm3.c
epan/dissectors/packet-dlsw.c
epan/dissectors/packet-dnp.c
epan/dissectors/packet-dns.c
epan/dissectors/packet-dop.c
epan/dissectors/packet-dplay.c
epan/dissectors/packet-dpnss.c
epan/dissectors/packet-drda.c
epan/dissectors/packet-dsi.c
epan/dissectors/packet-dsp.c
epan/dissectors/packet-dtp.c
epan/dissectors/packet-dtpt.c
epan/dissectors/packet-dua.c
epan/dissectors/packet-eap.c
epan/dissectors/packet-eapol.c
epan/dissectors/packet-edonkey.c
epan/dissectors/packet-eigrp.c
epan/dissectors/packet-enc.c
epan/dissectors/packet-enip.c
epan/dissectors/packet-epmd.c
epan/dissectors/packet-erf.c
epan/dissectors/packet-esis.c
epan/dissectors/packet-etherip.c
epan/dissectors/packet-exec.c
epan/dissectors/packet-extreme.c
epan/dissectors/packet-fc.c
epan/dissectors/packet-fcct.c
epan/dissectors/packet-fcels.c
epan/dissectors/packet-fcfcs.c
epan/dissectors/packet-fcfzs.c
epan/dissectors/packet-fcip.c
epan/dissectors/packet-fcoe.c
epan/dissectors/packet-fcp.c
epan/dissectors/packet-fcsb3.c
epan/dissectors/packet-fcswils.c
epan/dissectors/packet-fddi.c
epan/dissectors/packet-fefd.c
epan/dissectors/packet-fip.c
epan/dissectors/packet-fr.c
epan/dissectors/packet-ftam.c
epan/dissectors/packet-ftp.c
epan/dissectors/packet-fw1.c
epan/dissectors/packet-g723.c
epan/dissectors/packet-gdsdb.c
epan/dissectors/packet-gift.c
epan/dissectors/packet-giop.c
epan/dissectors/packet-gmrp.c
epan/dissectors/packet-gnutella.c
epan/dissectors/packet-gprs-ns.c
epan/dissectors/packet-gre.c
epan/dissectors/packet-gsm_um.c
epan/dissectors/packet-gtp.c
epan/dissectors/packet-gtpv2.c
epan/dissectors/packet-gvrp.c
epan/dissectors/packet-h1.c
epan/dissectors/packet-h248.c
epan/dissectors/packet-h264.c
epan/dissectors/packet-hci_h1.c
epan/dissectors/packet-hilscher.c
epan/dissectors/packet-homeplug.c
epan/dissectors/packet-hsrp.c
epan/dissectors/packet-hyperscsi.c
epan/dissectors/packet-iapp.c
epan/dissectors/packet-icap.c
epan/dissectors/packet-icep.c
epan/dissectors/packet-icp.c
epan/dissectors/packet-icq.c
epan/dissectors/packet-idp.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ieee8021ah.c
epan/dissectors/packet-igrp.c
epan/dissectors/packet-imap.c
epan/dissectors/packet-infiniband.c
epan/dissectors/packet-ipdc.c
epan/dissectors/packet-ipfc.c
epan/dissectors/packet-ipp.c
epan/dissectors/packet-ipsec-tcp.c
epan/dissectors/packet-ipsec-udp.c
epan/dissectors/packet-ipsec.c
epan/dissectors/packet-ipv6.c
epan/dissectors/packet-ipx.c
epan/dissectors/packet-ipxwan.c
epan/dissectors/packet-irc.c
epan/dissectors/packet-isakmp.c
epan/dissectors/packet-iscsi.c
epan/dissectors/packet-isdn.c
epan/dissectors/packet-isis.c
epan/dissectors/packet-isl.c
epan/dissectors/packet-isns.c
epan/dissectors/packet-isup.c
epan/dissectors/packet-itdm.c
epan/dissectors/packet-jabber.c
epan/dissectors/packet-juniper.c
epan/dissectors/packet-kerberos.c
epan/dissectors/packet-kerberos4.c
epan/dissectors/packet-kingfisher.c
epan/dissectors/packet-kismet.c
epan/dissectors/packet-kpasswd.c
epan/dissectors/packet-l1-events.c
epan/dissectors/packet-l2tp.c
epan/dissectors/packet-lanforge.c
epan/dissectors/packet-lapb.c
epan/dissectors/packet-lapbether.c
epan/dissectors/packet-lapd.c
epan/dissectors/packet-lapdm.c
epan/dissectors/packet-laplink.c
epan/dissectors/packet-ldp.c
epan/dissectors/packet-lge_monitor.c
epan/dissectors/packet-linx.c
epan/dissectors/packet-lldp.c
epan/dissectors/packet-llt.c
epan/dissectors/packet-lmi.c
epan/dissectors/packet-lmp.c
epan/dissectors/packet-loop.c
epan/dissectors/packet-lpd.c
epan/dissectors/packet-lsc.c
epan/dissectors/packet-lwapp.c
epan/dissectors/packet-lwres.c
epan/dissectors/packet-m2tp.c
epan/dissectors/packet-m2ua.c
epan/dissectors/packet-maccontrol.c
epan/dissectors/packet-manolito.c
epan/dissectors/packet-mbtcp.c
epan/dissectors/packet-mdshdr.c
epan/dissectors/packet-megaco.c
epan/dissectors/packet-mesh.c
epan/dissectors/packet-mip.c
epan/dissectors/packet-mip6.c
epan/dissectors/packet-mms.c
epan/dissectors/packet-mmse.c
epan/dissectors/packet-mp4ves.c
epan/dissectors/packet-mpeg-audio.c
epan/dissectors/packet-mpeg-pes.c
epan/dissectors/packet-mpls-echo.c
epan/dissectors/packet-mq-pcf.c
epan/dissectors/packet-mq.c
epan/dissectors/packet-msdp.c
epan/dissectors/packet-msn-messenger.c
epan/dissectors/packet-msnlb.c
epan/dissectors/packet-msproxy.c
epan/dissectors/packet-msrp.c
epan/dissectors/packet-mstp.c
epan/dissectors/packet-mtp2.c
epan/dissectors/packet-nasdaq-itch.c
epan/dissectors/packet-nasdaq-soup.c
epan/dissectors/packet-nbap.c
epan/dissectors/packet-nbipx.c
epan/dissectors/packet-nbns.c
epan/dissectors/packet-ncp.c
epan/dissectors/packet-ncs.c
epan/dissectors/packet-ndmp.c
epan/dissectors/packet-ndps.c
epan/dissectors/packet-netbios.c
epan/dissectors/packet-netflow.c
epan/dissectors/packet-nettl.c
epan/dissectors/packet-newmail.c
epan/dissectors/packet-nlsp.c
epan/dissectors/packet-nntp.c
epan/dissectors/packet-nsip.c
epan/dissectors/packet-nsrp.c
epan/dissectors/packet-nt-sonmp.c
epan/dissectors/packet-nt-tpcp.c
epan/dissectors/packet-ntp.c
epan/dissectors/packet-ocsp.c
epan/dissectors/packet-oicq.c
epan/dissectors/packet-olsr.c
epan/dissectors/packet-opsi.c
epan/dissectors/packet-ospf.c
epan/dissectors/packet-paltalk.c
epan/dissectors/packet-pana.c
epan/dissectors/packet-pcap.c
epan/dissectors/packet-pcep.c
epan/dissectors/packet-pflog.c
epan/dissectors/packet-pgm.c
epan/dissectors/packet-pgsql.c
epan/dissectors/packet-pim.c
epan/dissectors/packet-pkixtsp.c
epan/dissectors/packet-pktc.c
epan/dissectors/packet-pktgen.c
epan/dissectors/packet-ppi.c
epan/dissectors/packet-ppp.c
epan/dissectors/packet-pptp.c
epan/dissectors/packet-pres.c
epan/dissectors/packet-prp.c
epan/dissectors/packet-ptp.c
epan/dissectors/packet-pvfs2.c
epan/dissectors/packet-q2931.c
epan/dissectors/packet-q931.c
epan/dissectors/packet-q933.c
epan/dissectors/packet-qllc.c
epan/dissectors/packet-quake.c
epan/dissectors/packet-quake2.c
epan/dissectors/packet-quake3.c
epan/dissectors/packet-quakeworld.c
epan/dissectors/packet-radius.c
epan/dissectors/packet-ranap.c
epan/dissectors/packet-rdm.c
epan/dissectors/packet-rip.c
epan/dissectors/packet-ripng.c
epan/dissectors/packet-rlm.c
epan/dissectors/packet-rmcp.c
epan/dissectors/packet-rmi.c
epan/dissectors/packet-rmt-alc.c
epan/dissectors/packet-rmt-norm.c
epan/dissectors/packet-rnsap.c
epan/dissectors/packet-roofnet.c
epan/dissectors/packet-ros.c
epan/dissectors/packet-rpc.c
epan/dissectors/packet-rpl.c
epan/dissectors/packet-rrc.c
epan/dissectors/packet-rsh.c
epan/dissectors/packet-rsl.c
epan/dissectors/packet-rsync.c
epan/dissectors/packet-rtmpt.c
epan/dissectors/packet-rtse.c
epan/dissectors/packet-rtsp.c
epan/dissectors/packet-rudp.c
epan/dissectors/packet-rx.c
epan/dissectors/packet-s1ap.c
epan/dissectors/packet-s4406.c
epan/dissectors/packet-sap.c
epan/dissectors/packet-sbus.c
epan/dissectors/packet-sctp.c
epan/dissectors/packet-sdlc.c
epan/dissectors/packet-sebek.c
epan/dissectors/packet-ses.c
epan/dissectors/packet-sflow.c
epan/dissectors/packet-sigcomp.c
epan/dissectors/packet-sip.c
epan/dissectors/packet-slimp3.c
epan/dissectors/packet-sll.c
epan/dissectors/packet-slowprotocols.c
epan/dissectors/packet-slsk.c
epan/dissectors/packet-smb-logon.c
epan/dissectors/packet-smpp.c
epan/dissectors/packet-smrse.c
epan/dissectors/packet-smtp.c
epan/dissectors/packet-sna.c
epan/dissectors/packet-snaeth.c
epan/dissectors/packet-sndcp.c
epan/dissectors/packet-snmp.c
epan/dissectors/packet-socks.c
epan/dissectors/packet-spp.c
epan/dissectors/packet-srvloc.c
epan/dissectors/packet-sscf-nni.c
epan/dissectors/packet-sscop.c
epan/dissectors/packet-stun.c
epan/dissectors/packet-stun2.c
epan/dissectors/packet-symantec.c
epan/dissectors/packet-synergy.c
epan/dissectors/packet-syslog.c
epan/dissectors/packet-tacacs.c
epan/dissectors/packet-tali.c
epan/dissectors/packet-tcp.c
epan/dissectors/packet-tds.c
epan/dissectors/packet-teimanagement.c
epan/dissectors/packet-telkonet.c
epan/dissectors/packet-telnet.c
epan/dissectors/packet-teredo.c
epan/dissectors/packet-tftp.c
epan/dissectors/packet-time.c
epan/dissectors/packet-tipc.c
epan/dissectors/packet-tivoconnect.c
epan/dissectors/packet-tns.c
epan/dissectors/packet-tpkt.c
epan/dissectors/packet-tpncp.c
epan/dissectors/packet-tr.c
epan/dissectors/packet-trmac.c
epan/dissectors/packet-tsp.c
epan/dissectors/packet-tte-pcf.c
epan/dissectors/packet-tte.c
epan/dissectors/packet-turbocell.c
epan/dissectors/packet-turnchannel.c
epan/dissectors/packet-tuxedo.c
epan/dissectors/packet-tzsp.c
epan/dissectors/packet-ucp.c
epan/dissectors/packet-udld.c
epan/dissectors/packet-uma.c
epan/dissectors/packet-umts_fp.c
epan/dissectors/packet-usb-masstorage.c
epan/dissectors/packet-usb.c
epan/dissectors/packet-v120.c
epan/dissectors/packet-vcdu.c
epan/dissectors/packet-vicp.c
epan/dissectors/packet-vines.c
epan/dissectors/packet-vj.c
epan/dissectors/packet-vlan.c
epan/dissectors/packet-vnc.c
epan/dissectors/packet-vrrp.c
epan/dissectors/packet-vtp.c
epan/dissectors/packet-wcp.c
epan/dissectors/packet-wfleet-hdlc.c
epan/dissectors/packet-who.c
epan/dissectors/packet-wlccp.c
epan/dissectors/packet-wol.c
epan/dissectors/packet-wow.c
epan/dissectors/packet-wsmp.c
epan/dissectors/packet-x11.c
epan/dissectors/packet-x25.c
epan/dissectors/packet-x29.c
epan/dissectors/packet-x2ap.c
epan/dissectors/packet-x411.c
epan/dissectors/packet-x420.c
epan/dissectors/packet-x509af.c
epan/dissectors/packet-xcsl.c
epan/dissectors/packet-xdmcp.c
epan/dissectors/packet-xot.c
epan/dissectors/packet-xtp.c
epan/dissectors/packet-xyplex.c
epan/dissectors/packet-yhoo.c
epan/dissectors/packet-ymsg.c
epan/dissectors/packet-zebra.c
epan/dissectors/packet-zrtp.c
plugins/docsis/packet-docsis.c
plugins/docsis/packet-macmgmt.c
plugins/ethercat/packet-ams.c
plugins/ethercat/packet-ethercat-datagram.c
plugins/ethercat/packet-ioraw.c
plugins/ethercat/packet-nv.c
plugins/giop/packet-coseventcomm.c
plugins/giop/packet-cosnaming.c
plugins/giop/packet-parlay.c
plugins/giop/packet-tango.c
plugins/gryphon/packet-gryphon.c
plugins/irda/packet-ircomm.c
plugins/irda/packet-irda.c
plugins/profinet/packet-pn-mrp.c
plugins/sercosiii/packet-sercosiii_1v1.c
plugins/sercosiii/packet-sercosiii_1v1_at.c
plugins/sercosiii/packet-sercosiii_1v1_mdt.c

index 0cfee1fec2a4c6a283f4a38e5fed52851300ecd9..2634cffbb7e1ad278bba262b263da1fa0a7a5ce3 100644 (file)
@@ -222,8 +222,7 @@ dissect_acse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_acse, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_acse);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACSE");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACSE");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 977c1c5819465d2409926ab769b32894edced56f..8876f3e0120611f40965b0fd3c08a892f26a7354 100644 (file)
@@ -128,8 +128,7 @@ dissect_cmip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                tree = proto_item_add_subtree(item, ett_cmip);
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMIP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMIP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        switch(session->spdu_type){
index ea6735d08cf9eb79136c5e6f71cb91e66a4e7563..d579487858e8eb1ff3889e25954a31b8137a3f10 100644 (file)
@@ -107,8 +107,7 @@ dissect_disp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_disp, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_disp);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 40254c94816664daf8db8a1f92e2eaa20a933a2c..8547281b6b19151683c53811b1b0ca5020f13c03 100644 (file)
@@ -148,8 +148,7 @@ dissect_dop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_dop, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_dop);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DOP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DOP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index cd24dab845f645cf6fc140e9c2cb713a13bcc6cf..14ad8453f131d44cdc4a724389bed16c8cbf1c6a 100644 (file)
@@ -101,8 +101,7 @@ dissect_dsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_dsp, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_dsp);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 78d20f4335909eca9e28c30681af3e8536fc2b4e..f6985656c076642695935def47a59676dfbd5775 100644 (file)
@@ -101,8 +101,7 @@ dissect_ftam(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_ftam, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_ftam);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTAM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTAM");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index dafa9c3f8803fc43cff7773748354217f1df5d04..641ca5201f0545ddb7533eb73c0ec8beb1a9d493 100644 (file)
@@ -1333,8 +1333,7 @@ dissect_h248(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, "H.248");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "H.248");
 
     if (tree) {
         h248_item = proto_tree_add_item(tree, proto_h248, tvb, 0, -1, FALSE);
index 17cd62670217258f1f4457c82b89b74651a5ad10..b53838c32e3951bbdf1fd93b71ab3e7c5256d4c9 100644 (file)
@@ -1367,8 +1367,7 @@ dissect_kerberos_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
            return (-1);
        }
        if (do_col_protocol) {
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
        }
         if (tree) {
             item = proto_tree_add_item(tree, proto_kerberos, tvb, 0, -1, FALSE);
@@ -1416,8 +1415,7 @@ dissect_kerberos_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                 return 0;
         }
        if (do_col_protocol) {
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
        }
        if (do_col_info) {
             if (check_col(pinfo->cinfo, COL_INFO))
index 9f9078833b0298de6492c126e8147721db97e263..49286e3d12e77a0a56f3da965a52b8888c1e8b80 100644 (file)
@@ -70,8 +70,7 @@ dissect_mms(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_mms, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_mms);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MMS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MMS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 1784e9bd09fc1b57788df7e3cb0f856db6a4a8fb..7c0c115ae1deab88e177fd07761bb4f9948418bf 100644 (file)
@@ -120,8 +120,7 @@ dissect_id3v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
        asn1_ctx_t asn1_ctx;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ID3v1");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ID3v1");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        if (tree == NULL)
@@ -134,8 +133,7 @@ dissect_id3v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 static void
 dissect_id3v2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ID3v2");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ID3v2");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        proto_tree_add_item(tree, hf_id3v2, tvb,
index cf84d57e11ba2567ba5d6ef25a75c87f776e6b09..23271106fc9d25d8b695e07bb1f62b65aaceb574 100644 (file)
@@ -310,8 +310,7 @@ dissect_mpeg_pes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        prefix = tvb_get_ntoh24(tvb, 0);
        if (prefix != PES_PREFIX)
                return FALSE;
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPEG PES");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPEG PES");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -466,8 +465,7 @@ static void
 dissect_mpeg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
     if (!dissector_try_heuristic(heur_subdissector_list, tvb, pinfo, tree)) {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-           col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPEG");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPEG");
        if (check_col(pinfo->cinfo, COL_INFO))
            col_clear(pinfo->cinfo, COL_INFO);
        if (tree)
index 4e45e34a020275150123585b9ea63ebd96ab64ce..6f396e58999a3e763b1cb946f8f57238722f4230 100644 (file)
@@ -119,8 +119,7 @@ dissect_nbap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *nbap_tree = NULL;
 
        /* make entry in the Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBAP");
 
        /* create the nbap protocol tree */
        nbap_item = proto_tree_add_item(tree, proto_nbap, tvb, 0, -1, FALSE);
index 476481056aa6b937877e446e01113a8012f065fe..1e743dffc1957b540593750e7b7a4ca79248959c 100644 (file)
@@ -68,8 +68,7 @@ dissect_ocsp_request(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, "OCSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "OCSP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
@@ -95,8 +94,7 @@ dissect_ocsp_response(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, "OCSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "OCSP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 5c4ba42ad648702a9da9cfd812ab2bd72fcf3188..78b178c27b41e569aa956280ebb9452e51fc844c 100644 (file)
@@ -134,8 +134,7 @@ dissect_pcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *pcap_tree = NULL;
 
        /* make entry in the Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCAP");
 
        /* create the pcap protocol tree */
        pcap_item = proto_tree_add_item(tree, proto_pcap, tvb, 0, -1, FALSE);
index ca7d126ad5c45530d140ba36a48c9611b2c4e0bd..9f8bd2104312131614c44452157aafa9db9e11c2 100644 (file)
@@ -122,8 +122,7 @@ static int dissect_cmp_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pa
 
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
@@ -294,8 +293,7 @@ dissect_cmp_http(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, "CMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 1f3c32b71a9dd98a3ebf7b5cecd05d0af7bcbc04..34d4a32e7deef17453ca223feeaa8ac2517752d4 100644 (file)
@@ -64,8 +64,7 @@ dissect_timestamp_reply(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
        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, "PKIXTSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKIXTSP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
@@ -90,8 +89,7 @@ dissect_timestamp_query(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
        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, "PKIXTSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKIXTSP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 97487b472867057e34934b2d75c14b89b15b5d36..a6fa4323330eb15f13fb083a93936aa85491865d 100644 (file)
@@ -314,8 +314,7 @@ dissect_pres(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        /*  we can't make any additional checking here   */
        /*  postpone it before dissector will have more information */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "PRES");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PRES");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        /* save pointers for calling the acse dissector  */
index 76bd1f4c7cc899f71e9678ce7b21c4fb0c12b6b9..68e728513a75ddd6f7a385f3b089bd128dffb85c 100644 (file)
@@ -210,8 +210,7 @@ dissect_ranap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        pdu_type = 0;
 
        /* make entry in the Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RANAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RANAP");
 
        /* create the ranap protocol tree */
        ranap_item = proto_tree_add_item(tree, proto_ranap, tvb, 0, -1, FALSE);
index c9c4dfb85522ef8ff125b48fac614668762df133..da64a9a7984baccf981fde7351de109792d433de 100644 (file)
@@ -123,8 +123,7 @@ dissect_rnsap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *rnsap_tree = NULL;
 
        /* make entry in the Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RNSAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RNSAP");
 
        /* create the rnsap protocol tree */
        rnsap_item = proto_tree_add_item(tree, proto_rnsap, tvb, 0, -1, FALSE);
index 66a7a3db40a646a9a11a95a79b8de2fbdea5e8db..3b8c3d24ead788dddb23861f33d06a23144c4a97 100644 (file)
@@ -442,8 +442,7 @@ dissect_ros(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_ros, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_ros);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ROS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ROS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 1fccfa8742f2658639a01c134463399a6ebb73eb..c29075b97ce2a1f709491031089ce9d7d9b09447 100644 (file)
@@ -110,8 +110,7 @@ dissect_rrc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        top_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, "RRC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RRC");
 
        /* create the rrc protocol tree */
        rrc_item = proto_tree_add_item(tree, proto_rrc, tvb, 0, -1, FALSE);
index 520e1166271007d18d435d2a617bae8599bc40ba..23b9205c4e175c3fba403dee2e3c44cf21435be0 100644 (file)
@@ -216,8 +216,7 @@ dissect_rtse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
 
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTSE");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTSE");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 9f5fb6a58202ce0b7f9b1f4066014d2a960e4adb..3827568b31fb8feda1660251c09b8120ee3b47b5 100644 (file)
@@ -147,8 +147,7 @@ dissect_s1ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *s1ap_tree = NULL;
 
        /* make entry in the Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "S1AP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "S1AP");
 
        /* create the s1ap protocol tree */
        s1ap_item = proto_tree_add_item(tree, proto_s1ap, tvb, 0, -1, FALSE);
index dcd159399763a354384accf1ef5f3dda45f1294b..15663376724e7c850a66209d6b3e082b3c7a7806 100644 (file)
@@ -75,8 +75,7 @@ dissect_s4406(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                tree = proto_item_add_subtree(item, ett_s4406);
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "S4406");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "S4406");
        if (check_col(pinfo->cinfo, COL_INFO))
          col_set_str(pinfo->cinfo, COL_INFO, "Military");
 
index 8f4089e335a5e1ebb6f6b319d8207f32d860c051..f912692557936a682293f751fc25b88c07531291 100644 (file)
@@ -98,8 +98,7 @@ dissect_smrse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                tree = proto_item_add_subtree(item, ett_smrse);
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMRSE");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMRSE");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, val_to_str(tag, tag_vals,"Unknown Tag:0x%02x"));
 
index af055c9c673f78418bb9dbfc6c7fc98c9b6e4f38..90faa70569a0cb1ab15ae6b052f428c045ac1f2b 100644 (file)
@@ -1686,8 +1686,7 @@ dissect_smux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        next_tvb_init(&var_list);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMUX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMUX");
 
        if (tree) {
                item = proto_tree_add_item(tree, proto_smux, tvb, 0, -1, FALSE);
index 1cade44a18903bd66db61dcd0a1e6e4b353f6053..9804ce8e7a0a98b3cc2fc3f7fa3dcac8bf6b728d 100644 (file)
@@ -120,8 +120,7 @@ dissect_x2ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *x2ap_tree = NULL;
 
        /* make entry in the Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "X2AP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "X2AP");
 
        /* create the x2ap protocol tree */
        x2ap_item = proto_tree_add_item(tree, proto_x2ap, tvb, 0, -1, FALSE);
index b170cbda8cad0a6240e8322570aa23208574a445..16ef5e59db77a0b3b87d44457204ea9a9e2a9e42 100644 (file)
@@ -140,8 +140,7 @@ dissect_x411_mts_apdu (tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tre
                tree = proto_item_add_subtree(item, ett_x411);
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "P1");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "P1");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Transfer");
 
@@ -182,8 +181,7 @@ dissect_x411(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_x411, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_x411);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "P1");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "P1");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 80352ebb2501f3886699228933deb4b47e39439e..83b63c9cfdaf76ecffc908ded3ca8af81f59c463 100644 (file)
@@ -110,8 +110,7 @@ dissect_x420(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                tree = proto_item_add_subtree(item, ett_x420);
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "P22");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "P22");
        if (check_col(pinfo->cinfo, COL_INFO))
          col_set_str(pinfo->cinfo, COL_INFO, "InterPersonal");
 
index 625a288a9996333933e6da38b798385ff6aa06cc..c450a636e7cb94d4f9efd2122c66ff37a6f10303 100644 (file)
@@ -74,8 +74,7 @@ dissect_pkix_crl(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, "PKIX-CRL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKIX-CRL");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 3952fbf5505e20567abbff9cba83de8c46e73653..bcc2221afac77fd48ed8ec64fee69c9b8baf42cf 100644 (file)
@@ -70,8 +70,7 @@ dissect_3com_xns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16 type;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "3Com XNS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "3Com XNS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 80354a1fee3458a6b91e71b33199e44c2de2ec07..6a9a6fd832af8c536fa195e2132d0cc1b968f1c7 100644 (file)
@@ -1393,8 +1393,7 @@ dissect_a11( 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, "3GPP2 A11");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "3GPP2 A11");
   if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 730f9251acbe7aacf450837861cafca3f04a8df2..0a46abb1aa9c5f1e040c7b706c71820f6672b855 100644 (file)
@@ -219,8 +219,7 @@ static void dissect_9P(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
        proto_tree *ninep_tree,*tmp_tree;
        nstime_t tv;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "9P");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "9P");
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_clear(pinfo->cinfo, COL_INFO);
 
index 0ea0451e32f71fa4792e1d4584f226d790c34181..63f9534177f9a1a0907a1721fb57bdbadad4d92f 100644 (file)
@@ -155,8 +155,7 @@ dissect_aarp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   const guint8      *sha_val, *spa_val, *tha_val, *tpa_val;
   gchar       *sha_str, *spa_str, *tha_str, *tpa_str;
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AARP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "AARP");
   if(check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index c788943c46f17883d88bf0bb9a233684620bc3eb..0464ae0e752ca6c2fa2c5bb578f94d29a27db984 100644 (file)
@@ -59,8 +59,7 @@ dissect_acap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int                             tokenlen;
        const guchar    *next_token;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACAP");
 
        /*
         * Find the end of the first line.
index 4be5cc1114e946f83e25f7d4108669038533838c..8a5fc63f21bafebd8ca8606c8afe898a6a2d4084 100644 (file)
@@ -1725,8 +1725,7 @@ dissect_acse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_acse, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_acse);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACSE");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ACSE");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 0eb9ae6c7ab15e5e550218b29554bf6019aa3950..9ac42bd4abbbcfb48deb371b6dc87087a49166db 100644 (file)
@@ -467,8 +467,7 @@ static int dissect_actrace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 * Set the columns now, so that they'll be set correctly if we throw
                 * an exception.  We can set them later as well....
                 */
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AC_TRACE");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "AC_TRACE");
                if (check_col(pinfo->cinfo, COL_INFO))
                        col_clear(pinfo->cinfo, COL_INFO);
 
@@ -512,8 +511,7 @@ static void dissect_actrace_cas(tvbuff_t *tvb, packet_info *pinfo, proto_tree *a
        sectionlen = 0;
        value = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "AC_CAS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AC_CAS");
 
        value = tvb_get_ntohl(tvb, offset);
        proto_tree_add_int(actrace_tree, hf_actrace_cas_time, tvb, offset, 4, value);
@@ -709,8 +707,7 @@ static void dissect_actrace_isdn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
        next_tvb = tvb_new_subset(tvb, offset, len, len);
        call_dissector(lapd_handle, next_tvb, pinfo, tree);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "AC_ISDN");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AC_ISDN");
        if (check_col(pinfo->cinfo, COL_INFO))
                        col_prepend_fstr(pinfo->cinfo, COL_INFO, "Trunk:%d  Blade %s PSTN "
                        , trunk, value==PSTN_TO_BLADE?"<--":"-->");
index f0c5406067bf9a8318111b67d66b4ebe33377537..6f44c249b43a04b2c4921b862d86dbd098f48f90 100644 (file)
@@ -4101,8 +4101,7 @@ dissect_afp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int     len =  tvb_reported_length(tvb);
        gint col_info = check_col(pinfo->cinfo, COL_INFO);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "AFP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AFP");
        if (col_info)
                col_clear(pinfo->cinfo, COL_INFO);
 
index e4c7e24671d5de7fcaa5eba493c3d4831dd35c82..072fd1a833a7263ca9077324d5e30cd1d419b618 100644 (file)
@@ -805,8 +805,7 @@ static void dissect_agentx_pdu(tvbuff_t *tvb, packet_info *pinfo,
        NORLEL(flags, packet_id, tvb, 12); offset+=4;
        NORLEL(flags, payload_len, tvb, 16); offset+=4;
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "AgentX");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "AgentX");
 
         if (check_col(pinfo->cinfo, COL_INFO))
                 col_add_fstr(pinfo->cinfo, COL_INFO, "%s: sid=%d, tid=%d, packid=%d, plen=%d",
index 391d006b9510b52c7b3050b4cf021e48a1f08a2e..a51e9787a968c0cbbf907ffe9029f1d0fe50b24f 100644 (file)
@@ -525,8 +525,7 @@ static void dissect_aim_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *aim_tree = NULL;
 
 /* 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, "AIM");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "AIM");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "AOL Instant Messenger");
index ae32a49816d25e42a1cb39edd6d0a77e7a7d46ea..dace13dcda2c50925f64227fbe5b2eceb3bd337c 100644 (file)
@@ -63,8 +63,7 @@ dissect_airopeek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *airopeek_tree = NULL;
   proto_item *ti = NULL;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AIROPEEK");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "AIROPEEK");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index d546476cc060d3a2c47ab7213a9ebe06a5b60683..42b06ccc033c9bb57b41b6cb348d952fab793227 100644 (file)
@@ -707,8 +707,7 @@ dissect_ajp13_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   mag = tvb_get_ntohs(tvb, 0);
   len = tvb_get_ntohs(tvb, 2);
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AJP13");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "AJP13");
   if (check_col(pinfo->cinfo, COL_INFO)) {
     if (mag == 0x1234 && !fd->is_request_body)
       col_append_fstr(pinfo->cinfo, COL_INFO, "%d:REQ:", conv->index);
index 61c56958549a4980c41b82580bc82ebdc9dcd09a..2c5da98b224d8ba9c5253c32f8286b95cd4c3ef7 100644 (file)
@@ -1092,8 +1092,7 @@ dissect_amqp_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint length;
     int offset;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "AMQP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AMQP");
     if (check_col(pinfo->cinfo, COL_INFO)) {
         col_clear(pinfo->cinfo, COL_INFO);
     }
index 9f1c0376b4f8b7151ccd62bd64da149dcf39b09f..7eae11cd62a82f5ad6c6eb14a986aa6006ad4083 100644 (file)
@@ -441,8 +441,7 @@ dissect_amr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *amr_tree, *toc_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, "AMR");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AMR");
        if (tree) {
 
                ti = proto_tree_add_item(tree, proto_amr, tvb, 0, -1, FALSE);
index 4311853829450efe12494fa8c23ae4d4bbb58138..f43b417b1c779457dc501097ab901a62cd192c1a 100644 (file)
@@ -75,8 +75,7 @@ dissect_ans(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32      seq_num;
        guint8       team_id[6];
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Intel ANS probe");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Intel ANS probe");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 8731881fb8d838343a77b3a55443ae4e34fc4db8..0f921e95819beb6a93c9d0047e3cfe575e50a9d7 100644 (file)
@@ -770,8 +770,7 @@ dissect_aodv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint8 type;
 
 /* 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, "AODV");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AODV");
 
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
index d15a7caa10929a3aef0b47935cdc41ec088356fd..06543f5f00b376df869a017d5e611f978e5214b0 100644 (file)
@@ -399,8 +399,7 @@ dissect_aoe(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
   proto_tree *tree=NULL;
   guint8 version;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AoE");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "AoE");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 9873130c3c90aa6dfa86f797151c25748a8aa099..5a8412acdccaa3ea8dc07ac37aa531d4e7d86a31 100644 (file)
@@ -72,8 +72,7 @@ dissect_ap1394(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16    etype;
   tvbuff_t *next_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IP/IEEE1394");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "IP/IEEE1394");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 2625b89631f0046cde94d2f2d228e9a374659092..5bdb2dd34c6df41644df51ff0dd8988276a094a2 100644 (file)
@@ -142,8 +142,7 @@ dissect_arcnet_common (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree,
   proto_item *ti = NULL;
   proto_tree *arcnet_tree = NULL;
 
-  if (check_col (pinfo->cinfo, COL_PROTOCOL))
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "ARCNET");
+  col_set_str (pinfo->cinfo, COL_PROTOCOL, "ARCNET");
 
   if (check_col (pinfo->cinfo, COL_INFO))
     col_set_str (pinfo->cinfo, COL_INFO, "ARCNET");
index d7f0d67abefae6272a6d19f9972c796a1c410658..3483e010b072cdd4fc6fede16d12fae6622e62b2 100644 (file)
@@ -242,8 +242,7 @@ dissect_armagetronad(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
 
        info = check_col(pinfo->cinfo, COL_INFO) ? g_string_new("") : NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Armagetronad");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Armagetronad");
 
        if (info)
                col_clear(pinfo->cinfo, COL_INFO);
index 9eafb9b4a234fb06d04af21426e0d092f53496a6..6b6eb1752930c8fc5c9c034cc8b972afaa1eb40a 100644 (file)
@@ -873,8 +873,7 @@ dissect_arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
      Clear the Info column so that, if we throw an exception, it
      shows up as a short or malformed ARP frame. */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ARP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ARP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 63f89a1feddacc52ce627e5e0a0d4d0f9fad4047..78a360a725d2882dd32d0f086383464fefc839a3 100644 (file)
@@ -64,8 +64,7 @@ dissect_aruba_adp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   const guint8 *switchip;
 
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ADP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ADP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 2897650c82de7f8221dd4bf068c2a8707fd982fa..d478f0bafc234f35153e53e9716734244e855e2c 100644 (file)
@@ -81,8 +81,7 @@ dissect_asf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8          len;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ASF");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ASF");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index cad278ff0153ef14bbfd29682432ab860db112a3..3535e6404b481d038435fb0e6312bcd7b67cfc2f 100644 (file)
@@ -579,8 +579,7 @@ dissect_rtmp_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   proto_item *ti;
   guint8 function;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -608,8 +607,7 @@ dissect_rtmp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   guint16 node; /* might be more than 8 bits */
   int i;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -695,8 +693,7 @@ dissect_nbp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   guint op, count;
   guint i;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -778,8 +775,7 @@ dissect_atp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   conversation_t  *conversation;
   asp_request_val *request_val = NULL;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATP");
 
   ctrlinfo = tvb_get_guint8(tvb, offset);
   bitmap   = tvb_get_guint8(tvb, offset +1);
@@ -1199,8 +1195,7 @@ dissect_pap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item *ti;
   int len;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PAP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1333,8 +1328,7 @@ dissect_asp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint8 fn;
   int len;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ASP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ASP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1481,8 +1475,7 @@ dissect_atp_zip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16 count;
   guint8 len;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZIP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZIP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1562,8 +1555,7 @@ dissect_ddp_zip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint i;
   guint count;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZIP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZIP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1690,8 +1682,7 @@ dissect_ddp_short(tvbuff_t *tvb, packet_info *pinfo, guint8 dnode,
   static struct atalk_ddp_addr src, dst;
   tvbuff_t   *new_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DDP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DDP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1753,8 +1744,7 @@ dissect_ddp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   static struct atalk_ddp_addr src, dst;
   tvbuff_t   *new_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DDP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DDP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1848,8 +1838,7 @@ dissect_llap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item *ti;
   tvbuff_t   *new_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLAP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index cc301de2b07681e4be1c76fe40781b836068050d..74d2eca7dcfb5961afb5299d070a0ae717485137 100644 (file)
@@ -661,8 +661,7 @@ dissect_lane(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   tvbuff_t     *next_tvb;
   tvbuff_t     *next_tvb_le_client;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATM LANE");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATM LANE");
 
   /* Is it LE Control, 802.3, 802.5, or "none of the above"? */
   switch (pinfo->pseudo_header->atm.subtype) {
@@ -1679,8 +1678,7 @@ dissect_atm_cell(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
   switch (aal) {
 
   case AAL_1:
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "AAL1");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AAL1");
     if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
     ti = proto_tree_add_item(tree, proto_aal1, tvb, offset, -1, FALSE);
@@ -1706,8 +1704,7 @@ dissect_atm_cell(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
     /*
      * XXX - or should this be the CS PDU?
      */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "AAL3/4");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AAL3/4");
     if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
     ti = proto_tree_add_item(tree, proto_aal3_4, tvb, offset, -1, FALSE);
@@ -1743,8 +1740,7 @@ dissect_atm_cell(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
   case AAL_OAMCELL:
     if (NULL == pwpd || pwpd->enable_fill_columns_by_atm_dissector)
     {
-      if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "OAM AAL");
+      col_set_str(pinfo->cinfo, COL_PROTOCOL, "OAM AAL");
       if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
     }
@@ -1816,8 +1812,7 @@ dissect_atm_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
        pinfo->pseudo_header->atm.aal = AAL_SIGNALLING;
   }
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATM");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATM");
 
   if (!pseudowire_mode) {
     switch (pinfo->pseudo_header->atm.channel) {
@@ -1913,8 +1908,7 @@ dissect_atm_oam_cell(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item   *atm_ti = NULL;
   gboolean     pseudowire_mode = (NULL != pinfo->private_data);
   
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATM");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ATM");
 
   if (!pseudowire_mode) {
     if (tree) {
index 427569c0fb88bb5b5f3450ef6aac3bcb9625a61a..12cf1e12c27900087ed99c60528dbd39a040b882 100644 (file)
@@ -115,8 +115,7 @@ static void dissect_auto_rp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
         guint8 ver_type, rp_count;
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "Auto-RP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Auto-RP");
         if (check_col(pinfo->cinfo, COL_INFO))
                 col_clear(pinfo->cinfo, COL_INFO);
 
index 08430c419b7aa0af7afb1dd3794e1e39fa24aaaf..ec771785a1776d58ab47d2cb7c3e57d72ca6e50f 100644 (file)
@@ -63,8 +63,7 @@ dissect_ax4000(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 ax_timestamp;
 
        /* 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, "AX4000");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AX4000");
     
        ax_port = tvb_get_guint8(tvb, 0);
        ax_chassis = tvb_get_guint8(tvb, 1);
index 8a264234c707391fe55bb36316868e605629b67d..7a000c9a5fd43c8a34347f2e077cc31d6c5943e1 100644 (file)
@@ -106,8 +106,7 @@ dissect_ayiya(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        ayiya_len = 8+idlen+siglen;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "AYIYA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "AYIYA");
 
        if (tree) {
                proto_item *ti;
index 6371058a4d536c5d5ad046269bf005262715465f..e013187a600fad01d57e06140476a6d9333cefd2 100644 (file)
@@ -190,8 +190,7 @@ dissect_bacnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 j;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BACnet-NPDU");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BACnet-NPDU");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Building Automation and Control Network NPDU");
index eaec0d8e04f6a639132c61d4774c7ea7031b3b39..8f5ecc54d9d717f187dd93c6c70c08e0fcba50cd 100644 (file)
@@ -893,8 +893,7 @@ dissect_beep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
       }
     }
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BEEP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "BEEP");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {  /* Check the type ... */
 
index 2dee4c9fcaac5e4d883392383141c00211c7958e..4eb943e348609bf2723b7f9b8754a577af10df97 100644 (file)
@@ -4202,8 +4202,7 @@ dissect_ber(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
   const char *name;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BER");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "BER");
 
   if (check_col(pinfo->cinfo, COL_DEF_SRC))
     col_set_str(pinfo->cinfo, COL_DEF_SRC, "BER encoded file");
index 7c9fa099e6d37a4e64e0b5579adb69f57c45ae33..899c418d107bae962a2ce3f689572777e68bc4be 100644 (file)
@@ -365,8 +365,7 @@ static void dissect_bfd_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
 
     const char *sep;
     
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "BFD Control");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BFD Control");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index 6fae1136a3fe7bae80c36f467a4dcad433a84042..955cdd3522fa1acda55fde0c8603083ed76930da 100644 (file)
@@ -2829,8 +2829,7 @@ dissect_bgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     volatile gboolean first = TRUE;  /* TRUE for the first BGP message in packet */
     tvbuff_t *volatile next_tvb;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BGP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BGP");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 20ef24da8ba4872c45c5c5fe9a3ef35426900ccd..1bc34124812c08ee8c89fe00dfee738f488e07d7 100644 (file)
@@ -68,8 +68,7 @@ dissect_bofl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     gint        len;
     guint32     pdu, sequence;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BOFL");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BOFL");
 
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
index 4035dfafca331119e98b279ae3b459f7929d8343..261e41c350efec8af093feda33546ddb3387cdd0 100644 (file)
@@ -3772,8 +3772,7 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             offset_delta;
        guint8          overload = 0; /* DHCP option overload */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BOOTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BOOTP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                /*
                 * In case we throw an exception fetching the opcode, etc.
@@ -3846,8 +3845,7 @@ dissect_bootp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 * Yes, this is a DHCP packet, and "dhcp_type" is the
                 * packet type.
                 */
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCP");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCP");
                if (check_col(pinfo->cinfo, COL_INFO))
                        col_add_fstr(pinfo->cinfo, COL_INFO, "DHCP %-8s - Transaction ID 0x%x",
                            dhcp_type, tvb_get_ntohl(tvb, 4));
index 589aef545d15525fdfbef2d251d81ef1c6ed0ad1..ed28d40bd182e0eb0cee7b4e5343d8cd973f8e77 100644 (file)
@@ -233,8 +233,7 @@ dissect_brdwlk (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     gboolean dropped_packets;
 
     /* 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, "Boardwalk");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Boardwalk");
     
     if (check_col(pinfo->cinfo, COL_INFO)) 
         col_clear(pinfo->cinfo, COL_INFO);
index e63b9fde2f5d8f14251345bd4bb4e946249eb5ff..bf88e178c0522729c6d5743e2298affeb36b50ef 100644 (file)
@@ -5995,8 +5995,7 @@ dissect_bssgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   pinfo->current_proto = "BSSGP";
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BSSGP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "BSSGP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
index 18ba73489bd9e6e4105b16cc8406a3a4f4769c18..56ac766273796ddff28d2ff6cb426ad4e29a27d4 100644 (file)
@@ -623,8 +623,7 @@ dissect_btrfcomm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        ti = proto_tree_add_item(tree, proto_btrfcomm, tvb, offset, -1, TRUE);
        rfcomm_tree = proto_item_add_subtree(ti, ett_btrfcomm);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RFCOMM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RFCOMM");
        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 7ea1eb4e5e4c4bb0769665715e22efadc0c954dc..8b6cc79bb13b46cb928db37b90c3cd266bede201 100644 (file)
@@ -704,8 +704,7 @@ dissect_btsdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const char *pdu_name;
        int offset=0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SDP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SDP");
 
        ti = proto_tree_add_item(tree, proto_btsdp, tvb, 0, -1, FALSE);
        st = proto_item_add_subtree(ti, ett_btsdp);
index 24ca19ab0344994bdb891a5da557acc659eee600..eae519e50dbd749942796ee44b1a60e90a7b04ef 100644 (file)
@@ -139,8 +139,7 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (match_strval(bvlc_type, bvlc_types) == NULL)
                return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BVLC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BVLC");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "BACnet Virtual Link Control");
index 4e989f1503e57484e04c0ca76947730accece1a0..e112dd1639eb18546f21b8db4031b0e39633baea 100644 (file)
@@ -341,8 +341,7 @@ dissect_ccsds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *secondary_header_tree;
         const char* time_string;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CCSDS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CCSDS");
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_set_str(pinfo->cinfo, COL_INFO, "CCSDS Packet");
 
index 7f5b469050a59d3b97f6542d7cc545bf8c8be993..f61c8cec792bfc88bd7050a6fc6306e5c3aca5d0 100644 (file)
@@ -184,8 +184,7 @@ dissect_cdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint32 ip_addr;
     vec_t cksum_vec[1];
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "CDP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CDP");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 95786f05881e26f553be0e7cd871d158f16875a7..894cb4015ede72276c4abaa06fae6b3c7292ae28 100644 (file)
@@ -61,8 +61,7 @@ dissect_cgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int offset = 0;
        guint8 count;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CGMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CGMP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Cisco Group Management Protocol");
 
index 461333693dde05a774e341e2ad326813ccdf255a..1507305f4e3915a20ed59519c637c4fabf621577 100644 (file)
@@ -163,8 +163,7 @@ dissect_chdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint8     addr;
   guint16    proto;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CHDLC");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "CHDLC");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -278,8 +277,7 @@ dissect_slarp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint32 mysequence;
   guint32 yoursequence;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SLARP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SLARP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 37aa89717e5048d90d2fe3855b15e3c82b0f0fc4..65b4e85a361625da85614cf510957e39d4747309 100644 (file)
@@ -681,8 +681,7 @@ dissect_cimd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   }
 
   /* Make entries in Protocol column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CIMD");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "CIMD");
 
   if (check_col(pinfo->cinfo, COL_INFO))
   {
index cc4b309ed95966ebaf78b3679a3439bb6720177f..85416b808172dc76d4b61022084b925af740b5de 100644 (file)
@@ -151,8 +151,7 @@ dissect_sm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        sm_message_type = tvb_get_ntohl(tvb,offset);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SM");
 
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_add_fstr(pinfo->cinfo, COL_INFO, "Cisco SM Packet (%s)",
index 350438787d10efe910d6b6cd595c291fa0baea31..ddebf5272bf4626bb2c8834acfc1974b443c4d7f 100644 (file)
@@ -79,8 +79,7 @@ dissect_cwids(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16 capturelen;
        guint remain;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-         col_set_str(pinfo->cinfo, COL_PROTOCOL, "CWIDS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CWIDS");
        if (check_col(pinfo->cinfo, COL_INFO))
          col_clear(pinfo->cinfo, COL_INFO);
 
index 84a5c7b8650147894a1f68380e8a831c643f4987..1f4560c971a7d0c8dd273e4430c751bb573f52a2 100644 (file)
@@ -217,8 +217,7 @@ static void dissect_clnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   gboolean    update_col_info = TRUE;
   gboolean    save_fragmented;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CLNP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "CLNP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 1c2e21a86146ed78f51d49fbd1dfd5bafe20d0df..61c4fad662076475464f1ea9f1251329593fc163 100644 (file)
@@ -4424,8 +4424,7 @@ dissect_cmip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                tree = proto_item_add_subtree(item, ett_cmip);
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMIP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMIP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        switch(session->spdu_type){
index c22ae6dbc0dab8d3cb49b06642c98afdf00e0229..a18960facca43d134a69a458864fc3f0aa6310d1 100644 (file)
@@ -1508,8 +1508,7 @@ static int dissect_cmp_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pa
 
        asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
@@ -1680,8 +1679,7 @@ dissect_cmp_http(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, "CMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index bd804218262437cf31aad13cdc1c2e481b184652..042b25214c454a1da49ac134ef785d4ee3a25a5c 100644 (file)
@@ -578,8 +578,7 @@ dissect_cmpp_tcp_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, "CMPP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CMPP");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index 4041a9168c6428ba0cbca9778a0a016fe4aed7c9..92392be88850107e441284f22ef2adbab9c2de0c 100644 (file)
@@ -896,8 +896,7 @@ dissect_cops_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16 client_type;
   int object_len;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "COPS");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "COPS");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index dfcee1f478430dfe0f67aee4785200c09623d936..58d904feb091f83c605307e182a08aa6820cbb0a 100644 (file)
@@ -218,8 +218,7 @@ dissect_cpha(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     return 0;
   }
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CPHA");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "CPHA");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index dd2a4b9755fc99a8be36d88d447e7d309052f62a..56f7f778039e01d4369e5b89b79cfa171845cd77 100644 (file)
@@ -244,8 +244,7 @@ dissect_csm_encaps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "CSM_ENCAPS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CSM_ENCAPS");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 4b924c094be102f5b8d418103d1ce6465ddf4497..7e373b9e99b7fb01efb9ba14958c3cab69ce443b 100644 (file)
@@ -147,8 +147,7 @@ dissect_daap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
    int offset = 0;
    gboolean is_request = (pinfo->destport == TCP_PORT_DAAP);
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAAP");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAAP");
 
    /*
     * XXX - what if the body is gzipped?  This isn't the only protocol
index a92c8991a4c0b078b3142ca0fe92b330c59b096f..a5a1fad917f978b64be94e21049a5228ff992be1 100644 (file)
@@ -45,8 +45,7 @@ dissect_daytime(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree   *daytime_tree;
   proto_item   *ti;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAYTIME");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAYTIME");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_add_fstr(pinfo->cinfo, COL_INFO, "DAYTIME %s",
index 56d9bb6f1495088c0981a386de93e93ea1012e1c..41064527c67a33a92ff599c778a3670620b10f0c 100644 (file)
@@ -230,8 +230,7 @@ dissect_dcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                return FALSE;
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCC");
 
        offset = 0;
        is_response = pinfo->srcport == DCC_PORT;
index b5ba348f8b3ff01113ba87d98f7efb560c5669df..9b6b2f71a0e852078e0eec4e2e712f5e6038343b 100644 (file)
@@ -597,8 +597,7 @@ static void dissect_dccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        SET_ADDRESS(&dccph->ip_src, pinfo->src.type, pinfo->src.len, pinfo->src.data);
        SET_ADDRESS(&dccph->ip_dst, pinfo->dst.type, pinfo->dst.len, pinfo->dst.data);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCCP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DCCP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 63a33bd5bd67500ab54c543f2c587131ffc4accd..66f0fd6b4380c6ad7cf08c33194f5be625e2bb5e 100644 (file)
@@ -3928,8 +3928,7 @@ dissect_dcerpc_cn (tvbuff_t *tvb, int offset, packet_info *pinfo,
         return TRUE;
     }
 
-    if (check_col (pinfo->cinfo, COL_PROTOCOL))
-        col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCERPC");
+    col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCERPC");
 
     if (check_col (pinfo->cinfo, COL_INFO)) {
         if(pinfo->dcectxid != 0) {
@@ -4773,8 +4772,7 @@ dissect_dcerpc_dg (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         return FALSE;
 
 
-    if (check_col (pinfo->cinfo, COL_PROTOCOL))
-        col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCERPC");
+    col_set_str (pinfo->cinfo, COL_PROTOCOL, "DCERPC");
     if (check_col (pinfo->cinfo, COL_INFO))
         col_add_str (pinfo->cinfo, COL_INFO, pckt_vals[hdr.ptype].strptr);
 
index c8743bfd9440977f1fb918aa4f0bf9edc208cfcb..03063509b16af0f3a682eddd404858be4790f217 100644 (file)
@@ -1891,8 +1891,7 @@ dissect_dect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                memset((char*)(&(pkt_bfield.Data)), 0, 128);
        pkt_bfield.Length=pkt_len-13;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DECT");
 
        /* Clear out stuff in the info column */
        if(check_col(pinfo->cinfo, COL_INFO))
index 56eca4da42fe58027e26686b852478c87071c3df..a45baca429ad0ae70cbe6ca5bf987e1e8320aed3 100644 (file)
@@ -377,8 +377,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 max_unacked_bndupd, receive_timer;
 
 /* 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, "DHCPFO");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCPFO");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index bb05209d05fcd40e7c1841697d77705e3ca8cd8a..98900be34c408c96254e134ef3177b004e95caa6 100644 (file)
@@ -1258,8 +1258,7 @@ dissect_dhcpv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
 static void
 dissect_dhcpv6_downstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCPv6");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCPv6");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        dissect_dhcpv6(tvb, pinfo, tree, TRUE, 0, tvb_reported_length(tvb));
@@ -1268,8 +1267,7 @@ dissect_dhcpv6_downstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 static void
 dissect_dhcpv6_upstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCPv6");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DHCPv6");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        dissect_dhcpv6(tvb, pinfo, tree, FALSE, 0, tvb_reported_length(tvb));
index 1d9e80336bcfe9641697b16d2264db11672c963d..1ec0250ef3f8d102f65414647a1f5146de5c8e83 100644 (file)
@@ -659,8 +659,7 @@ dissect_diameter_common(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree)
        proto_item *it;
        nstime_t ns;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DIAMETER");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DIAMETER");
 
        pi = proto_tree_add_item(tree,proto_diameter,tvb,0,-1,FALSE);
        diam_tree = proto_item_add_subtree(pi,ett_diameter);
index 142c92bcf0f80930f687853d7e74b17b5020d183..b68e5480ca81fb9639955da9a1f0720e0dd487e8 100644 (file)
@@ -1548,8 +1548,7 @@ dissect_disp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_disp, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_disp);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index f39b09e5f06d963fbb6eeb270879749b8b55c3d5..d166ad7afcdb31ee5c2b449af3dbef971bf38799 100644 (file)
@@ -293,8 +293,7 @@ dissect_distcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        guint32 parameter;
        
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISTCC ");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DISTCC ");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 3ecf22916b94990af075350ffcd1e7731bf661ee..262558892f4580817cc398b0e029215267db7c93 100644 (file)
@@ -776,8 +776,7 @@ dissect_dlm3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
     return 0;
 
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DLM3");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DLM3");
 
 
   if (check_col(pinfo->cinfo, COL_INFO))
index 505d101481c21cca075fe71a5750d97d983daebf..6b81f4f2a9a1ed52aaffc84866e5965085a1d0d3 100644 (file)
@@ -224,8 +224,7 @@ dissect_dlsw_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
  proto_tree      *dlsw_tree = NULL, *ti,*ti2, *dlsw_header_tree = NULL;
  proto_tree      *dlsw_flags_tree,*dlsw_data_tree;
 
- if (check_col(pinfo->cinfo, COL_PROTOCOL))
-   col_set_str(pinfo->cinfo, COL_PROTOCOL, "DLSw");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "DLSw");
 
  version=tvb_get_guint8(tvb,0);
 
index dd782725d6a61433b1a7b2ebcd831534afcc1d71..4a4f761c8cb4e35c0ed5b0fc7d8d421d784db9f7 100644 (file)
@@ -2315,8 +2315,7 @@ dissect_dnp3_message(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, "DNP 3.0");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNP 3.0");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
index 33210480458eca1e1128b5bdcb25d12a187c6809..18b1ccc7a02864d24bcae36b0c9f379c249c3a18 100644 (file)
@@ -3043,8 +3043,7 @@ dissect_dns_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
 static void
 dissect_dns_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNS");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNS");
 
   dissect_dns_common(tvb, pinfo, tree, FALSE, FALSE, FALSE);
 }
@@ -3052,8 +3051,7 @@ dissect_dns_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 static void
 dissect_mdns_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MDNS");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "MDNS");
 
   dissect_dns_common(tvb, pinfo, tree, FALSE, TRUE, FALSE);
 }
@@ -3061,8 +3059,7 @@ dissect_mdns_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 static void
 dissect_llmnr_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLMNR");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLMNR");
 
   dissect_dns_common(tvb, pinfo, tree, FALSE, FALSE, TRUE);
 }
@@ -3086,8 +3083,7 @@ get_dns_pdu_len(packet_info *pinfo _U_, tvbuff_t *tvb, int offset)
 static void
 dissect_dns_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNS");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNS");
 
   dissect_dns_common(tvb, pinfo, tree, TRUE, FALSE, FALSE);
 }
index c3429b73feeb2348a81395f828b8228249a3cee6..1fdb2d79c9d0702c64444cc499511ff3379f2fa3 100644 (file)
@@ -2110,8 +2110,7 @@ dissect_dop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_dop, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_dop);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DOP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DOP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 4be840955884e330b9354b2f63f278bfae901cfb..342eca720b4c3fdc4b455ff1d0fbc83a34e7584f 100644 (file)
@@ -1024,8 +1024,7 @@ static void dissect_dplay(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
     if(memcmp(play_id, (guint8 *)&dplay_id, 4) != 0)
     {
-        if(check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPLAY");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPLAY");
         /* Clear out stuff in the info column */
         if(check_col(pinfo->cinfo,COL_INFO))
             col_clear(pinfo->cinfo,COL_INFO);
@@ -1039,8 +1038,7 @@ static void dissect_dplay(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         second_message_type = tvb_get_letohs(tvb, 72);
     }
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPLAY");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPLAY");
     /* Clear out stuff in the info column */
     if(check_col(pinfo->cinfo,COL_INFO))
     {
@@ -1143,8 +1141,7 @@ static void dissect_dplay_player_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tr
 {
     guint32 mixed, size, token;
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPLAY");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPLAY");
     /* Clear out stuff in the info column */
     if(check_col(pinfo->cinfo,COL_INFO))
         col_clear(pinfo->cinfo,COL_INFO);
index 514398c2c6ea6257b0bd5b9a2cc4db6be996c308..443b535c3881d372b163338e109c5c66787d7773 100644 (file)
@@ -1459,8 +1459,7 @@ dissect_dpnss(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 octet;
 
 /* 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, "DPNSS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DPNSS");
 
        item = proto_tree_add_item(tree, proto_dpnss, tvb, 0, -1, FALSE);
        dpnss_tree = proto_item_add_subtree(item, ett_dpnss);
index d952876944015820328f2b6022f237d28163dc68..c9a2c60d98b8beac9d3a685e3142d2be4f1e64ae 100644 (file)
@@ -677,7 +677,7 @@ dissect_drda(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *drda_tree_sub;
        gint iLengthParam;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "DRDA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DRDA");
        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 6873f62d385df305dded6970702ffb0ba0641e3a..f9d48d3040dd2e577998372fb06a7a24733c6b23 100644 (file)
@@ -496,8 +496,7 @@ dissect_dsi_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gint            col_info;
        
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DSI");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DSI");
        col_info = check_col(pinfo->cinfo, COL_INFO);
        if (col_info)
                col_clear(pinfo->cinfo, COL_INFO);
index 70f25fede6cf702998a69db35cb072abcb329288..d71b1cc159d041a2726a65c5fb8ae603daa3eb47 100644 (file)
@@ -1764,8 +1764,7 @@ dissect_dsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_dsp, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_dsp);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DAP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 967bcdd9f4e6d4c5b1e1c2b5da54beaabe072154..d77e40485c6850e7462d8a162b613b11caaa6029 100644 (file)
@@ -78,8 +78,7 @@ dissect_dtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *tlv_tree=NULL;
        int offset = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Dynamic Trunking Protocol");
 
index b9f7c8cc32a31318477423093c6428d94b5c0c16..72276b5fd66d453ab9ac4ec0d64852ea114d9f88 100644 (file)
@@ -459,8 +459,7 @@ dissect_dtpt_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        queryset_size = tvb_get_letohl(tvb, offset + 4);
        if (queryset_size != 60) return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTPT");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTPT");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "QuerySet");
 
@@ -729,8 +728,7 @@ dissect_dtpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        return 0;
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTPT");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "DTPT");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_str(pinfo->cinfo, COL_INFO, val_to_str(message_type, names_message_type, "Unknown (%d)"));
 
index bc602c566fdf726e876303cf3fea2271e0f0017f..79c74f1b430cc57fd288a48b66ac0b3796e56617 100644 (file)
@@ -692,8 +692,7 @@ dissect_dua(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *dua_tree;
 
   /* make entry in the Protocol column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "DUA");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "DUA");
 
   /* In the interest of speed, if "tree" is NULL, don't do any work not
      necessary to generate protocol tree items. */
index 373e0f5bfbc8669c48195bf782ab0b9de150cbc3..96723f6478ca63e835d4c955efd405e97858eefc 100644 (file)
@@ -621,8 +621,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *ti;
   proto_tree *eap_tree = NULL;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "EAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "EAP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 5f62ed2bce87adf8e161cf11cbba60d45ef9301a..f14c873e7b2c1ac6d1af6eea9c13bc71932efe97 100644 (file)
@@ -142,8 +142,7 @@ dissect_eapol(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *key_index_tree, *keydes_tree;
   tvbuff_t   *next_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "EAPOL");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "EAPOL");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index be02978df6749a1844f6d9d2b222a598e767fc6d..628583c3cfcb975175b84650bb28cd1ba59aec5b 100644 (file)
@@ -2995,8 +2995,7 @@ static void dissect_edonkey_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tre
     void  (*dissector)(guint8, tvbuff_t*, packet_info*, int, int, proto_tree*);
     tvbuff_t *tvbraw = NULL;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "eDonkey");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "eDonkey");
 
     if (tree) {
         ti = proto_tree_add_item(tree, proto_edonkey, tvb, 0, -1, FALSE);
@@ -3119,8 +3118,7 @@ static void dissect_edonkey_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
     guint8 protocol, msg_type;
     const gchar *protocol_name, *message_name;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "eDonkey");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "eDonkey");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_set_str(pinfo->cinfo, COL_INFO, "eDonkey UDP Message");
index 0953e14067c5673676509fd32f10496bebbc37d6..573c073e70aab377fcb5865d728d3a97655d8ade 100644 (file)
@@ -147,8 +147,7 @@ dissect_eigrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
   guint16 tlv;
   guint32 ack, size, offset = EIGRP_HEADER_LENGTH;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "EIGRP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "EIGRP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 7e81cfe10bdf478c349ee2c5d35a033adcfb6fd8..4b547632385c5e39dc42b46faf89406d7d2aaab6 100644 (file)
@@ -109,8 +109,7 @@ dissect_enc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *enc_tree;
   proto_item *ti;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ENC");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ENC");
 
   /* Copy out the enc header to insure alignment */
   tvb_memcpy(tvb, (guint8 *)&ench, 0, sizeof(ench));
index 839a00e0a11d3e1824c528cf4f9308bc9dd5a2c5..710b022284a7e07ea88bb7b928f461de4ba391a5 100644 (file)
@@ -1027,8 +1027,7 @@ dissect_enip_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
    proto_tree *enip_tree, *header_tree = NULL, *csftree;
 
    /* 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, "ENIP");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "ENIP");
    if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1263,8 +1262,7 @@ dissect_enipio(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
    g_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, "ENIP");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "ENIP");
 
    /* In the interest of speed, if "tree" is NULL, don't do any work not
    necessary to generate protocol tree items. */
index 1e705c406bf0aa62cd2c43eb8550034132f89762..9afc8988413141c0c5631679307b273f137b4d65 100644 (file)
@@ -229,8 +229,7 @@ dissect_epmd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     if (!check_epmd(tvb))
        return(0);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPMD");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "EPMD");
 
     if (tree) {
        ti = proto_tree_add_item(tree, proto_epmd, tvb, 0, -1, FALSE);
index 16e5030cce4e916845a4322300d591a6615b94ea..c335481a8eabaecf67722b2cf4291402b1e3108d 100644 (file)
@@ -805,8 +805,7 @@ dissect_erf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   erf_type=pinfo->pseudo_header->erf.phdr.type & 0x7F;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ERF");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ERF");
   
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_add_fstr(pinfo->cinfo, COL_INFO, "%s",
index 7ee8a2a2b3077ed43d7b281957e4a15429d56d7c..c07dbfaedfcff6a78b2f22863346da1baa24749a 100644 (file)
@@ -282,8 +282,7 @@ dissect_esis(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
    guint       tmp_uint     = 0;
    const char *cksum_status;
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL))
-     col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESIS");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESIS");
    if (check_col(pinfo->cinfo, COL_INFO))
      col_clear(pinfo->cinfo, COL_INFO);
 
index 846039bacf0aa8ac97d3b69e4c7f6c048e6c98a9..0a194a8721e4abd06bb33256f3d1610f1abad725 100644 (file)
@@ -67,8 +67,7 @@ dissect_etherip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *etherip_tree;
   proto_item *ti;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ETHERIP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ETHERIP");
 
   /* Copy out the etherip header to insure alignment */
   tvb_memcpy(tvb, (guint8 *)&etheriph, 0, sizeof(etheriph));
index 6f0f8f298009582c7c9c33cdb95a9f4e87fa026f..28eac0138413cf730606d7fcfda21d0f5af52c46 100644 (file)
@@ -209,8 +209,7 @@ dissect_exec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                }
        }
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "EXEC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "EXEC");
 
        if(check_col(pinfo->cinfo, COL_INFO)){
                /* First, clear the info column */
index 24212fe8c4d4ea6ea5f0b097c0b04c198b042556..b4da3800971e9f3db2e2a5bfc21c3e2252cf1dc9 100644 (file)
@@ -678,8 +678,7 @@ dissect_esrp_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, int length, prot
                FALSE);
        offset += 2;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESRP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESRP");
 }
 
 static void
@@ -746,8 +745,7 @@ dissect_eaps_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, int length _U_,
                FALSE);
        offset += 38;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "EAPS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "EAPS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_append_fstr(pinfo->cinfo, COL_INFO, " ID: %d, MAC: %s",
                        ctrlvlanid, ether_to_str(sysmac));
@@ -863,8 +861,7 @@ dissect_esl_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, int length, proto
        offset += length;
        length = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESL");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_append_fstr(pinfo->cinfo, COL_INFO, " ID: %d, MAC: %s",
                        ctrlvlanid, ether_to_str(sysmac));
index 75681985fc2184750d38cd6ea710516134215b72..8ed44ef079589bf21ea5516c574df5979c0d7dca 100644 (file)
@@ -289,8 +289,7 @@ dissect_fc_ba_acc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     int offset = 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, "BLS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BLS");
 
     if (check_col(pinfo->cinfo, COL_INFO)) 
         col_set_str(pinfo->cinfo, COL_INFO, "BA_ACC");
@@ -321,8 +320,7 @@ dissect_fc_ba_rjt (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     int offset = 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, "BLS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "BLS");
 
     if (check_col(pinfo->cinfo, COL_INFO)) 
         col_set_str(pinfo->cinfo, COL_INFO, "BA_RJT");
@@ -653,8 +651,7 @@ dissect_fc_helper (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean
     fchdr.itlq=NULL;
 
     /* 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, "FC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC");
 
     fchdr.r_ctl = tvb_get_guint8 (tvb, offset);
 
index 3c60730ad6fd35344af92813dc1c6e96a040d4e3..0b99688b21140471e20c7a16ad8475ff22e53c32 100644 (file)
@@ -159,8 +159,7 @@ dissect_fcct (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     fc_ct_preamble cthdr;
 
     /* 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, "FC_CT");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC_CT");
 
     /*
       cthdr.revision = tvb_get_guint8 (tvb, offset++);
index d958e76bae8ac0b9a4f1d2816bb3b69c7821a656..d6b53a8170d7f4eff3461ad2dbb70ef06b80d39a 100644 (file)
@@ -1910,8 +1910,7 @@ dissect_fcels (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint8 addrdata[3];
 
     /* 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, "FC ELS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC ELS");
 
     /* decoding of this is done by each individual opcode handler */
     opcode = tvb_get_guint8 (tvb, 0);
index 52a7bff7500ea5ae280c7f336469c6e12fea2a14..8b48281fb3928eafde08ff05c705868159e31d60 100644 (file)
@@ -801,8 +801,7 @@ dissect_fcfcs (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         failed_opcode = 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, "FC-FCS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC-FCS");
     
     if (tree) {
         ti = proto_tree_add_protocol_format (tree, proto_fcfcs, tvb, 0,
index bbf05b88a686b7baa0625e2bd4eddaa72885aea8..3629ac42e1e593ad5f8de2e654f9493e95cc5952 100644 (file)
@@ -651,8 +651,7 @@ dissect_fcfzs (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint8 isreq = 1;
 
     /* 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, "Zone Server");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Zone Server");
 
 
     tvb_memcpy (tvb, (guint8 *)&cthdr, offset, FCCT_PRMBL_SIZE);
index 71279e5690eb1d846b002892f60079f6b42dfc3b..9049ff85be6baf25355fafca4baeb46a6b0184d1 100644 (file)
@@ -400,8 +400,7 @@ dissect_fcip (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
         }
 
         start = offset;
-        if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCIP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCIP");
 
         frame_len = (tvb_get_ntohs (tvb, offset+12) & 0x03FF)*4;
 
index 9cd29748e6637a81cfaa9eec8fe48c34535ca3db..11b60ebf581beb606be35dc241d58e156e04e249 100644 (file)
@@ -164,8 +164,7 @@ dissect_fcoe(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         if (version != 0)
             ver = ep_strdup_printf(ver, "ver %d ", version);
     }
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCoE");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCoE");
     crc_offset = header_len + frame_len;
     eof_offset = crc_offset + 4;
     bytes_remaining = tvb_length_remaining(tvb, header_len);
index 69aebf0da4e2f892bfe0f587c8ade453503ad465..e8212b1caef608d373d7ea4503816d9f1afee7ad 100644 (file)
@@ -628,8 +628,7 @@ dissect_fcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     fchdr=(fc_hdr *)pinfo->private_data;
 
     /* 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, "FCP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCP");
 
     r_ctl = pinfo->r_ctl;
 
index eec416f99f186f2b7f02a8d6a38f394b4d890856..4457ea4e99c4c3aecf9f22da426a13b559038530 100644 (file)
@@ -1019,8 +1019,7 @@ static void dissect_fc_sbccs (tvbuff_t *tvb, packet_info *pinfo,
     void* pd_save;
         
     /* 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, "FC-SB3");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC-SB3");
 
     /* Decode the basic SB3 and IU header and determine type of frame */
     type = get_fc_sbccs_iu_type (tvb, offset);
index db31f0414a4b83152f9496926e5a73b3a5209d84..daa2f025c9d554a335c43f9df696f93724e359f5 100644 (file)
@@ -1806,8 +1806,7 @@ dissect_fcswils (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tvbuff_t *next_tvb;
 
     /* 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, "SW_ILS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SW_ILS");
 
     /* decoding of this is done by each individual opcode handler */
     opcode = tvb_get_guint8 (tvb, 0);
index ac2f9103ea71dde209268d4e80f3695c88623f3d..9cf32e49bdb280a9e48d39df9c403d9242e09e52 100644 (file)
@@ -283,8 +283,7 @@ dissect_fddi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
   }
   fddihdr=&fddihdrs[fddihdr_num];
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FDDI");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "FDDI");
 
   fddihdr->fc = tvb_get_guint8(tvb, FDDI_P_FC + FDDI_PADDING);
   fc_str = fddifc_to_str(fddihdr->fc);
index 3f4c6994a774d38d559bd94a1d498757261a8980..e3b254bc6bbc96c39d6b34a554a6d8c3ae94e5a4 100644 (file)
@@ -105,8 +105,7 @@ dissect_fefd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree *tlv_tree;
     int real_length;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FEFD");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FEFD");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index c894a8d3121fe37ec8f7de850ea27b8aa65693c0..287186962239c92d614b4832e6f589d657781eba 100644 (file)
@@ -264,8 +264,7 @@ dissect_fip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     const char *info;
     char *text;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "FIP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FIP");
 
     if (!tvb_bytes_exist(tvb, 0, FIP_HEADER_LEN)) {
         if (check_col(pinfo->cinfo, COL_INFO))
index b1c7bfc369d88ca06b541e734b01e45905e6ddf3..21923fd386f453fa128e878330855f6d8290235e 100644 (file)
@@ -411,8 +411,7 @@ dissect_fr_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
   guint16 fr_type;
   tvbuff_t *next_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR");
   if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
 
@@ -674,8 +673,7 @@ static void dissect_fr_uncompressed(tvbuff_t *tvb, packet_info *pinfo,
   proto_item *ti = NULL;
   proto_tree *fr_tree = NULL;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "FR");
   if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
 
index b692e4b6b0dc71d4211e3879f6725fe3c41324a4..08ff47db03d5b22d85c00fc80484959c1cf42d31 100644 (file)
@@ -4794,8 +4794,7 @@ dissect_ftam(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_ftam, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_ftam);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTAM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTAM");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 0bcb51750a8d0600e0fe3c790f8c3762888fb125..2634223bfd6c0e9609c7567b4002dfdb9c300930 100644 (file)
@@ -324,8 +324,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        else
                is_request = FALSE;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTP");
 
        /*
         * Find the end of the first line.
@@ -633,8 +632,7 @@ dissect_ftpdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         proto_tree      *ti, *ftp_data_tree;
         int            data_length;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTP-DATA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "FTP-DATA");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_add_fstr(pinfo->cinfo, COL_INFO, "FTP Data: %u bytes",
index b54d9c8ee34994c2b275a4eca72ab6f28436da91..5bc712fa94ebece6b22aca93278ee576e7749ceb 100644 (file)
@@ -147,8 +147,7 @@ dissect_fw1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   header = ep_strbuf_new_label(fw1_header);
 
   /* 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, "FW1");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "FW1");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index a3c3992a4c69607023728935010c85aaf146e84e..6f2a4a445f7b851617399493ff7fcdce8f34460c 100644 (file)
@@ -79,8 +79,7 @@ dissect_g723(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *g723_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, "G.723.1");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "G.723.1");
        if (tree) {
                ti = proto_tree_add_item(tree, proto_g723, tvb, 0, -1, FALSE);
 
index f6d57ecbf0740b6e762134193b1714b8f3dd0683..f9bc0aea7a1118d8496996266e13217c3c728aec 100644 (file)
@@ -1258,8 +1258,7 @@ dissect_gdsdb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if(!gdsdb_handle_opcode[opcode](tvb, &nopi, NULL))
                return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "GDS DB");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GDS DB");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_str(pinfo->cinfo, COL_INFO,
index e8dcfb1f1e8690165cbac44b7b172217b5e47941..747ac24db37dbf95bad0a5b4d04599161c03e9ac 100644 (file)
@@ -59,8 +59,7 @@ dissect_gift(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const guchar    *next_token;
 
        /* set "Protocol" column text */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "giFT");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "giFT");
 
        /* determine whether it is a request to or response from the server */
        if (pinfo->match_port == pinfo->destport)
index de27b2c5b5af9980cf32197a98fe36cbf0b657a4..6017cb9149490b7c4dc985c557fe77b4de7a4df4 100644 (file)
@@ -1743,8 +1743,7 @@ static gboolean try_heuristic_giop_dissector(tvbuff_t *tvb, packet_info *pinfo,
     } /* protocol_is_enabled */
   } /* loop */
 
-  if (check_col (pinfo->cinfo, COL_PROTOCOL))
-      col_set_str (pinfo->cinfo, COL_PROTOCOL, "GIOP");
+  col_set_str (pinfo->cinfo, COL_PROTOCOL, "GIOP");
 
   pinfo->current_proto = saved_proto;
   return res;                  /* result */
index bee63921aec06cd3225d930b9a2978c49ec998f7..35b24f96b678caa86c872fa932edb1799a55f0f6 100644 (file)
@@ -120,8 +120,7 @@ dissect_gmrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint8               attribute_type;
     int           msg_index, attr_index, offset = 0, length = tvb_reported_length(tvb);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GMRP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GMRP");
 
     if (check_col(pinfo->cinfo, COL_INFO))
        col_set_str(pinfo->cinfo, COL_INFO, "GMRP");
index 992fd8a6c07ead8b99b952cfc049d3c108fc2779..bb21e1f7fa644f15485cd2a9e20c6982f4c57553 100644 (file)
@@ -524,8 +524,7 @@ static void dissect_gnutella(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
        proto_tree *gnutella_tree = NULL;
        guint32 size;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Gnutella");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Gnutella");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 1e320f84b34e4956f4099d27548a64b8e3e8ce2e..fe35516dcc320ac06e8f084a3950df12d118d427 100644 (file)
@@ -260,8 +260,7 @@ dissect_gprs_ns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16 bvc;
        tvbuff_t *next_tvb;
   
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "GPRS NS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GPRS NS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 9d8015478ee28707b2a1d57378527dfeeacfd8c2..17db26a6f191ec08e1aa24eebe035b04c08844a2 100644 (file)
@@ -255,8 +255,7 @@ dissect_gre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   flags_and_ver = tvb_get_ntohs(tvb, offset);
   type = tvb_get_ntohs(tvb, offset + sizeof(flags_and_ver));
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GRE");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "GRE");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_add_fstr(pinfo->cinfo, COL_INFO, "Encapsulated %s",
index c4c2aee2778a559d077dc653a72424789632d915..0788b1466d057697620bc028791d12b493087789 100644 (file)
@@ -117,8 +117,7 @@ dissect_gsm_um(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *gsm_um_tree = NULL;
        proto_item *ti;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM Um");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM Um");
 
        if (pinfo->pseudo_header->gsm_um.uplink) {
                if (check_col(pinfo->cinfo, COL_RES_DL_DST))
index 4cbea00c1953cf084da2a27ed222c61c9e313809..c5585c833d38c66be83853b7c2987340aa49febf 100644 (file)
@@ -6293,8 +6293,7 @@ static void dissect_gtp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
                }
        }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "GTP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GTP");
     if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index fcc2fac5a2b01291893777e83374efc46cad3568..54fdf313d60cb80167278a7f77317a58ff54a2bd 100644 (file)
@@ -1936,8 +1936,7 @@ dissect_gtpv2(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
 
 
        /* Currently we get called from the GTP dissector no need to check the version */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "GTPv2");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GTPv2");
     if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index d3063a9a1017621424742100a7d2371bd18d9182..c89818afb099ba8cbc4fb97e5821fa8592955c8c 100644 (file)
@@ -104,8 +104,7 @@ dissect_gvrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint8        octet;
     int           msg_index, attr_index, offset = 0, length = tvb_reported_length(tvb);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "GVRP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "GVRP");
 
     if (check_col(pinfo->cinfo, COL_INFO))
        col_set_str(pinfo->cinfo, COL_INFO, "GVRP");
index c73bad52b4af5619dd7d465e0743b659a46fc08d..e60bb380cddb6735da1b1c63e0ab0669e238136b 100644 (file)
@@ -122,8 +122,7 @@ static gboolean dissect_h1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
       return FALSE;
     }
 
-  if (check_col (pinfo->cinfo, COL_PROTOCOL))
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "H1");
+  col_set_str (pinfo->cinfo, COL_PROTOCOL, "H1");
   if (check_col (pinfo->cinfo, COL_INFO))
     col_set_str (pinfo->cinfo, COL_INFO, "S5: ");
   if (tree)
index e66feccbfe26449c27b7775fec15b1369f888651..bc1a777d3c35bf9299953642ec02e499f35dc99c 100644 (file)
@@ -5118,8 +5118,7 @@ dissect_h248(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, "H.248");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "H.248");
 
     if (tree) {
         h248_item = proto_tree_add_item(tree, proto_h248, tvb, 0, -1, FALSE);
index d46ae0789b555eeaaa7f2ebcffa6953d1e6824a0..53899ce480c06d7a712cefdbb405ed29b5bf5634 100644 (file)
@@ -1778,8 +1778,7 @@ dissect_h264(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, "H264");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "H264");
        if (tree) {
 
                item = proto_tree_add_item(tree, proto_h264, tvb, 0, -1, FALSE);
index 4ec12f4222c779d599679182523678cfe98c9bcd..2b8192f0dd8f50aa1658af9f05051271733bfcc5 100644 (file)
@@ -62,8 +62,7 @@ dissect_hci_h1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *ti=NULL;
        proto_tree *hci_h1_tree=NULL;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI");
 
        if(check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index c4cad775eb88530c3c97037a9fb6055f6176a3ac..5a87316a26662e76c955eb7803f8a8f0a404deb9 100644 (file)
@@ -100,8 +100,7 @@ dissect_hilscher_netanalyzer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
        szInfo=ep_alloc(MAX_BUFFER);
        szInfo[0]=0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "netANALYZER");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "netANALYZER");
 
        if (tree)
                ti = proto_tree_add_item(tree, hf_information_type, tvb, offset, 1, FALSE);
index 43fbda35529fe7224e6c158dabf670e195aeeccc..2ab91ca57210c04c50c02a95e5882bd77ff9037e 100644 (file)
@@ -1406,8 +1406,7 @@ dissect_homeplug(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
   proto_tree * homeplug_tree= NULL;
   ptvcursor_t * cursor= NULL;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "HomePlug");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "HomePlug");
   /* Clear out stuff in the info column */
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
index 139f69f68750318be5c5eb1533a3bd8404b8603b..7d6110b58eb19bd04327bda97a0dc2d7d8795211 100644 (file)
@@ -346,8 +346,7 @@ dissect_hsrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 /* HSRPv1 */
                 guint8 opcode, state = 0;
 
-                if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                        col_set_str(pinfo->cinfo, COL_PROTOCOL, "HSRP");
+                col_set_str(pinfo->cinfo, COL_PROTOCOL, "HSRP");
 
                 opcode = tvb_get_guint8(tvb, 1);
                 if (check_col(pinfo->cinfo, COL_INFO)) {
@@ -441,8 +440,7 @@ dissect_hsrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 proto_tree *hsrp_tree = NULL;
                 guint8 type,len;
 
-                if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                        col_set_str(pinfo->cinfo, COL_PROTOCOL, "HSRPv2");
+                col_set_str(pinfo->cinfo, COL_PROTOCOL, "HSRPv2");
 
                 if (tree) {
                         ti = proto_tree_add_item(tree, proto_hsrp, tvb, offset, -1, FALSE);
index eb9bc7c9edc6693b4bf03615739b3c1f9ef61875..6f05e0125280f572e6f520a43d548b18a28619ac 100644 (file)
@@ -93,8 +93,7 @@ dissect_hyperscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item *ti;
   guint8     hs_cmd, hs_ver;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "HyperSCSI");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "HyperSCSI");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 9e41bd6a98933e1aaacede666dc2ba7e5e93bde7..cc7e4a3fe6b0630fecb112e3400a17f61185a026 100644 (file)
@@ -417,8 +417,7 @@ dissect_iapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int ia_type;
        const gchar *codestrval;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAPP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAPP");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 8653df54be6da1e6dfdc7bc95224e7ee0bb6fb99..d777ce94ac3864d69c65d18e823e6a587a037329 100644 (file)
@@ -72,8 +72,7 @@ dissect_icap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        icap_type_t     icap_type;
        int             datalen;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICAP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                /*
index 832121634bfed838d802b4c37e1927a1096ca8bd..788eb897b4379e6f922d52011d79bfdb46583c1f 100644 (file)
@@ -1121,8 +1121,7 @@ static void dissect_icep_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, "ICEP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICEP");
        
        if ( check_col(pinfo->cinfo, COL_INFO) ) {
                col_add_str(pinfo->cinfo, COL_INFO, 
index 41da1ae27b0161910ba6ec6429cf15b85e0dae99..5187254bdc11488193395aa831a0279469d93b3b 100644 (file)
@@ -152,8 +152,7 @@ static void dissect_icp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint32 options;
   guint32 option_data;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICP");
   if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index 4ab79848b5294bfdaf38bc9515d8a8a436b6582f..6804bc5a3d8a624c10d7a0ec66369b3cff61601d 100644 (file)
@@ -1719,8 +1719,7 @@ static void dissect_icqv5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
   guint32 unknown;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv5 (UDP)");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ICQv5 (UDP)");
   if (check_col(pinfo->cinfo, COL_INFO))
       col_set_str(pinfo->cinfo, COL_INFO, "ICQv5 packet");
 
index 0389ecfbe6646b4f899cd9bc793af53145b5bdef..d70f4d044a13ea4634eb140541602e2f732e1148 100644 (file)
@@ -86,8 +86,7 @@ dissect_idp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8          type;
        tvbuff_t        *next_tvb;
        
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IDP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IDP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 1c1138f910b8f07d187c074caf8407f56ce56127..95c65958103262bb10ea6b6f43219d652ab61e14 100644 (file)
@@ -6120,8 +6120,7 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
 
   whdr= &whdrs[0];
 
-  if (check_col (pinfo->cinfo, COL_PROTOCOL))
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "IEEE 802.11");
+  col_set_str (pinfo->cinfo, COL_PROTOCOL, "IEEE 802.11");
   if (check_col (pinfo->cinfo, COL_INFO))
     col_clear (pinfo->cinfo, COL_INFO);
 
@@ -7554,8 +7553,7 @@ dissect_radio (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
   proto_item *ti = NULL;
   proto_tree *radio_tree = NULL;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "Radio");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Radio");
   if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
 
@@ -7768,8 +7766,7 @@ dissect_prism(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
     tvb_memcpy(tvb, (guint8 *)&hdr, offset, sizeof(hdr));
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Prism");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Prism");
     if(check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
@@ -8119,8 +8116,7 @@ dissect_wlancap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint32 ssi_type;
     guint32 antnoise;
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "WLAN");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "WLAN");
     if(check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
     offset = 0;
index 666f356cd16a442d923898aa8d0834aa0198cd81..4f1d565beac41520bbf69a9f0c3e4d6d06b4a50c 100644 (file)
@@ -119,8 +119,7 @@ dissect_ieee8021ad(tvbuff_t *tvb, packet_info *pinfo,
     proto_tree_index = proto_ieee8021ad;
 
     /* add info to column display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "802.1ad");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "802.1ad");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
@@ -313,8 +312,7 @@ dissect_ieee8021ah(tvbuff_t *tvb, packet_info *pinfo,
     proto_tree_index = proto_ieee8021ah;
 
     /* add info to column display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "802.1ah");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "802.1ah");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 5a51a756a2024f34799cfc40d5d57ba9aa002908..51d917e9abd15e12a89d0771b642d049559490a7 100644 (file)
@@ -65,8 +65,7 @@ static void dissect_igrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *igrp_tree, *igrp_vektor_tree;
   tvbuff_t   *next_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGRP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGRP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index aa8b1752b3078b81317d8b889c5abfbe4461dec8..c8e8b89d7587e728117987a361458b33f843bf88 100644 (file)
@@ -60,8 +60,7 @@ dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             tokenlen;
        const guchar    *next_token;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IMAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IMAP");
 
 
        if (pinfo->match_port == pinfo->destport)
index 6b6ff74b518d7175124f052bd6871cc57bf375cf..73320c66ba46a594014e6c25b50ebe331ea7891b 100644 (file)
@@ -85,8 +85,7 @@ dissect_infiniband(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     /* Clear other columns */
     if(pinfo->cinfo)
     {
-        if(check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "InfiniBand");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "InfiniBand");
         if(check_col(pinfo->cinfo, COL_INFO))
             col_clear(pinfo->cinfo, COL_INFO);
     }
index cb95fc5acc3efc82866e88e035808dd8bcf86fa8..2106400e8f828dd0531180423eff2c9b56b2e2f0 100644 (file)
@@ -104,8 +104,7 @@ dissect_ipdc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         guint16 offset;
 
         /* display IPDC protocol ID */
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPDC");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPDC");
 
        /* short frame... */
        if (payload_len < 4)
index 1d9429875d7d0533d8d8331051dd3981f0ed2457..8e133599f0a1dc0ceffdc45bb022b06a8001962e 100644 (file)
@@ -75,8 +75,7 @@ dissect_ipfc (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tvbuff_t *next_tvb;
 
     /* 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, "IP/FC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IP/FC");
 
     if (tree) {
         ti = proto_tree_add_protocol_format (tree, proto_ipfc, tvb, offset, 16,
index 3cc52a716f236c03a86c0188e792b6e7e3428e5d..35a39b63f9eab60458fdda742e751e2a8f0b4c86 100644 (file)
@@ -189,8 +189,7 @@ dissect_ipp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16 status_code;
        const gchar *status_fmt;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                if (is_request)
                        col_set_str(pinfo->cinfo, COL_INFO, "IPP request");
index b9fa8c7c273827065ee8a19979c4e31c7816ef2f..afd67f7d545bf38b8bedf6e2e9fe9b7895c83722 100644 (file)
@@ -116,8 +116,7 @@ dissect_tcpencap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                return 0;
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCPENCAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCPENCAP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 98f78fcbfaf995499f030e9cd7c0a950e6d21418..319b91d4d94ebb9459bcb0d584c689b3daf2bf30 100644 (file)
@@ -49,8 +49,7 @@ dissect_udpencap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item *ti = NULL;
   guint32 spi;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "UDPENCAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "UDPENCAP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index cbbda333d0c8ff37c08f6e91be4a31c3eca33ffc..08b5d5edb31b2636a500aa8871e596a55735d703 100644 (file)
@@ -1404,8 +1404,7 @@ dissect_ah_header(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
   struct newah ah;
   int advance;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "AH");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "AH");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1590,8 +1589,7 @@ dissect_esp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
 #endif
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ESP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -2613,8 +2611,7 @@ dissect_ipcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
    * load the top pane info. This should be overwritten by
    * the next protocol in the stack
    */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPComp");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPComp");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 9d374194df044c08001a1cefb06e489cb99f231b..e26b4d30bcc1cd494eb4c74c12a0a05b03eb86ed 100644 (file)
@@ -1272,8 +1272,7 @@ dissect_ipv6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   struct ip6_hdr ipv6;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPv6");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPv6");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index edf18aa8ffc5d2eb6dd4cd06945e1cdb8425d1b4..265190b4997a62ed20cd1269e03eec99484ed3e9 100644 (file)
@@ -259,8 +259,7 @@ dissect_ipx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        ipxh=&ipxh_arr[ipx_current];
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -596,8 +595,7 @@ dissect_spx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        spx_rexmit_info *spx_rexmit_info;
        spx_info        spx_info;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SPX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SPX");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "SPX");
 
@@ -847,8 +845,7 @@ dissect_ipxmsg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item      *ti;
        guint8          conn_number, sig_char;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX MSG");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX MSG");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -886,8 +883,7 @@ dissect_ipxrip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        static const char       *rip_type[3] = { "Request", "Response", "Unknown" };
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX RIP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX RIP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -956,8 +952,7 @@ dissect_serialization(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *ser_tree = NULL;
        proto_item      *ti;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NW_SERIAL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NW_SERIAL");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1229,8 +1224,7 @@ dissect_ipxsap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        static const char       *sap_type[4] = { "General Query", "General Response",
                "Nearest Query", "Nearest Response" };
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX SAP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX SAP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 2bbb9cc628803f484b8e78b1bce1470b0345a7e3..4f52bd42e12a7a52fe4e0f27f201cb7fe0a629ba 100644 (file)
@@ -135,8 +135,7 @@ dissect_ipxwan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 delta_time;
        guint8 compression_type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX WAN");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IPX WAN");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index cc66e2b2f2998cc10072f183ad40ddc1f359a6f5..d39dda650408b49f84d350923b52ab23ca4b026a 100644 (file)
@@ -77,8 +77,7 @@ dissect_irc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gint            next_offset;
        int             linelen;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "IRC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "IRC");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index a0ce019584020d31f853a9747ce064326311b9ce..dbb8e025f35d4f9fb24b1bff461a1d9b24f05553 100644 (file)
@@ -1004,8 +1004,7 @@ dissect_isakmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   gboolean             pd_changed = FALSE;
 #endif /* HAVE_LIBGCRYPT */
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISAKMP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISAKMP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 7058d19428aea2b443f991460ddb0b52791da007..9dbfe80a0ea0d656a1747e510f99f5807d210543 100644 (file)
@@ -651,8 +651,7 @@ dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint off
        paddedDataSegmentLength += 4 - (paddedDataSegmentLength & 3);
 
     /* 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, "iSCSI");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "iSCSI");
 
     /* XXX we need a way to handle replayed iscsi itt here */
     cdata=(iscsi_conv_data_t *)se_tree_lookup32(iscsi_session->itlq, tvb_get_ntohl(tvb, offset+16));
index 82f1d24c107cc9017623447e461563fc9064a2e3..f81f90482b45919caf282650945cdd0304a1cfce 100644 (file)
@@ -85,8 +85,7 @@ dissect_isdn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        static const guint8 ppp[2] = { 0xFF, 0x03 };
        circuit_t *circuit;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISDN");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISDN");
 
        if (pinfo->pseudo_header->isdn.uton) {
                if (check_col(pinfo->cinfo, COL_RES_DL_DST))
index a020255078379dc10a88bdaa8e390e48290c2bd2..cab1454f1b5a2bde255779abaa891d0349a36c23 100644 (file)
@@ -122,8 +122,7 @@ dissect_isis(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 isis_type;
        guint8 isis_system_id_len;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISIS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISIS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 05a6188ecd9bf5b1d547ec623d69f998eeac248f..04c68ce1612b13445fa23268a8982b3afe239392 100644 (file)
@@ -157,8 +157,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len)
   tvbuff_t *volatile trailer_tvb = NULL;
   const char *saved_proto;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISL");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISL");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index a7bdcfeddfc1477ff0526c6c56d15c7acaa77245..7b34f831136012cb4c625cf7ad563c65cd347493 100644 (file)
@@ -612,8 +612,7 @@ dissect_isns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree *isns_tree = NULL;
     
     /* 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, "iSNS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "iSNS");
     if (check_col(pinfo->cinfo, COL_INFO)) 
        col_clear(pinfo->cinfo, COL_INFO);
 
index 0f7d74b2dc6554442e71e99b93255794e5ebeff7..0b1c19ee31da582e99719b23d71b79e988678ae4 100644 (file)
@@ -7082,12 +7082,10 @@ dissect_isup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 /* Make entries in Protocol column and Info column on summary display */
        switch (isup_standard){
        case ITU_STANDARD:
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISUP(ITU)");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISUP(ITU)");
                break;
        case ANSI_STANDARD:
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISUP(ANSI)");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISUP(ANSI)");
                break;
        }
 
@@ -7156,8 +7154,7 @@ dissect_bicc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        /*circuit_t *circuit;*/
 
 /* 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, "BICC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BICC");
 
 /* Extract message type field */
        message_type = tvb_get_guint8(tvb, BICC_CIC_OFFSET + BICC_CIC_LENGTH);
index fc7511aa5e34bbfce20e9a73f21cd57d57e1401b..6b404b93161dee06886ac1c7f998ee98056723a2 100644 (file)
@@ -186,8 +186,7 @@ dissect_itdm_125usec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint8 ackbit;
 
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ITDM");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ITDM");
 
   flowid = tvb_get_ntoh24(tvb, ITDM_FLOWID_OFFSET);
   chanid = tvb_get_ntoh24(tvb, ITDM_CHANID_OFFSET);
@@ -284,8 +283,7 @@ dissect_itdm_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint32 paired_trans_id;
   guint32 allocd_flowid;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ITDM-Control");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ITDM-Control");
 
   flowid = tvb_get_ntoh24(tvb, ITDM_FLOWID_OFFSET);
   command = tvb_get_guint8(tvb, ITDM_CTL_CMD_OFFSET);
index 9973777bfe7fd3a0f978d53aa3ef3062400e605a..58bed87e1a1d1d73fa63402a3aeec6f88041f30f 100644 (file)
@@ -60,8 +60,7 @@ dissect_jabber(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             linelen;
        tvbuff_t *xmltvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Jabber");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Jabber");
 
        /*
         * Find the end of the first line.
index a3459ac1435e40a20d90e521a278d603ced0e241..5476888a33a9260c2a969e5c14690e2e6b675cde 100644 (file)
@@ -698,8 +698,7 @@ dissect_juniper_mlfr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16    mlpic_cookie;
   guint      proto,cookie_len;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper MLFR");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper MLFR");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -804,8 +803,7 @@ dissect_juniper_mlppp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16    mlpic_cookie;
   guint      proto,cookie_len;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper MLPPP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper MLPPP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -873,8 +871,7 @@ dissect_juniper_pppoe(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   int        bytes_processed;
   guint8     flags;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper PPPoE");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper PPPoE");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -903,8 +900,7 @@ dissect_juniper_ether(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   int        bytes_processed;
   guint8     flags;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper Ethernet");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper Ethernet");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -933,8 +929,7 @@ dissect_juniper_ppp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   int        bytes_processed;
   guint8     flags;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper PPP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper PPP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -963,8 +958,7 @@ dissect_juniper_frelay(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   int        bytes_processed;
   guint8     flags;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper Frame-Relay");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper Frame-Relay");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -993,8 +987,7 @@ dissect_juniper_chdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   int        bytes_processed;
   guint8     flags;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper C-HDLC");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper C-HDLC");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1042,16 +1035,13 @@ dissect_juniper_atm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint16
 
   switch (atm_pictype) {
   case JUNIPER_PIC_ATM1:
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper ATM1");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper ATM1");
     break;
   case JUNIPER_PIC_ATM2:
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper ATM2");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper ATM2");
     break;
   default: /* should not happen */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper ATM unknown");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper ATM unknown");
     return;
 
   }
@@ -1192,8 +1182,7 @@ static void dissect_juniper_ggsn(tvbuff_t* tvb, packet_info* pinfo, proto_tree*
   guint8     flags;
   guint16    proto;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper GGSN");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper GGSN");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
     
@@ -1224,8 +1213,7 @@ static void dissect_juniper_vp(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tr
   int        bytes_processed;
   guint8     flags;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper Voice PIC");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Juniper Voice PIC");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
     
index c8ac22589170bd4e73b37b1a921b6c2780518eab..2f4038ac0ffcb2a4ca7f822aff50ff3b06542d2e 100644 (file)
@@ -4644,8 +4644,7 @@ dissect_kerberos_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 static void
 dissect_kerberos_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
@@ -4705,8 +4704,7 @@ dissect_kerberos_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
            return (-1);
        }
        if (do_col_protocol) {
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
        }
         if (tree) {
             item = proto_tree_add_item(tree, proto_kerberos, tvb, 0, -1, FALSE);
@@ -4754,8 +4752,7 @@ dissect_kerberos_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                 return 0;
         }
        if (do_col_protocol) {
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
        }
        if (do_col_info) {
             if (check_col(pinfo->cinfo, COL_INFO))
index d2e3248f66125f388fce66f2942fd62ded70f52b..ddca19f2c8cea8321b2cffa2e68dc12c7e61443e 100644 (file)
@@ -317,8 +317,7 @@ dissect_krb4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        item = proto_tree_add_item(parent_tree, proto_krb4, tvb, offset, -1, FALSE);
        tree = proto_item_add_subtree(item, ett_krb4);
        
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB4");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB4");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index d1c273ce14426bb34dde06913e22b87e679d86d3..bc0b7bec2eed0cb1cb674f2e76416c25d7037aea 100644 (file)
@@ -207,8 +207,7 @@ dissect_kingfisher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean
         case 0x01:
         case 0x80:
         case 0x81:
-            if(check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "Kingfisher");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Kingfisher");
             if(check_col(pinfo->cinfo, COL_INFO)){
                 func_string = val_to_str(tvb_get_guint8(tvb, 0), function_code_vals, "Unknown function");
                 col_clear(pinfo->cinfo, COL_INFO);
@@ -278,8 +277,7 @@ dissect_kingfisher(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean
     /* Ok  this does look like Kingfisher, so lets dissect it */
     func_string = val_to_str(kfp->function, function_code_vals, "Unknown function");
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL) )
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Kingfisher");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Kingfisher");
     if(check_col(pinfo->cinfo, COL_INFO ))
     {
         col_clear(pinfo->cinfo, COL_INFO);
index 661a975513193874db44a5a5fa8a26abc9f682ad..56c0510800138c0158d04ef65a37dfd6f916b775 100644 (file)
@@ -102,8 +102,7 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
        /*
         * If it is Kismet traffic set COL_PROTOCOL.
         */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "kismet");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "kismet");
 
        /*
         * Check if it is request, reply or continuation.
index 93f9e39c1bc47953d607a33dd3c348846630fcc1..6e59d17ec6af06d8343f23dd58905f9010dae66d 100644 (file)
@@ -202,8 +202,7 @@ dissect_kpasswd_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboo
         gint krb_reclen = 0;
         gint krb_rm_size = 0;    /* bytes consumed by record mark: 0 or 4 */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "KPASSWD");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "KPASSWD");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -287,8 +286,7 @@ dissect_kpasswd_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 static void
 dissect_kpasswd_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "KPASSWD");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "KPASSWD");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index 40c15647fd7b1a7f77c9b141d54eb70ae9968931..8bb97df39bb3d9d6dd58c3574cfc53785c50987b 100644 (file)
@@ -74,8 +74,7 @@ dissect_l1_events(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                }
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Layer1");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Layer1");
        if (check_col(pinfo->cinfo, COL_DEF_SRC))
                col_set_str(pinfo->cinfo, COL_DEF_SRC, 
                            pinfo->pseudo_header->l1event.uton? "TE" : "NT");
index 79f85493592b8306856c64529ddcb6f98e8e0c4c..8553635b204d33482c474ceaa9498465e9345a56 100644 (file)
@@ -1730,8 +1730,7 @@ dissect_l2tp_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                break;
 
        case 3:
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "L2TPv3");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "L2TPv3");
                if (CONTROL_BIT(control)) {
                        /* Call to process l2tp v3 control message */
                        process_l2tpv3_control(tvb, pinfo, tree, 0);
index 8baed81a57d2d1d7d9d7e8356823993f06204ca1..e7aa9f551b7aa75afd41997f4ac78d19e1c9dc11 100644 (file)
@@ -91,8 +91,7 @@ static gboolean dissect_lanforge(tvbuff_t *tvb, packet_info *pinfo, proto_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, "LANforge");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LANforge");
     
     if(check_col(pinfo->cinfo, COL_INFO)) {
        col_add_fstr(pinfo->cinfo, COL_INFO, "Seq: %u", tvb_get_ntohl(tvb, 16));
index b6beb2d72473d955fe2f9acccd7857cd800ca6c0..e2a4387bed4969dcebc1b4db5aa25a9a27ba405b 100644 (file)
@@ -72,8 +72,7 @@ dissect_lapb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint8             byte0;
     tvbuff_t           *next_tvb;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPB");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPB");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 3f3bb10659ccdbe5d20dab357194b1259dac4de2..30a586107af18e98824322c5277ad282d399fe04 100644 (file)
@@ -49,8 +49,7 @@ dissect_lapbether(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     int                        len;
     tvbuff_t           *next_tvb;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPBETHER");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPBETHER");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 917371cb6fff045f418a79abc627e2206d3bf1cb..12a9263b9546fa8381a17918e8527db7a4ebec8b 100644 (file)
@@ -393,8 +393,7 @@ dissect_lapd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const char      *srcname = "?";
        const char      *dstname = "?";
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPD");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPD");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index fa29b162a59a98fca31f3139f6edac96089a1311..385f7873d3e1f8740eff91f42ef777df360eadcc 100644 (file)
@@ -223,8 +223,7 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     if (tvb_length(tvb) < LAPDM_HEADER_LEN)
         return;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPDm");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPDm");
 
     address = tvb_get_guint8(tvb, 0);
     length = tvb_get_guint8(tvb, 2);
index 2a4092f8c25932b31975632584220f77aeafc1ad..2ec14bb16e41b417f3dd41c8a836bc810e098fce 100644 (file)
@@ -97,8 +97,7 @@ dissect_laplink_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                return 0;       /* unknown */
 
 /* 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, "Laplink");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Laplink");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_str(pinfo->cinfo, COL_INFO, udp_ident_string);
@@ -126,8 +125,7 @@ dissect_laplink_tcp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 tcp_ident;
 
 /* 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, "Laplink");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Laplink");
 
        tcp_ident = tvb_get_ntohl(tvb, offset);
        if (check_col(pinfo->cinfo, COL_INFO)) {
index a100e95c2caa54b173ac42863d51fcfa25a21198..fd66340c1d9db96921b19eadf3a9be6524b4bc7c 100644 (file)
@@ -2464,8 +2464,7 @@ dissect_ldp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int rem, length;
        proto_tree *ti=NULL, *pdu_tree = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LDP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LDP");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 98047615e5f1418c4126a1c57b01032b00e2dfce..dbd7c71edd7ba2a69cdc97c2cf7fb98d78f3adf4 100644 (file)
@@ -84,8 +84,7 @@ dissect_lge_monitor(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *lge_monitor_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, "LGE Monitor");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LGE Monitor");
 
        ti = proto_tree_add_item(tree, proto_lge_monitor, tvb, 0, LGEMON_PROTO_HEADER_LENGTH, FALSE);
        lge_monitor_tree = proto_item_add_subtree(ti, ett_lge_monitor);
index 04220acd46ba38a1b80711d189456e6f8fad5195..c6b6acd76fb4f05c9cbe06e01fd797418355a84c 100644 (file)
@@ -236,8 +236,7 @@ dissect_linx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        tvbuff_t *linx_tvb;
 
        /* Show name in protocol column */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LINX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LINX");
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index c85975d6e514df37ea053be0bf555d2bb397986b..07f6121460de2abea44fe31901fb80e501cd7225 100644 (file)
@@ -2465,8 +2465,7 @@ dissect_lldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 tempType;
        gboolean reachedEnd = FALSE;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLDP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLDP");
 
        /* Clear the information column on summary display */
        if (check_col(pinfo->cinfo, COL_INFO)) {
index 6d4feb2fadeaedf079f9d525691d73ca029884c5..74a9f62d01fd02f635a5f373d6d91d9943c68bfb 100644 (file)
@@ -70,8 +70,7 @@ dissect_llt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 message_type;
 
        /* 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, "LLT");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LLT");
 
        message_type = tvb_get_guint8(tvb, 3);
 
index 88f3cc62e3a730cff0040b44548a5ab8b8102149..44bc992c2091ad9477df286ae7cf694ebba5305d 100644 (file)
@@ -145,8 +145,7 @@ dissect_lmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8          msg_type;
        guint8          ele_id;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMI");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMI");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 09a3b684986292c2612c3a83da4ec70d695c6f33..9f42a2d6176dd37ee5274757b01ebc428ece9e8f 100644 (file)
@@ -687,8 +687,7 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
            return 0;
     }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LMP");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index 4bcb9ea5cd87e343c2a9930c550d6792282a0807..5cb83e5dfa9ebf96f6aecdc99b6170ba96dc4f30 100644 (file)
@@ -65,8 +65,7 @@ dissect_loop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   gboolean    more_function;
   tvbuff_t    *next_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LOOP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "LOOP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 593bd240967a2d4859a549b398103748e780a7bf..c5925f25f7792bb8bed23aa2fc512d2c8542a855 100644 (file)
@@ -77,8 +77,7 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                { 0, NULL }
        };
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "LPD");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "LPD");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index b60a886233cc1ba1bbe73ddca19553cda6b0055d..78497696d9352767ff4e711310fe3bc516bb10df 100644 (file)
@@ -150,8 +150,7 @@ dissect_lsc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint expected_len;
 
   /* Protocol is LSC, packet summary is not yet known */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LSC");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "LSC");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 43954daf244c3ac51eb74080b1e2b13d9b68bd59..0318b286bae1aca1d85ac202d239234cab892a49 100644 (file)
@@ -270,8 +270,7 @@ static void dissect_control(tvbuff_t *tvb, packet_info *pinfo,
     gint             offset=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, "LWAPP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LWAPP");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
         col_set_str(pinfo->cinfo, COL_INFO,
@@ -334,8 +333,7 @@ static void dissect_lwapp_l3(tvbuff_t *tvb, packet_info *pinfo,
     tvbuff_t        *next_client;
 
     /* 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, "LWAPP-L3");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LWAPP-L3");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
         col_set_str(pinfo->cinfo, COL_INFO, "802.3 Packets over Layer 3");
@@ -378,8 +376,7 @@ static void dissect_lwapp(tvbuff_t *tvb, packet_info *pinfo,
     gint             offset=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, "LWAPP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LWAPP");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
         col_set_str(pinfo->cinfo, COL_INFO,
index bbea636a376f6de2f2265cea7eb5e37b598cc10c..45bf610eb4c60ad3ab931c669fc6e479fa8bab0f 100644 (file)
@@ -1166,8 +1166,7 @@ dissect_lwres(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item* lwres_item;
        proto_tree* lwres_tree;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "lw_res");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "lw_res");
        length = tvb_get_ntohl(tvb, LW_LENGTH_OFFSET);
        version = tvb_get_ntohs(tvb, LW_VERSION_OFFSET);
        flags = tvb_get_ntohs(tvb, LW_PKTFLASG_OFFSET);
index eb6bfa5609ab72ace9356ac60726794b3fcef8dc..381b663d31c6643fdb1591f316fdde90bf2b5ccf 100644 (file)
@@ -539,8 +539,7 @@ dissect_m2tp(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *m2tp_tree;
 
   /* make entry in the Protocol column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "M2TP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "M2TP");
 
   /* In the interest of speed, if "tree" is NULL, don't do any work not
      necessary to generate protocol tree items. */
index cfd5b9fba5130c76cfedf4280cad7052ae805790..2611c22189f4ec9baaad6b3f27e0ef7db0534069 100644 (file)
@@ -1056,8 +1056,7 @@ dissect_m2ua(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *m2ua_tree;
 
   /* make entry in the Protocol column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "M2UA");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "M2UA");
 
   /* In the interest of speed, if "tree" is NULL, don't do any work not
      necessary to generate protocol tree items. */
index 44a8bf6121c1350f5c663825d0679b3d312703a6..4ed72cc41a4e592f4b95091da6a79b136fda1f05 100644 (file)
@@ -50,8 +50,7 @@ dissect_macctrl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        pause = tvb_get_ntohs(tvb, 0);
        pause_quanta = tvb_get_ntohs(tvb, 2);
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "CTRL");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "CTRL");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 2ad412ad067a716d42a758d152303a359d1c3371..9530661cf9ff5f3cf033d62c5529b56e860adc44 100644 (file)
@@ -70,8 +70,7 @@ dissect_manolito(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const char* packet_type = 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, "MANOLITO");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MANOLITO");
     
        ti = proto_tree_add_item(tree, proto_manolito, tvb, 0, -1, FALSE);
 
index 1d41c494fbb2b111774c1eb72c75668f6da98246..a6ba6ca872cbee76f6449bab2429ecca7af798ec 100644 (file)
@@ -244,8 +244,7 @@ dissect_mbtcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
 
        /* Make entries in Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Modbus/TCP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Modbus/TCP");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index a2f26f316f032d74d3f7110917bd56ec85945450..43ea355c2ea06b9802ece3b28c18ee2b84c73412 100644 (file)
@@ -169,8 +169,7 @@ dissect_mdshdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     int trailer_start = 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, "MDS Header");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MDS Header");
     
     if (check_col (pinfo->cinfo, COL_INFO))
         col_clear (pinfo->cinfo, COL_INFO);
index 1099ca41435209da464f65e1fd273d4bbfdee926..9abd120cfa301c00f42d23d82b7349c7cb2fd451 100644 (file)
@@ -405,8 +405,7 @@ dissect_megaco_text(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
 
        /* Display MEGACO in protocol column */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MEGACO");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MEGACO");
 
        /* Build the info tree if we've been given a root */
        /* Create megaco subtree */
index c02fadd1618cf351456d789da3c604a97ccb0f63..4b059f8c551a87fa55ed93d6e0337de9a8396717 100644 (file)
@@ -55,8 +55,7 @@ dissect_mesh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16 mesh_e2eseq; 
   
   /* 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, "Mesh");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Mesh");
   
   if (tree) {
     ti = proto_tree_add_item(tree, proto_mesh, tvb, 0, 5, FALSE);
index c57164496dd3788ee4e99e324f29f35f9adaad02..7bfe3d4a656425c5e35ca341f0b26665b63a4956 100644 (file)
@@ -572,8 +572,7 @@ dissect_mip( 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, "MobileIP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "MobileIP");
   if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index fa6bcedc5524d4801f58f6e1d88160192ec96ccc..4ca78fe2d386f6499e9c8a7100f356ec4fdbf4c0 100644 (file)
@@ -857,8 +857,7 @@ dissect_mip6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint      len, offset = 0, start_offset = offset;
 
        /* Make entries in Protocol column and Info column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-   &nbs