]> git.samba.org - metze/wireshark/wip.git/commitdiff
Don't guard col_set_str (COL_PROTOCOL) with col_check
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Sun, 9 Aug 2009 06:26:46 +0000 (06:26 -0000)
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Sun, 9 Aug 2009 06:26:46 +0000 (06:26 -0000)
svn path=/trunk/; revision=29340

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))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MIPv6");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MIPv6");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -915,15 +914,13 @@ dissect_mip6(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        case BU:
                offset = dissect_mip6_bu(tvb, mip6_tree, pinfo);
                if (proto_nemo == 1) {
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NEMO");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NEMO");
                }
                break;
        case BA:
                offset = dissect_mip6_ba(tvb, mip6_tree, pinfo);
                if (proto_nemo == 1) {
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NEMO");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NEMO");
                }
                break;
        case BE:
index 59b7c33bc0e1e0aa2c8ed7d63a559422dec24a28..abf2e259fb714d1a52dd0d75029c988ef58efe16 100644 (file)
@@ -6901,8 +6901,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 8e0b06f22e77c9da57013b624bff8597e00b8365..307edcdd611f32ed9658c46df7b334d2606c091c 100644 (file)
@@ -668,8 +668,7 @@ dissect_mmse_standalone(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     message_type = val_to_str(pdut, vals_message_type, "Unknown type %u");
 
     /* 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, "MMSE");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MMSE");
 
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
index d274bbd1fab9000448acd5d5a78a24f5ffce17a6..241af0d34251c0aab6153a52ce6d823ded00dd74 100644 (file)
@@ -690,8 +690,7 @@ dissect_mp4ves(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 dword;
 
        /* 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, "MP4V-ES");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MP4V-ES");
        if (tree) {
                item = proto_tree_add_item(tree, proto_mp4ves, tvb, 0, -1, FALSE);
                mp4ves_tree = proto_item_add_subtree(item, ett_mp4ves);
index a2e8d19d3f521be3ed8305cb33053f07cd439ba7..3bb981dd927a46ed831489bf0970624a456959f1 100644 (file)
@@ -532,8 +532,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)
@@ -546,8 +545,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 d85f3d6ebbb2ab390e4c9c696841e21daa568f28..8e95b36ee9d431a2570435546d193cfd98efbe06 100644 (file)
@@ -751,8 +751,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);
 
@@ -907,8 +906,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 9fa3691f749f60e34f268e04241897610670a3c4..698bd1304e8b2075fde0cbfffbb9b1296d669d9d 100644 (file)
@@ -986,8 +986,7 @@ dissect_mpls_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 return; /* Not version 1. */
         }
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPLS ECHO");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "MPLS ECHO");
     
         rem = tvb_reported_length_remaining(tvb, offset);
 
index 449898d5d037c2ed5bc4a7e77df9ca0037ead39a..e01cd76cf5ce988ee9c0496a35cc3cf26b7cd040 100644 (file)
@@ -216,7 +216,7 @@ dissect_mqpcf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gboolean bLittleEndian;
        bLittleEndian = ((mqinfo->encoding & MQ_ENC_INTEGER_REVERSED) != 0) ? TRUE : FALSE;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "MQ PCF");     
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MQ PCF");        
        if (check_col(pinfo->cinfo, COL_INFO)) col_clear(pinfo->cinfo, COL_INFO);         
        if (tvb_length(tvb) >= 36)
        {
index f6116a2b626ff8d9123ee1269194bd5b9a4f2af6..c43ca4b2c98b4595d245d3c060ece90116d4d3e8 100644 (file)
@@ -1245,7 +1245,7 @@ dissect_mq_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        struct mq_msg_properties tMsgProps;
        static gint iPreviousFrameNumber = -1;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "MQ");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MQ");
        if (check_col(pinfo->cinfo, COL_INFO))
        {
                /* This is a trick to know whether this is the first PDU in this packet or not */
@@ -2362,7 +2362,7 @@ reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                        else
                                        {
                                                /* Reassembly in progress */
-                                               if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "MQ");
+                                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MQ");
                                                if (check_col(pinfo->cinfo, COL_INFO)) col_add_fstr(pinfo->cinfo, COL_INFO, "%s [Reassembled MQ]", val_to_str(opcode, mq_opcode_vals, "Unknown (0x%02x)"));
                                                if (tree)
                                                {
index d0a76a3440caf97279a35ee1def8bc9c82a0ff28..d6a11d7677e49e075aec221a1f6ab26cb9433632 100644 (file)
@@ -182,8 +182,7 @@ dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         proto_tree *msdp_tree;
         int offset;
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
 
         if (check_col(pinfo->cinfo, COL_INFO))
                 col_add_str(pinfo->cinfo, COL_INFO, val_to_str(tvb_get_guint8(tvb, 0),
index 7545685947e59f038c4ce2d38bba25b5683a1cd0..b8cd305a840ab57d7c1a15c254a85b9b39e300d9 100644 (file)
@@ -76,8 +76,7 @@ dissect_msnms(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, "MSNMS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSNMS");
 
        /*
         * Find the end of the first line.
index 49f67a533e41e6e45cf538ed9b541b3e00ad213c..069ade2b522c73bfe2fc34ff125f84615bca637c 100644 (file)
@@ -55,8 +55,7 @@ dissect_msnlb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   guint8 type = 0; /* Blatent assumption of name and size */
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MS NLB");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "MS NLB");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_clear(pinfo->cinfo, COL_INFO);
index 9d8c386d849b7a222b4c25ab74c8ca6eb7c8a566..aea729aa519bf8e6b79e680de384778531deede2 100644 (file)
@@ -202,8 +202,7 @@ static void msproxy_sub_dissector( tvbuff_t *tvb, packet_info *pinfo,
        redirect_info = conversation_get_proto_data(conversation,
                proto_msproxy);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MS Proxy");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MS Proxy");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO,
@@ -1085,8 +1084,7 @@ static void dissect_msproxy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        hash_entry_t *hash_info;
        conversation_t *conversation;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSproxy");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSproxy");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 4c55d60cc1d1ec7a84701ec80386863c11c5ca25..1621fa3945a52739b944964ba9c43030671db231 100644 (file)
@@ -548,8 +548,7 @@ dissect_msrp(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, "MSRP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSRP");
        if (is_msrp_response){
                if (check_col(pinfo->cinfo, COL_INFO)) {
                        col_add_fstr(pinfo->cinfo, COL_INFO, "Response: %s ",
index 400293f9fd2e115a577c686d6d226552c854769d..74f20136a3a3c412947062ba9b58f68e7aea7b01 100644 (file)
@@ -162,8 +162,7 @@ dissect_mstp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
        proto_tree *checksum_tree;
 #endif
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "BACnet");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "BACnet");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_set_str(pinfo->cinfo, COL_INFO, "BACnet MS/TP");
        }
index cac7d49f8b7302dedb890473f3bdd8481dc862e4..520dab2402b9beeae334d2f68f41926c7f504a4e 100644 (file)
@@ -346,8 +346,7 @@ dissect_mtp2_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolea
   else
     use_extended_sequence_numbers = (pinfo->annex_a_used == MTP2_ANNEX_A_USED);
     
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MTP2");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "MTP2");
   
   if (tree) {
     mtp2_item = proto_tree_add_item(tree, proto_mtp2, tvb, 0, -1, FALSE);
index cbfb3216dbdb99b03b5ab741d8d0a06ccea74528..164a7b80f2c891e0429449581d2fecd6406f99d5 100644 (file)
@@ -334,8 +334,7 @@ dissect_nasdaq_itch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
     col_info = PINFO_COL(pinfo);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Nasdaq-ITCH");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Nasdaq-ITCH");
 
     nasdaq_itch_type = tvb_get_guint8(tvb, offset);
     if (nasdaq_itch_type >= '0' && nasdaq_itch_type <= '9') {
index 8ff1baa96ed9b063acdd4427d427a1fdd32a1b1c..23d61fcc899edebaf9c84aabe01aa37b64d431b9 100644 (file)
@@ -181,8 +181,7 @@ dissect_nasdaq_soup(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
       nasdaq_soup_type = tvb_get_guint8(tvb, offset);
       if (counter == 0) {
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Nasdaq-SOUP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Nasdaq-SOUP");
         if (col_info)
             col_clear(pinfo->cinfo, COL_INFO);
       }
index 19767960e34d5335d72a8e22079baf085b9b5dfc..9a9bc61f16921ede25097f0c3cfb2327ed810242 100644 (file)
@@ -47798,8 +47798,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 917686bd20ec0eadcc6c5dc1eed63ea1737a1efd..6e80ff5671ba951f296894c45c7d2044cc37ade8 100644 (file)
@@ -219,8 +219,7 @@ dissect_nbipx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gboolean        has_payload;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBIPX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBIPX");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -674,8 +673,7 @@ dissect_nmpi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             node_name_type = 0;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMPI");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NMPI");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 4a07e216447d20c2ae4deec552593602d3f0e375..38976fe564db8baaf17038e1193331ce83844842 100644 (file)
@@ -1041,8 +1041,7 @@ dissect_nbns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        nbns_data_offset = offset;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBNS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBNS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1210,8 +1209,7 @@ dissect_nbdgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        name=ep_alloc(MAX_NAME_LEN);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBDS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBDS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1636,8 +1634,7 @@ dissect_nbss(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *nbss_tree;
        proto_item      *ti;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBSS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NBSS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 9d284b82af8e43506b667ba4033a75a222a6bc5e..7444070c7a722fb4f5a975f1aa9ec092c7cb969f 100644 (file)
@@ -323,8 +323,7 @@ dissect_ncp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
     conversation_t        *conversation;
     proto_item            *expert_item;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "NCP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NCP");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index 4c4959b5c4dc3b6a328d15c6c8198bac2559be3a..a54d76ad81289e82ef2d122ffc1415e0014fbdf8 100644 (file)
@@ -51,8 +51,7 @@ dissect_ncs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     }
 
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "NCS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NCS");
     if (check_col(pinfo->cinfo, COL_INFO))
     {
       col_clear(pinfo->cinfo, COL_INFO);
index 8dfc6374423bd7e63b741a4ab1cb779e3b69da80..f4fb7c12879796eb0c9b6c5f763409ed2fcad610 100644 (file)
@@ -3161,8 +3161,7 @@ dissect_ndmp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        /*
                         *  Update the column info.
                         */
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDMP");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDMP");
                        
                        if (check_col(pinfo->cinfo, COL_INFO)) {
                                col_clear(pinfo->cinfo, COL_INFO);
@@ -3232,8 +3231,7 @@ dissect_ndmp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        save_writable = col_get_writable(pinfo->cinfo);
        col_set_writable(pinfo->cinfo, TRUE);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDMP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
        }
index f51455f30ce725f0a1d0c4f14f26aff2ac335182..fab525bf84eb80b27c97b355d6769177a82d5859 100644 (file)
@@ -4299,8 +4299,7 @@ dissect_ndps_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree     *ndps_tree = NULL;
     proto_item     *ti;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDPS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDPS");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
@@ -4494,8 +4493,7 @@ dissect_ndps_ipx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree     *ndps_tree = NULL;
     proto_item     *ti;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDPS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDPS");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
index 465966e7ea124d2818662e5e85138cb0af14da04..7891dba34f050003fdc54d486a184dce3960561d 100644 (file)
@@ -1099,8 +1099,7 @@ dissect_netbios(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int offset = 0;
 
                                        /* load the display labels      */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NetBIOS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NetBIOS");
 
 
 /* Find NetBIOS marker EFFF, this is done because I have seen an extra LLC */
index def18aeec3e0dcc14271a0fc84fc4214bc473ad4..3fe6d02f5cd1a65cc8610402f77924f517d8b447 100644 (file)
@@ -571,8 +571,7 @@ dissect_netflow(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, "CFLOW");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "CFLOW");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index c44e02903fd30727f5d28d24a7a7c0f71a3a1fb4..9f2e7278544dee788556ff84a3014d98cc0d4431 100644 (file)
@@ -291,8 +291,7 @@ dissect_nettl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                    call_dissector(data_handle, tvb, pinfo, tree);
             break;
          default:
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "UNKNOWN");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "UNKNOWN");
             if (check_col(pinfo->cinfo, COL_INFO))
                 col_add_fstr(pinfo->cinfo, COL_INFO,
                "Unsupported nettl subsytem: %d (%s)",
index 8bc4c481096c67891e49aacc4020ba309edd634b..b2119b5171b21ac276de67f04a32a03b94c22d1a 100644 (file)
@@ -64,8 +64,7 @@ dissect_newmail(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *newmail_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, "NEWMAIL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NEWMAIL");
 
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_set_str(pinfo->cinfo, COL_INFO, "Microsoft Exchange new mail notification");
index 280f2bbeaa19f821a4d47eb6fb41c98f48eb6eb8..450005541409f45a6de10df75d0ef552fc1136cf 100644 (file)
@@ -1422,8 +1422,7 @@ dissect_nlsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 packet_type_flags;
        guint8 packet_type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NLSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NLSP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 64f3347d14fa9252bf9e40b6e1c1a080f1361b32..9c5bcb23b8a4251efaa89eff69572c424497d79f 100644 (file)
@@ -57,8 +57,7 @@ dissect_nntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         else
                type = "Response";
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NNTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NNTP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                /*
index 6a57d7748055a216a95370f4131059b664c532e1..f404f936b390c1caf83ca2e39f1c56ba11fb9a7f 100644 (file)
@@ -939,8 +939,7 @@ dissect_nsip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
 
   pinfo->current_proto = "NSIP";
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSIP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSIP");
     
   if (check_col(pinfo->cinfo, COL_INFO)) 
     col_clear(pinfo->cinfo, COL_INFO);
index 6ac86164143506e767be667f48d30edf209b99c0..f793e7b8583c04a487c631f27e99a6c1c45a86a8 100644 (file)
@@ -156,8 +156,7 @@ dissect_nsrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     gint        offset = 0;
     guint8      msgtype = 0;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSRP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "NSRP");
 
     if (check_col(pinfo->cinfo, COL_INFO))
     {
index a616e6692153a5d07d1542232320086958258de4..3c4a21c3ab8c8e01bcfe7084c2c07668ee596658 100644 (file)
@@ -215,8 +215,7 @@ dissect_sonmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *sonmp_tree = NULL;
        proto_item *ti;
        
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SONMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SONMP");
        
        if (check_col(pinfo->cinfo, COL_INFO)) {
                hello_type = "";
index dd5c71f34a018481ef9a5186171ff99f540701a9..69e0983d35c12cceb3196672779504dd1d06f548 100644 (file)
@@ -113,8 +113,7 @@ dissect_tpcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *ti, *tf;
        guint8 length = TPCP_VER_1_LENGTH;
        
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPCP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPCP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
        
index e15af955e2eb1b4884b1cfa1549e3c0586f98a94..1e23c83dc9e57c834b72a381d34a00c3fb1cf5fb 100644 (file)
@@ -432,8 +432,7 @@ dissect_ntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8          flags;
        void (*dissector)(tvbuff_t *, proto_item *, guint8);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "NTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NTP");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 5b9c9015312070c39f1712fa2b82ccd05b0fc4ec..37321ba1840f7abe2d79ccf83bbf6b17007ac8cd 100644 (file)
@@ -661,8 +661,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);
@@ -688,8 +687,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 96a87ade1c10bb03ec04dc1ab784699d422aa292..0730277e6729fa5f18558d97dc2bf9e9a9e26600 100644 (file)
@@ -128,8 +128,7 @@ dissect_oicq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             (match_strval(tvb_get_ntohs(tvb, 3),  oicq_command_vals) == NULL) )
                return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "OICQ");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "OICQ");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index daf93596c0cca4188b7b783612c65a0a9a019bb1..3d967fb816191b1bb74bd97705b1a707b81bafde 100644 (file)
@@ -563,8 +563,7 @@ static int dissect_olsr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
     return 0;
   }
   /*-------------Setting the Protocol and Info Columns in the Wireshark Display----------*/
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "OLSR v1");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "OLSR v1");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index e317dec9497216f1eefa9dc3fbdf7584d9ca6c0c..625a837987011b6e4d6f600d90a605013547877e 100644 (file)
@@ -459,8 +459,7 @@ dissect_opsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (opsi_first == TRUE) {
                opsi_first = FALSE;
                
-               if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "OPSI");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "OPSI");
     
                if (check_col(pinfo->cinfo, COL_INFO)) {
                        col_clear(pinfo->cinfo, COL_INFO);
index fc23011e8a135094c868cb8e200d30e83956b624..b78a20d6102edc8a1de305ee70472c51a3ee70c3 100644 (file)
@@ -920,8 +920,7 @@ dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint32 areaid;
     guint8  address_family = OSPF_AF_6;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "OSPF");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "OSPF");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 3637d439d66b096b61cdec5d923d6ca2d192db5b..d4212254f5ab87d42b3843b63df236ab186eeed7 100644 (file)
@@ -97,8 +97,7 @@ dissect_paltalk_desegmented(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *ti = NULL;
        proto_tree *pt_tree = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Paltalk");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Paltalk");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 3197ea0c268007a23c85e928914391321c4ca3ee..ba2f40f544d0b528d725a8612407ab28850072fd 100644 (file)
@@ -533,8 +533,7 @@ dissect_pana_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        avp_length = msg_length-16;
 
        /* 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, "PANA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PANA");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 9cb61b142c4d81c955a05c197f4fc17e0d2b75b8..f1ef727fa9e3e3b41e762ef8af0f153d12ed8ede 100644 (file)
@@ -11085,8 +11085,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 91b0fde4c667505bb79eecb75e89bcc189de5ab2..95c05475696e3099ce0c19bfe9da875770da07ce 100644 (file)
@@ -2095,8 +2095,7 @@ dissect_pcep_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
 /* Set up structures needed to add the protocol subtree and manage it */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCEP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCEP");
 
        /* Clear out stuff in the info column */
        if (check_col(pinfo->cinfo,COL_INFO))
index f58a6587c40601c708a7f23251dcb245bd2138f7..5be796c2aacca9baabc0f35ec4f65260232ff56b 100644 (file)
@@ -125,8 +125,7 @@ dissect_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item *ti;
   int hdrlen;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PFLOG");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PFLOG");
 
   /* Copy out the pflog header to insure alignment */
   tvb_memcpy(tvb, (guint8 *)&pflogh, 0, sizeof(pflogh));
@@ -282,8 +281,7 @@ dissect_old_pflog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree *pflog_tree;
   proto_item *ti;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PFLOG-OLD");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PFLOG-OLD");
 
   /* Copy out the pflog header to insure alignment */
   tvb_memcpy(tvb, (guint8 *)&pflogh, 0, sizeof(pflogh));
index 95e6db6ce153c413c9908f9427fdca05e6f01152..7a97e5aa8e0a02c74c97c58bab7670acd7accb31 100644 (file)
@@ -815,8 +815,7 @@ dissect_pgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gboolean isdata = FALSE;
        guint pgmlen, reportedlen;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "PGM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PGM");
 
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_clear(pinfo->cinfo, COL_INFO);
index 874b02b88c5837124610ac549639ee3702169e4a..82bf3fb3bea727284c4bc3c12b62f6a153ea9182 100644 (file)
@@ -177,8 +177,7 @@ dissect_pgsql(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                               pinfo->srcport, pinfo->destport, 0);
     }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PGSQL");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PGSQL");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_set_str(pinfo->cinfo, COL_INFO,
                     (pinfo->match_port == pinfo->destport) ?
index ccb6b5a5824f8981e40665544b22c9798de3be56..6a6591b742d977aa25e1b12e8c65c4b0b8e27040 100644 (file)
@@ -114,8 +114,7 @@ dissect_pimv1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
        return offset+tvb_length_remaining(tvb, offset);
     }
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PIMv1");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PIMv1");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
@@ -610,8 +609,7 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
     proto_tree *pimopt_tree = NULL;
     proto_item *tiopt;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PIM");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PIM");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index be52c040a7099088e7254c9bc26f982b9275134b..098a267161d6bd3ff3e2b62c9229e4178cb5f7f2 100644 (file)
@@ -375,8 +375,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);
@@ -401,8 +400,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 3c537b5a7f4d1e62a40a8fb110d454677ba520fa..3991fb208b1dfd7602d25c01cadd5d30b7fb6d5b 100644 (file)
@@ -551,8 +551,7 @@ dissect_pktc_mtafqdn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item *item = NULL;
     tvbuff_t *pktc_mtafqdn_tvb;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKTC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKTC");
 
     if (tree) {
         item = proto_tree_add_item(tree, proto_pktc, tvb, 0, 0, FALSE);
@@ -585,8 +584,7 @@ dissect_pktc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree *pktc_tree = NULL;
     proto_item *item = NULL, *hidden_item;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKTC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKTC");
 
     if (tree) {
         item = proto_tree_add_item(tree, proto_pktc, tvb, 0, 3, FALSE);
index 9f78499849b308314fcecbc5d9790a6315a3b961..0632937561236c21582647d3b432e8a2900a4b07 100644 (file)
@@ -83,8 +83,7 @@ static gboolean dissect_pktgen(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
         
     /* 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, "PKTGEN");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKTGEN");
     
     if(check_col(pinfo->cinfo, COL_INFO)) {
        col_add_fstr(pinfo->cinfo, COL_INFO, "Seq: %u", tvb_get_ntohl(tvb, 4));
index f26be9e7cda80ba245d8ff94edcbb1a5b9913a94..ce61e622b52298e65b0bd082310a52bfc6da4107 100644 (file)
@@ -749,8 +749,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     guint last_frame = 0;
     gboolean is_ht = FALSE;
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPI");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPI");
     if(check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
@@ -941,8 +940,7 @@ dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             pinfo->fragmented=FALSE;
         } else {
             next_tvb = tvb_new_subset(tvb, offset, -1, -1);
-            if(check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.11n");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.11n");
             if(check_col(pinfo->cinfo, COL_INFO))
                 col_set_str(pinfo->cinfo, COL_INFO, "Unreassembled A-MPDU data");
             call_dissector(data_handle, next_tvb, pinfo, tree);
index 7c7420cf2fad9c32d44987fe7b5ab648288f783d..b6b248cdd91e7bd9f61f07931950c397bdbf4d23 100644 (file)
@@ -2901,8 +2901,7 @@ dissect_bcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   gint captured_length, reported_length, pad_length;
   tvbuff_t *next_tvb;
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP BCP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP BCP");
 
   if(check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
@@ -3043,8 +3042,7 @@ dissect_bap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   id = tvb_get_guint8(tvb, 1);
   length = tvb_get_ntohs(tvb, 2);
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP BAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP BAP");
 
   if(check_col(pinfo->cinfo, COL_INFO))
        col_add_str(pinfo->cinfo, COL_INFO,
@@ -3089,8 +3087,7 @@ dissect_comp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_item *ti;
   proto_tree *comp_data_tree;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP Comp");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP Comp");
 
   if(check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "Compressed data");
@@ -3128,8 +3125,7 @@ dissect_pppmux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   int offset = 0, length_remaining;
   int length_field = 0, pid_field = 0,hdr_length = 0;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo,COL_PROTOCOL, "PPP PPPMux");
+  col_set_str(pinfo->cinfo,COL_PROTOCOL, "PPP PPPMux");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "PPP Multiplexing");
@@ -3265,8 +3261,7 @@ dissect_iphc_crtp_fh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   length = tvb_reported_length(tvb);
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
+  col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "Full Header");
@@ -3364,8 +3359,7 @@ dissect_iphc_crtp_cudp16(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint hdr_length;
   int offset = 0;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
+  col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "Compressed UDP 16");
@@ -3401,8 +3395,7 @@ dissect_iphc_crtp_cudp8(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint hdr_length;
   int offset = 0;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
+  col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "Compressed UDP 8");
@@ -3439,8 +3432,7 @@ dissect_iphc_crtp_cs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint length, cid_size;
   guint offset = 2, hf;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
+  col_set_str(pinfo->cinfo,COL_PROTOCOL, "CRTP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "Context State");
@@ -3529,8 +3521,7 @@ dissect_mp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   gint        hdrlen;
   tvbuff_t    *next_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP MP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP MP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_set_str(pinfo->cinfo, COL_INFO, "PPP Multilink");
@@ -3653,8 +3644,7 @@ dissect_ppp_hdlc( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree )
    * XXX - should we have an exported dissector that always dissects PPP,
    * for use when we know the packets are PPP, not CHDLC?
    */
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP");
   switch (pinfo->p2p_dir) {
 
   case P2P_DIR_SENT:
@@ -3907,8 +3897,7 @@ dissect_pap( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) {
   id = tvb_get_guint8(tvb, 1);
   length = tvb_get_ntohs(tvb, 2);
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP PAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP PAP");
 
   if(check_col(pinfo->cinfo, COL_INFO))
        col_add_str(pinfo->cinfo, COL_INFO,
@@ -4000,8 +3989,7 @@ dissect_chap( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) {
   int offset;
 
   code = tvb_get_guint8(tvb, 0);
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP CHAP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP CHAP");
 
   if(check_col(pinfo->cinfo, COL_INFO))
     col_add_str(pinfo->cinfo, COL_INFO,
index 841eab9a71aab4a783ac520e0fa9e6ce8fda425b..cf8b69e8e0209bd46f023c258875c4e0feff53f4 100644 (file)
@@ -235,8 +235,7 @@ dissect_pptp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint16              len;
   guint16              cntrl_type;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPTP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPTP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 8d925e326af791d5d60e661092030d4892378524..768dad308804f9a1e64144023e25099c0c72c8a5 100644 (file)
@@ -1419,8 +1419,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 ba855ab2062800d4eb38bf1e7dae9b7285184eb5..2993088693d2eb5c1bf49e5bcd224ee8e384456a 100644 (file)
@@ -134,8 +134,7 @@ dissect_prp_supervision_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
     proto_tree *prp_tree;
     guint16 tlv2;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PRP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PRP");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_set_str(pinfo->cinfo, COL_INFO, "Supervision Frame");
index 714b9563d36468f92a5551c6ed6daf8338f5842b..93c8daa0470e4cd864dcad734d93f411b90113b9 100644 (file)
@@ -1487,8 +1487,7 @@ dissect_ptp_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *ptp_tree, *ptp_flags_tree, *ptp_time_tree, *ptp_time2_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, "PTPv1");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PTPv1");
 
 
 /* Get control field (what kind of message is this? (Sync, DelayReq, ...) */
@@ -2231,8 +2230,7 @@ dissect_ptp_v2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                *ptp_clockType_tree, *ptp_protocolAddress_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, "PTPv2");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PTPv2");
 
     /* Get control field (what kind of message is this? (Sync, DelayReq, ...) */
 
index 4d439dfd4e544f6c9eea7d195cc695bf5153c47d..0733b2ff4364673d30e03091fc2771c392aa38a4 100644 (file)
@@ -3115,8 +3115,7 @@ dissect_pvfs_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
        guint32 server_op;
        pvfs2_io_tracking_value_t *val = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "PVFS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "PVFS");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 42a5238dee9307674d1cbb9959131ead26fbaece..6f777d77c6eb229056d8a8b72c84aa7dc66faadb 100644 (file)
@@ -2040,8 +2040,7 @@ dissect_q2931(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             codeset;
        gboolean        non_locking_shift;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.2931");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.2931");
 
        if (tree) {
                ti = proto_tree_add_item(tree, proto_q2931, tvb, offset, -1,
index 544d5534d8fae3d6ceaae03772209b975628912e..e6b2968091126fdb55900f7b837b065a8f7b3fc8 100644 (file)
@@ -2551,8 +2551,7 @@ dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
        reset_q931_packet_info(q931_pi);
        have_valid_q931_pi=TRUE;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.931");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.931");
 
        prot_discr = tvb_get_guint8(tvb, offset);
        if (tree) {
index 9a0148ecfcfad77ea7660241d8b2bd34e81ee90a..d3ea49614dcaf6f3990c2214830a92e391880382 100644 (file)
@@ -1902,8 +1902,7 @@ dissect_q933(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             codeset, locked_codeset;
        gboolean        non_locking_shift;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.933");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Q.933");
 
        if (tree) {
                ti = proto_tree_add_item(tree, proto_q933, tvb, offset, -1,
index ac23ba19489e592ad44dbd8ece47813b7de1cbbf..3ee8d8a1a489fc757abc14a1c44031e129cb754d 100644 (file)
@@ -91,8 +91,7 @@ dissect_qllc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     }
 
     /* Summary information */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "QLLC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "QLLC");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index b670eb96ba37c4a8fa37307c717026f3277b17f7..e47489df8c3cd6b0072fe28a396d9d9be141c9d4 100644 (file)
@@ -441,8 +441,7 @@ dissect_quake(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint           rest_length;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKE");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKE");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 4849fd647c43dcddd4a13bbbf89cde09f24924d4..943a01d338b982ebdc41d27033c184c018ba344b 100644 (file)
@@ -712,8 +712,7 @@ dissect_quake2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        direction = (pinfo->destport == gbl_quake2ServerPort) ?
                        DIR_C2S : DIR_S2C;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKE2");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKE2");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_str(pinfo->cinfo, COL_INFO, val_to_str(direction,
                        names_direction, "%u"));
index 0ad6c78e63c6511e6bb6b76b365d3af87ea512a4..4fb3f3992ea19509b94e4178e83ef856db1c0b32 100644 (file)
@@ -485,8 +485,7 @@ dissect_quake3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        direction = DIR_UNKNOWN;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKE3");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKE3");
 
        if (tree) {
                quake3_item = proto_tree_add_item(tree, proto_quake3,
index 1fe751f7bc3a505da2af410467a6631ef93ee92a..446c9d5e064b22e76db0e67655de3fe1eda773ef 100644 (file)
@@ -719,8 +719,7 @@ dissect_quakeworld(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        direction = (pinfo->destport == gbl_quakeworldServerPort) ?
                        DIR_C2S : DIR_S2C;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKEWORLD");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "QUAKEWORLD");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_str(pinfo->cinfo, COL_INFO, val_to_str(direction,
                        names_direction, "%u"));
index 7a7383b7f7640832d0babb8bd2f609bbe5e93df2..82dc4edc0949ab14f34686b5b5116110876833ce 100644 (file)
@@ -1327,8 +1327,7 @@ dissect_radius(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
        
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RADIUS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RADIUS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index b9b15ea8322ca12a740476eb45536b7cf94f7c47..7f11c8ea4f1197214a967b91c8478580990617d7 100644 (file)
@@ -11634,8 +11634,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 fb2b1fb972fffafba4243ca5485222a12b93e6f6..445882b89cc97a6a3c7c3006ac732ce3ee25c756 100644 (file)
@@ -83,8 +83,7 @@ rdm_checksum(tvbuff_t *tvb, unsigned length)
 static void
 dissect_rdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RDM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RDM");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 635d7c03a609d0c1e2a101a8218d5b98811eabf7..367f4491461a3c8aa0aea96612e7120315fa591e 100644 (file)
@@ -114,8 +114,7 @@ dissect_rip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     gint trailer_len = 0;
     gboolean is_md5_auth = FALSE;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "RIP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RIP");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index d4a764673a7557945ea71ff012eaf7565e3f6f9b..c50dea380e444c9c1ea59a93bae13808d0375ced 100644 (file)
@@ -59,8 +59,7 @@ dissect_ripng(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
     proto_tree *subtree = NULL;
     proto_item *ti;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "RIPng");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RIPng");
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
 
index ce64b4af0cba337d02b8f1c535a9672b43dcd20d..edad7e7b7cbc6e79dbfe07bf6f77663c079cb52a 100644 (file)
@@ -137,8 +137,7 @@ dissect_rlm(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, "RLM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RLM");
 
        switch (rlm_type) {
                case RLM_START_REQUEST:
index fd612dbab95bf89068828a5a583de0b7139e3369..283dd76c5e2fdfe1ade637e2cfc549d1d63e3ad1 100644 (file)
@@ -110,8 +110,7 @@ dissect_rmcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (class_str == NULL)
                return 0;       /* unknown class value */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RMCP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RMCP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_fstr(pinfo->cinfo, COL_INFO, "%s, Class: %s",
                     val_to_str(type, rmcp_type_vals, "Unknown (0x%02x)"),
index 68382f15fdd2aed988f1dfa007c75264665e9d5f..c7f675c488bc2debe7d89219a6bba2a815992cd7 100644 (file)
@@ -132,8 +132,7 @@ dissect_rmi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     rmitype    = 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, "RMI");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RMI");
 
     datalen = tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE);
     data = tvb_get_ptr(tvb, offset, datalen);
index cb30467560f31830798add04e8383ef20ac9d8df..ceb4814027b8bb1c0fa7cbc66e1026ecd3f5c184 100644 (file)
@@ -130,8 +130,7 @@ static void dissect_alc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        pinfo->current_proto = "ALC";
        
        /* 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, "ALC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ALC");
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_clear(pinfo->cinfo, COL_INFO);
        
index cb939536161a442374a233cb2eda7e9f1729a8e1..9588794e13bacada2bdaaceb37f3f7b216af9695 100644 (file)
@@ -560,8 +560,7 @@ static void dissect_norm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        pinfo->current_proto = "NORM";
 
        /* 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, "NORM");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "NORM");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 799284bc23426538b93f0e6a008da8a2b8af8832..0786c2be956add7a0788b128b4770fa6abf4d3d1 100644 (file)
@@ -35628,8 +35628,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 06f328f8c63c43b93a7c80cba5b7dfa87cddb763..9e461e140075070644b69ae97437eed7c5cdbda6 100644 (file)
@@ -209,8 +209,7 @@ static void dissect_roofnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint8 roofnet_nlinks= 0;
   guint8 nlink= 1;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Roofnet");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Roofnet");
 
   roofnet_msg_type = tvb_get_guint8(tvb, ROOFNET_OFFSET_TYPE);
   /* Clear out stuff in the info column */
index 304e738dc5a99db0e1500a800edbc05db855870d..27e1d15b2d08f153f56e66c2a44df1fdf2400769 100644 (file)
@@ -1070,8 +1070,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 c14716654e2bb3ad3dad2429de6d41452f42ae3a..051e1a444a2f9143b273f28a30b612fe76ba6bdb 100644 (file)
@@ -1626,8 +1626,7 @@ dissect_rpc_continuation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *rpc_item;
        proto_tree *rpc_tree;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPC");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
 
@@ -1929,8 +1928,7 @@ dissect_rpc_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                }
        }
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPC");
 
        if (tree) {
                rpc_item = proto_tree_add_item(tree, proto_rpc, tvb, 0, -1,
index 9fcfaa75dcf64f0610da20229b41e34cfa7552d8..a2746d83491ea553df95134b52f07ff65f54ee10 100644 (file)
@@ -270,8 +270,7 @@ dissect_rpl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *rpl_tree;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RPL");
 
        rpl_len  = tvb_get_ntohs(tvb, 0);
        rpl_type = tvb_get_ntohs(tvb, 2);
index 53fb34ec17c443d607e9c50788108ba25bff398f..8baa456502812ce5eabfaf4ec266fb6a08d7ddb2 100644 (file)
@@ -99369,8 +99369,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 f7f6401fc04f2edf7065a54a5474f7dbbcc1117e..acbc10b9b4f68666526146e1e96c49529ed2fa4a 100644 (file)
@@ -49,8 +49,7 @@ dissect_rsh(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, "RSH");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSH");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                /* Put the first line from the buffer into the summary. */
                tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE);
index f235b8d09680d1295d853a9ea1296978548f436c..48c45118e1c1203ed73bf1926781401dd5b864b9 100644 (file)
@@ -3498,8 +3498,7 @@ dissect_rsl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        int offset = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSL");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 4a4a7c8f13dd37120ebf80b41cbc71902c081ecc..aba2c826d8d299e965e206773636cc2e1eef9891 100644 (file)
@@ -101,8 +101,7 @@ dissect_rsync_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
     gchar                              magic_string[14];
     gchar                              *version_out;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSYNC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSYNC");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
index 80eb7460afe99aa8526d18f8075b455c35b6a6f8..b50c2c2fe061e33a527c0bcafc4b60d0f4636411 100644 (file)
@@ -357,12 +357,12 @@ dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
                if (conversation_data->is_rtmpe == 1)
                {
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMPE");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMPE");
                        return;
                }
                else
                {
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMP");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTMP");
                }
 
                if (conversation_data->previous_frame_number != (guint) pinfo->fd->num)
index 13d1d07b03692ab28c512bd2f05cde10a38bbfae..6f7324cdadbfcb92065e746549e4bd44fb613d3e 100644 (file)
@@ -726,8 +726,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 e3a345ad26907c6a09914212797601e4318474c7..ec7870a790e76b240c61d1d36265192c3de9c90a 100644 (file)
@@ -615,8 +615,7 @@ dissect_rtspmessage(tvbuff_t *tvb, int offset, packet_info *pinfo,
        else
                body_requires_content_len = FALSE;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RTSP");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                /*
                 * Put the first line from the buffer into the summary
index 1f31b1f5e9571c8f8c01b7ab0e695ca29d745e9e..829bf63f98c1a312c05fccf6a4996ab352664fa7 100644 (file)
@@ -106,8 +106,7 @@ dissect_rudp(tvbuff_t *tvb, packet_info *pinfo _U_ , proto_tree *tree)
 
        hlen = tvb_get_guint8(tvb, 1);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RUDP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RUDP");
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_clear(pinfo->cinfo, COL_INFO);
 
index 7034d36c9a23c56357b1fb1e47d107351ea98b27..6c899075921f2afaf0b05cf57decfcd2dbe768db 100644 (file)
@@ -473,8 +473,7 @@ dissect_rx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
        if (type == 0 || type == 10 || type == 11 || type == 12 || type > 13)
                return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "RX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "RX");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 3302f65feaf77c6b6ed4080acf7feb5a6db4a1e9..e94435d3c46a0ff8e7853a8aef482b61205583e1 100644 (file)
@@ -6842,8 +6842,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 9d2608e9e5a0320b3af4f2a63f9785d41b4ae2e0..d85645371d3e621af2fa4c4d870a6cef97dcb96a 100644 (file)
@@ -893,8 +893,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 67ecefefb1d3084da4586624e61c12c8fc12b492..2f3224eb60e1c59270b63467d2f0aa682e9e1bce 100644 (file)
@@ -129,8 +129,7 @@ dissect_sap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         proto_item *si, *sif;
         proto_tree *sap_tree, *sap_flags_tree;
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "SAP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "SAP");
         if (check_col(pinfo->cinfo, COL_INFO))
                 col_clear(pinfo->cinfo, COL_INFO);
 
index 7125ed6b467fb719797e1d9c0f852ef9477269f8..3928becd04952dc57c06a68bb44bce1eaae8150c 100644 (file)
@@ -628,8 +628,7 @@ dissect_sbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 /* End of attaching data to hash table*/
        
 /* 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, "S-Bus");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "S-Bus");
 
        if (check_col(pinfo->cinfo, COL_INFO)) 
               col_clear(pinfo->cinfo, COL_INFO);
index d1609350ff176a265776cddd02bf2f747c1cb2c2..c38e0256a30232dc4b160bb87c2d8adfab5d7f16 100644 (file)
@@ -3852,8 +3852,7 @@ dissect_sctp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   pinfo->destport = destination_port;
 
   /* make entry in the Protocol column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCTP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SCTP");
 
   /* Clear entries in Info column on summary display */
   if (check_col(pinfo->cinfo, COL_INFO))
index 767fd2933eb7b5e3db93dba9321208f725df6377..ef682abb5c08ae7d91abd1052a337dcf256abff3 100644 (file)
@@ -80,8 +80,7 @@ dissect_sdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gboolean        is_response;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SDLC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SDLC");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index f907b5c7dce9c60128cd1a07ddeb953f5d708177..5ed845f3ccfa2e8a929edfd4b2698246a7bfce5a 100644 (file)
@@ -132,8 +132,7 @@ dissect_sebek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int sebek_type = 0;
        int cmd_len = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SEBEK");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SEBEK");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index 3892b2d413ecaceb87f94f53bc1b8c37492e08c6..ac3f2bf97e912afc6b1a523fb73289976c0e48f0 100644 (file)
@@ -1108,8 +1108,7 @@ dissect_ses(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int offset = 0;
        guint8 type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SES");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SES");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 82c9ce0a4e8b5f5486f26993a055c478422b6e21..fb8c67a7732882e085828c065ea9b7e564aa9989 100644 (file)
@@ -1376,8 +1376,7 @@ dissect_sflow(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        } agent_address;
 
 /* 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, "sFlow");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "sFlow");
 
 
        /* create display subtree for the protocol */
index 47417270c334a128dce39c28ccaed9eebd704f47..c205e6a1f13b91da3754ffef8b8e9cd297ac6376 100644 (file)
@@ -410,8 +410,7 @@ dissect_sigcomp_tcp(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, "SIGCOMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIGCOMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_clear(pinfo->cinfo, COL_INFO);
@@ -529,8 +528,7 @@ dissect_sigcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         return 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, "SIGCOMP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIGCOMP");
 
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_clear(pinfo->cinfo, COL_INFO);
index 581c893c5e81d526594d8de2eeebb3f7c36e7afb..f3527b17251eeca17d94e3660c1b5b3009ef70ce 100644 (file)
@@ -1878,8 +1878,7 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr
        stat_info->tap_from_addr = NULL;
        stat_info->tap_to_addr = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIP");
 
        switch (line_type) {
 
index 8e28f85334c8dd758b49370589200e7677b0d7e6..1962b6a6546f81b89648a030c07421220f555cd8 100644 (file)
@@ -250,8 +250,7 @@ dissect_slimp3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     if (opcode_str == NULL)
        return 0;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SliMP3");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SliMP3");
 
     if (check_col(pinfo->cinfo, COL_INFO)) {
 
index e5af009e05eec24ad7ef5d1d7dbff4096e740309..49ae821a2bcfcfc665bba2cfd210a5de9f32d32e 100644 (file)
@@ -156,8 +156,7 @@ dissect_sll(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        tvbuff_t *next_tvb;
        proto_tree *fh_tree = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SLL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SLL");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 407b4e24be457161b8652cd530436787f30e6b6b..35d991ef3c7de1ce12e3eddb2c07fc3c8b8b874e 100644 (file)
@@ -1060,8 +1060,7 @@ dissect_slow_protocols(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             break;
         default:
         {
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "Slow Protocols");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Slow Protocols");
 
             if (check_col(pinfo->cinfo, COL_INFO))
                 col_add_fstr(pinfo->cinfo, COL_INFO, "Unknown Subtype = %u.", subtype);
@@ -1120,8 +1119,7 @@ dissect_lacp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     const char *sep;
 
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "LACP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "LACP");
 
     if (check_col(pinfo->cinfo, COL_INFO)) 
         col_set_str(pinfo->cinfo, COL_INFO, "Link Aggregation Control Protocol");
@@ -1468,8 +1466,7 @@ dissect_marker_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item *marker_item;
 
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "MARKER");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "MARKER");
 
     if (check_col(pinfo->cinfo, COL_INFO)) 
         col_set_str(pinfo->cinfo, COL_INFO, "Marker Protocol");
@@ -1865,8 +1862,7 @@ dissect_oampdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
     const char *sep = initial_sep;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "OAM");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "OAM");
 
     oampdu_code = tvb_get_guint8(tvb, OAMPDU_CODE);
 
index cc515807f08a4d87218ba597a3f37456b59609bb..a8dec978442af585a4f51662db9b7bbe60464dd0 100644 (file)
@@ -329,8 +329,7 @@ static void dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
        message_type =  get_message_type(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, "slsk");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "slsk");
 
 /* This field shows up as the "Info" column in the display  */
 
index 0d63286d70df7cce85bf7a8c3dc5044082b93b42..2e70e3cfbb92b0d8c1cc5ecbce3e397e455d6134 100644 (file)
@@ -922,8 +922,7 @@ dissect_smb_logon(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *smb_logon_tree = NULL;
        proto_item *item = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB_NETLOGON");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMB_NETLOGON");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index a0f088833bbd43a5767f0102725b8f1284b89f13..74a0c2a203860c6e47fab7e43a81c07bf3d2d981 100644 (file)
@@ -2286,8 +2286,7 @@ dissect_smpp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
      * Update the protocol column.
      */
     if (first == TRUE) {
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMPP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMPP");
     }
 
     /*
index 0987bfa96204bb20755a4c34ea863ca44308dbf5..4555ae8627d4a0dd457e4abf432209126e014fe0 100644 (file)
@@ -526,8 +526,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 238736959abb70dc23dd015be261aaa2af05a2da..c7ce72994d21da9abae1c18fe7dc9cc5324ef4aa 100644 (file)
@@ -527,8 +527,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
      * fields ...
      */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMTP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SMTP");
 
     if (check_col(pinfo->cinfo, COL_INFO)) {  /* Add the appropriate type here */
       col_clear(pinfo->cinfo, COL_INFO);
index f0d1899fd5fa5703adfc64e9e9c6ed62468576a1..d28b116740dba3a1011e4fa0928249048e09d2bd 100644 (file)
@@ -2571,8 +2571,7 @@ dissect_sna(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *sna_tree = NULL;
        proto_item      *sna_ti = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNA");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -2608,8 +2607,7 @@ dissect_sna_xid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree      *sna_tree = NULL;
        proto_item      *sna_ti = NULL;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNA");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 35e022355cf5554ac0da222002a4a53c41ec53f3..f4c82db5bcc490a428d7fd8cac056ae9eebf8ce7 100644 (file)
@@ -51,8 +51,7 @@ dissect_snaeth(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16         len;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNAETH");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNAETH");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "SNA over Ethernet");
 
index 67a2cef71aeb42a6a0385188ab8c1a3c182c628c..ebd0d84df2dc3231bd64a83000dbdac490628f76 100644 (file)
@@ -208,8 +208,7 @@ dissect_sndcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
   /* Make entries in Protocol column and clear Info column on summary display 
    */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNDCP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SNDCP");
   if (check_col(pinfo->cinfo, COL_INFO)) 
     col_clear(pinfo->cinfo, COL_INFO);
   
index e49c275ca2683740199d2a5464be228c83f34912..a8948c12f5140374f5c50905dc28f0ae5f436f26 100644 (file)
@@ -2878,8 +2878,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 3cfa75f83b35065d409de8af72e8242695d8a625..af4b06bf95bf21f8e9edbd84d233f20484e81d34 100644 (file)
@@ -391,8 +391,7 @@ socks_udp_dissector(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
 
        hash_info = conversation_get_proto_data(conversation, proto_socks);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Socks");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Socks");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_fstr(pinfo->cinfo, COL_INFO, "Version: 5, UDP Associated packet");
@@ -1084,8 +1083,7 @@ dissect_socks(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
 
 /* display summary window information  */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Socks");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Socks");
 
        if (check_col(pinfo->cinfo, COL_INFO)){
                if (( hash_info->version == 4) || ( hash_info->version == 5)){
index a749fb2a4df59635868080acde8c477c6325cb6a..6c468866033f72c0293fa7691903af8f75c2916e 100644 (file)
@@ -127,8 +127,7 @@ dissect_spp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const char      *spp_msg_string;
        guint16         low_socket, high_socket;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "SPP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "SPP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "SPP");
 
index 166d70a56c35e70b370a3db35537f46056c29baa..87ce155446f74d26793f5b2cc50ff056b903ea73 100644 (file)
@@ -823,8 +823,7 @@ dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item  *expert_item;
     guint16     expert_status;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "SRVLOC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SRVLOC");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
@@ -1420,8 +1419,7 @@ dissect_srvloc_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_tree     *srvloc_tree = NULL;
     proto_item     *ti;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "SRVLOC");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SRVLOC");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
index 4da7a59c49e47d61c659579334fa6e34659cf277..eecd62e489c31c94d4d72291224d9c679eed3db5 100644 (file)
@@ -95,8 +95,7 @@ dissect_sscf_nni(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
     sscf_status = tvb_get_guint8(tvb, SSCF_STATUS_OFFSET);
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSCF-NNI");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSCF-NNI");
     if (check_col(pinfo->cinfo, COL_INFO))
       col_add_fstr(pinfo->cinfo, COL_INFO, "STATUS (%s) ",
                   val_to_str(sscf_status, sscf_status_vals, "Unknown"));
index 0635b19c036e06ea67dcd2baf8658e467ff5ee49..f0f7beaf6fa69f317742ddbaf7e5553dc59acfec 100644 (file)
@@ -194,8 +194,7 @@ dissect_sscop_and_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, d
   sscop_pdu_type = tvb_get_guint8(tvb, SSCOP_PDU_TYPE);
   sscop_info.type = sscop_pdu_type & SSCOP_TYPE_MASK;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSCOP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSCOP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_add_str(pinfo->cinfo, COL_INFO, val_to_str(sscop_info.type, sscop_type_vals,
                                        "Unknown PDU type (0x%02x)"));
index e77ff9249bc296462aab6f445aaeec373efb6c7d..6fea9f229b39c1336cd7e93562ed3af05e91c69c 100644 (file)
@@ -335,8 +335,7 @@ dissect_stun(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        
 
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "STUN");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "STUN");
     
        if (check_col(pinfo->cinfo, COL_INFO)) {
                col_add_fstr(pinfo->cinfo, COL_INFO, "Message: %s",
index d9b56304fe4456ac8e70a87afe9cc400a9eb73c9..32e7bab97b79aa311a52305f6532ed004aa9b537 100644 (file)
@@ -437,8 +437,7 @@ dissect_stun2_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        /* The message seems to be a valid STUN2 message! */
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "STUN2");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "STUN2");
 
        /* BEGIN of CHANNEL-DATA specific section */
        if (msg_type & 0xC000)
index 91d9b3c53de493237eb439c84eb4b2ec05ec9d13..1ef7d5e93ff64de6c34c7b129115a1cf089a90b6 100644 (file)
@@ -78,8 +78,7 @@ dissect_symantec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if ((etypev2 == 0) == (etypev3 == 0))
                return;
                
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Symantec");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Symantec");
                
        if (etypev3 == 0) {     /* SEF and SGS v2 processing */
                if (check_col(pinfo->cinfo, COL_INFO))
index d19119195e3ff023703414774e3d089ddbf98811..979f2fdcf75ba00ecffc93aff6a763aeeb3ff38d 100644 (file)
@@ -147,8 +147,7 @@ static void
 dissect_synergy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
 
- if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "synergy");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "synergy");
 
        if (tree) {
                gint offset=0;
index 96673b617a7b14c46b06bdcf4bd393e200724bf6..7f1fcf9157923a7ba610aca40ca2a4630ad0cb1d 100644 (file)
@@ -234,8 +234,7 @@ dissect_syslog(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   const char *msg_str;
   tvbuff_t *mtp3_tvb;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Syslog");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "Syslog");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 7db446a5e1c2f870c8a0aaacc98ae4d5ed6c4258..d2356e6842da7772fdba4172d39fc8e9e1876c67 100644 (file)
@@ -155,15 +155,13 @@ dissect_tacacs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item      *ti;
        guint8          txt_buff[255+1],version,type,userlen,passlen;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TACACS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TACACS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
        version = tvb_get_guint8(tvb,0);
        if (version != 0) {
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "XTACACS");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "XTACACS");
        }
 
        type = tvb_get_guint8(tvb,1);
@@ -940,8 +938,7 @@ dissect_tacplus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        } else {
                key=find_key(  &pinfo->src, &pinfo->dst );
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TACACS+");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TACACS+");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index c2e7bd26b7be1110969c7ce666cef22a939f28e1..ab2a254fc6023f712d070ee4ccd39a01bd9d6385 100644 (file)
@@ -105,8 +105,7 @@ dissect_tali_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   length = tvb_get_letohs(tvb, TALI_SYNC_LENGTH + TALI_OPCODE_LENGTH);
 
   /* Make entries in Protocol column on summary display */
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TALI");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "TALI");
   
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_set_str(pinfo->cinfo, COL_INFO, "");
index 2220fcdf619ee0ebcd3536bdcc213d62d0f96154..8278826491d5c6de2ad03db54f713bf28dc4b51d 100644 (file)
@@ -3005,8 +3005,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   SET_ADDRESS(&tcph->ip_src, pinfo->src.type, pinfo->src.len, pinfo->src.data);
   SET_ADDRESS(&tcph->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, "TCP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCP");
 
   /* Clear out the Info column. */
   if (check_col(pinfo->cinfo, COL_INFO))
index 4a35917eefacc9d880df92d3e362cf6bfe3b14fa..04dca9b07656b2da9836957cd4c8e2d2e55941e2 100644 (file)
@@ -1809,8 +1809,7 @@ dissect_tds_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                }
 
                if (first_time) {
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TDS");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TDS");
 
                        /*
                         * Set the packet description based on its TDS packet
index e182bc50c0cb4b668c65ac4c39b5f82bdef505f8..ccbe686e66cca4f72dd39f9afdbb9c0128a02f92 100644 (file)
@@ -76,8 +76,7 @@ dissect_teimanagement(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     proto_item *tei_ti;
     guint8 message;
     
-    if(check_col(pinfo->cinfo, COL_PROTOCOL)) 
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TEI");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TEI");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
     
index 653660e5f00d74c728fb0880ffb6dda7574f41ce..33eefb50b3be6077507f08e5d82d4e6bb32fd4ef 100644 (file)
@@ -63,8 +63,7 @@ dissect_telkonet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int offset = 0;
        telkonet_type_t type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-         col_set_str(pinfo->cinfo, COL_PROTOCOL, "TELKONET");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TELKONET");
        if (check_col(pinfo->cinfo, COL_INFO))
          col_clear(pinfo->cinfo, COL_INFO);
 
index f6208c386451261055bd461eae593a2bd24bb2f5..fd607e5d0530ca61cbe155cac9b2f5c95592f262 100644 (file)
@@ -1845,8 +1845,7 @@ dissect_telnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint len = 0;
        guint is_tn3270 = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TELNET");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TELNET");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Telnet Data ...");
index 4a856d9dd03b69938854fa412d4539913c0a9f8d..fbdc7e5ae1fe5edc9052290d780d172cb9e275a6 100644 (file)
@@ -230,8 +230,7 @@ dissect_teredo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
        teredoh = &teredohstruct[teredoh_count];
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Teredo");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Teredo");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 8439e8c0a6a57f863a15e3b091ef87e57445124b..6183b2507343aac9988378984bf0dac9255364a1 100644 (file)
@@ -176,8 +176,7 @@ static void dissect_tftp_message(tftp_conv_info_t *tftp_info,
        guint            i1;
        guint16          error;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TFTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TFTP");
 
        opcode = tvb_get_ntohs(tvb, offset);
 
index 076d1bccad5ccd0ee701a3b89b279c59dd035e7c..ee3fefe9553cf0222935e8bc08ff675edace0d6d 100644 (file)
@@ -46,8 +46,7 @@ dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   proto_tree   *time_tree;
   proto_item   *ti;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIME");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIME");
 
   if (check_col(pinfo->cinfo, COL_INFO)) {
     col_add_fstr(pinfo->cinfo, COL_INFO, "TIME %s",
index 45df7c81c1c460a2f827b29a9bfcef9c450ea970..5e7072f9c022b713764503e4e91caa1334f7cf24 100644 (file)
@@ -2045,8 +2045,7 @@ dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8   msg_type = 0;
 
        /* Make entry in Protocol column on summary display */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIPC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIPC");
 
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index 67131664834ffd51c6be9de4c8757ad42c18affb..a960d6fe2d053d58f9e6aed1ce57d7a430b50054 100644 (file)
@@ -87,8 +87,7 @@ dissect_tivoconnect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     string = (gchar*)tvb_get_ephemeral_string(tvb, 0, length);
 
     /* 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, "TiVoConnect");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TiVoConnect");
     
     /* make a distinction between UDP and TCP packets */
     proto_name = pinfo->ipproto == IP_PROTO_TCP ?
index aee1f08adaa474660fa0f46a712a403f68391000..4c75b81027ec9a740d122a6cb461cb9ec4d00429 100644 (file)
@@ -905,8 +905,7 @@ dissect_tns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16 length;
        guint16 type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TNS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TNS");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index 731ee01519473e2707fb6662a2428096fb190482..5d0f9eb8480ae46669bf3428662b082144802013 100644 (file)
@@ -245,8 +245,7 @@ dissect_asciitpkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
              * so don't get the length and don't try to
              * do reassembly.
              */
-            if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
+            col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
             if (check_col(pinfo->cinfo, COL_INFO))
                 col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
             if (tree) {
@@ -282,8 +281,7 @@ dissect_asciitpkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
         saved_proto = pinfo->current_proto;
         pinfo->current_proto = "TPKT";
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
         /*
          * Don't add the TPKT header information if we're
          * reassembling segmented TPKT PDUs or if this
@@ -400,8 +398,7 @@ dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                         * so don't get the length and don't try to
                         * do reassembly.
                         */
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
                        if (check_col(pinfo->cinfo, COL_INFO))
                                col_set_str(pinfo->cinfo, COL_INFO, "Continuation");
                        if (tree) {
@@ -473,8 +470,7 @@ dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                saved_proto = pinfo->current_proto;
                pinfo->current_proto = "TPKT";
 
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPKT");
                /*
                 * Don't add the TPKT header information if we're
                 * reassembling segmented TPKT PDUs or if this
index a10ebc1421aa43f851b67f8f92216214178d6f52..d24addc53bc9da63938144aa0c3aeb86abacb348 100644 (file)
@@ -264,8 +264,7 @@ static void dissect_tpncp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
     if (pinfo->srcport == UDP_PORT_TPNCP_TRUNKPACK) /* Event */
         cid = tvb_get_ntohl(tvb, 12 );
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPNCP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TPNCP");
 
     if (check_col(pinfo->cinfo, COL_INFO)) {
         if (pinfo->srcport == UDP_PORT_TPNCP_TRUNKPACK) {
index da231037f2091ff915ffdf7ef780afa6864f8e43..335ec6036c98a79322530488a307c0327e09a668 100644 (file)
@@ -356,8 +356,7 @@ dissect_tr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
        trh=&trh_arr[trh_current];
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TR");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TR");
 
        if (fix_linux_botches)
                x = check_for_old_linux_tvb((tvbuff_t*) tvb);
index 013351d391157f013193b4323314c52f7cf2ffc9..143cb1f57931dd2f81b03b4c6e923231a76dc31a 100644 (file)
@@ -287,8 +287,7 @@ dissect_trmac(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int             mv_length, sv_offset, sv_additional;
        guint8          mv_val;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TR MAC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TR MAC");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 9490490022721ba3d821e101f8ec70c0fbf618b5..678c1a60e67bb0e9097c3fcbef3f04eee42c2f66 100644 (file)
@@ -116,8 +116,7 @@ dissect_tsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        guint8          tsp_type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TSP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 950549b3739036340fc204613357fccf2055a892..d7124a053b3158f799311dd458076d16518eec60 100644 (file)
@@ -83,8 +83,7 @@ dissect_tte_pcf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         TTE_PCF_RES0_LENGTH+TTE_PCF_SP_LENGTH);
 
     /* 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, "PCF");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCF");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_add_fstr(pinfo->cinfo, COL_INFO,
index 6e47691579d8a869f1487dd9eee231814e61e685..51313d0e5e6a7e18b87ac13cb7a75bc9caccc8cf 100644 (file)
@@ -93,8 +93,7 @@ dissect_tte(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, "TTE ");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TTE ");
 
     if (check_col(pinfo->cinfo, COL_INFO))
         col_set_str(pinfo->cinfo, COL_INFO, "Bogus TTEthernet Frame");
index 5c0b23827a1e22f4815ce2ca059eb7693efbbe85..a977f85a4b65059582a2aca7fad52b78f2e6783a 100644 (file)
@@ -134,23 +134,19 @@ static void dissect_turbocell(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
     if (!(packet_type & 0x0F)){
         if (check_col(pinfo->cinfo, COL_INFO))
             col_set_str(pinfo->cinfo, COL_INFO, "Turbocell Packet (Beacon)");
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
     }  else if ( packet_type == TURBOCELL_TYPE_MANAGEMENT ) {
         if (check_col(pinfo->cinfo, COL_INFO))
             col_set_str(pinfo->cinfo, COL_INFO, "Turbocell Packet (Management)");
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
     } else if ( packet_type == TURBOCELL_TYPE_DATA ) {
         if (check_col(pinfo->cinfo, COL_INFO))
             col_set_str(pinfo->cinfo, COL_INFO, "Turbocell Packet (Data)");
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
     } else {
         if (check_col(pinfo->cinfo, COL_INFO))
             col_set_str(pinfo->cinfo, COL_INFO, "Turbocell Packet (Unknown)");
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-            col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Turbocell");
     }
 
     if (tree) {
index 5537352a5790ae838bf6e2fc6fa5dbaaa473d412..b710536f115bc3210c353948a2be6e66fd89a195 100644 (file)
@@ -90,8 +90,7 @@ dissect_turnchannel_message(tvbuff_t *tvb, packet_info *pinfo,
        }
 
        /* Seems to be a decent TURN channel message */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TURN CHANNEL");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TURN CHANNEL");
 
        if (check_col(pinfo->cinfo, COL_INFO))
          col_add_fstr(pinfo->cinfo, COL_INFO, "Channel Id 0x%x", channel_id);
index 58fd655ff8f2d421e7212ed175e9ef42ce5b39a4..75589c735bdccbf26b434560adeaa371c86e3ab1 100644 (file)
@@ -108,7 +108,7 @@ dissect_tuxedo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 magic;
        guint32 opcode;
        
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "TUXEDO");           
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TUXEDO");              
        
        if (tvb_length(tvb) >= 8)
        {
index bd1083ce7af33af01da93c2e6e2d6294d0f29729..1ad93d7d4f4d0fcccff4fdab2ceb5bbb387b3bc1 100644 (file)
@@ -290,8 +290,7 @@ dissect_tzsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const char *info;
        guint8 type;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "TZSP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "TZSP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -345,8 +344,7 @@ dissect_tzsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        || !dissector_try_port(encap_dissector_table, wtap_encap,
                                next_tvb, pinfo, tree))) {
 
-                       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                               col_set_str(pinfo->cinfo, COL_PROTOCOL, "UNKNOWN");
+                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "UNKNOWN");
                        if (check_col(pinfo->cinfo, COL_INFO))
                                col_add_fstr(pinfo->cinfo, COL_INFO, "TZSP_ENCAP = %u",
                                    encapsulation);
index b20dc4ddce33b556fe0873b67566f85bf2ac1432..12ad165415b80af9f2156e7de8d94012256f65af 100644 (file)
@@ -1781,8 +1781,7 @@ dissect_ucp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tvbuff_t   *tmp_tvb;
 
     /* Make entries in Protocol column */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-           col_set_str(pinfo->cinfo, COL_PROTOCOL, "UCP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "UCP");
 
     /* This runs atop TCP, so we are guaranteed that there is at least one
        byte in the tvbuff. */
@@ -1807,8 +1806,7 @@ dissect_ucp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tap_rec->operation = OT;
 
      /* Make entries in  Info column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-           col_set_str(pinfo->cinfo, COL_PROTOCOL, "UCP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "UCP");
     if (check_col(pinfo->cinfo, COL_INFO)) {
        col_clear(pinfo->cinfo, COL_INFO);
        col_append_fstr(pinfo->cinfo, COL_INFO, "%s (%s)",
index 9ddb5cf78ec44e8e35586195b344d400f56db4f0..4254c5401b9580ec1423742c41b0187340d7ebdd 100644 (file)
@@ -110,8 +110,7 @@ dissect_udld(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, "UDLD");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "UDLD");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index e9441a479636012709284ac5902991e03a112541..3acbfae795ebb32ee6fd52d208a4ac348a523011 100644 (file)
@@ -1670,8 +1670,7 @@ dissect_uma(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *uma_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, "UMA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "UMA");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1753,8 +1752,7 @@ dissect_uma_urlc_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *uma_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, "UMA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "UMA");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index ca78850c58e89fd8395f5685e6c119aa5c933ff0..6e40d6f28a1dd0fa92835454fd9852cf1eaa67a5 100644 (file)
@@ -2914,8 +2914,7 @@ void dissect_fp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     struct fp_info   *p_fp_info;
 
     /* Append this protocol name rather than replace. */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "FP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "FP");
 
     /* Create fp tree. */
     ti = proto_tree_add_item(tree, proto_fp, tvb, offset, -1, FALSE);
index 6e0ecd251bbab36ace9847fcac84ae711672b296..3c82ac89dce5f28285179e40591ae1bdac100c91 100644 (file)
@@ -162,8 +162,7 @@ dissect_usb_ms_control(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     }
 
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "USBMS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "USBMS");
 
     if (check_col(pinfo->cinfo, COL_INFO)) {
         col_clear(pinfo->cinfo, COL_INFO);
@@ -208,8 +207,7 @@ dissect_usb_ms_bulk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
 
     is_request=(pinfo->srcport==NO_ENDPOINT);
 
-    if(check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "USBMS");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "USBMS");
 
     if(check_col(pinfo->cinfo, COL_INFO))
         col_clear(pinfo->cinfo, COL_INFO);
index c5ddbf70acf3d5fe4611634d263755a22389d771..42d771797e9e88645600b99cf3bb718df9891ab8 100644 (file)
@@ -1671,8 +1671,7 @@ dissect_linux_usb_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent,
     conversation_t *conversation;
     usb_tap_data_t *tap_data=NULL;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "USB");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "USB");
 
     /* add usb hdr*/
     if (parent) {
index ec5750134b0cda5a3074ae43958238c80798bd6c..38d457ae9b083365c4e5aa900c7fb52b108c1a52 100644 (file)
@@ -100,8 +100,7 @@ dissect_v120(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     tvbuff_t   *next_tvb;
 
     info=ep_alloc(80);
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "V.120");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "V.120");
     if (check_col(pinfo->cinfo, COL_INFO))
        col_clear(pinfo->cinfo, COL_INFO);
 
index 60c0199d9b39ca80d71a9ea2b329ede79dd1953b..915b5a131c4dbd99b46d167ac0971a633dd44c4f 100644 (file)
@@ -296,8 +296,7 @@ dissect_vcdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 }
         }
        
-       if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "VCDU");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "VCDU");
        if (check_col(pinfo->cinfo, COL_INFO)) 
                col_set_str(pinfo->cinfo, COL_INFO, "Virtual Channel Data Unit");
 
index 259098b97f48626d2af4dc7486d34dda02245ac9..493aa2352f6d3e4772fa99b0370557ad5a4a0496 100644 (file)
@@ -58,8 +58,7 @@ static void dissect_vicp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
       return;
    }
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "VICP");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "VICP");
 
    if (check_col(pinfo->cinfo, COL_INFO)) 
       col_clear(pinfo->cinfo, COL_INFO);
index b5a1377b753000febd9ad436150bc74a1ddc4904..bc33a21262ece8e9a4b939ff08db2f158fb2ca5a 100644 (file)
@@ -109,8 +109,7 @@ dissect_vines_frp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gchar   *frp_flags_str="";
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines FRP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines FRP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -208,8 +207,7 @@ dissect_vines_llc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *ti;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines LLC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines LLC");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -297,8 +295,7 @@ dissect_vines_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int  hops = 0;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines IP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines IP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -443,8 +440,7 @@ dissect_vines_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_tree *vines_echo_tree = NULL;
        proto_item *ti;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines Echo");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines Echo");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -521,8 +517,7 @@ dissect_vines_ipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item *ti;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "VIPC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "VIPC");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -539,8 +534,7 @@ dissect_vines_ipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        viph.vipc_ack = g_ntohs(viph.vipc_ack);
        viph.vipc_err_len = g_ntohs(viph.vipc_err_len);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines IPC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines IPC");
        if (check_col(pinfo->cinfo, COL_INFO)) {
                switch (viph.vipc_pkttype) {
 
@@ -722,8 +716,7 @@ dissect_vines_spp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        proto_item  *ti;
        tvbuff_t    *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "VSPP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "VSPP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -740,8 +733,7 @@ dissect_vines_spp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        viph.vspp_ack = g_ntohs(viph.vspp_ack);
        viph.vspp_win = g_ntohs(viph.vspp_win);
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines SPP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines SPP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_add_fstr(pinfo->cinfo, COL_INFO,
                             "%s NS=%u NR=%u Window=%u RID=%04x LID=%04x D=%04x S=%04x",
@@ -872,8 +864,7 @@ dissect_vines_arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16  packet_type;
        guint16  metric;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines ARP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines ARP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -895,8 +886,7 @@ dissect_vines_arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                /*
                 * Sequenced ARP.
                 */
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines SARP");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines SARP");
                packet_type = tvb_get_guint8(tvb, 1);
                if (check_col(pinfo->cinfo, COL_INFO)) {
                        col_add_str(pinfo->cinfo, COL_INFO,
@@ -1053,8 +1043,7 @@ dissect_vines_rtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8   control_flags;
        guint16  metric;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines RTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines RTP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
@@ -1152,8 +1141,7 @@ dissect_vines_rtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                        }
                }
        } else {
-               if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines SRTP");
+               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines SRTP");
                if (tree) {
                        version = tvb_get_ntohs(tvb, offset);
                        proto_tree_add_text(vines_rtp_tree, tvb, offset, 2,
@@ -1561,8 +1549,7 @@ dissect_vines_icp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gboolean save_in_error_pkt;
        tvbuff_t *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines ICP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Vines ICP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 6d076c1a21e31c8c5ef6f0f576e61bd3b15c7be2..6e670fb08a36d95ba619b565a1c851ab1421e8be 100644 (file)
@@ -223,8 +223,7 @@ dissect_vjuc(tvbuff_t *tvb, packet_info *pinfo, proto_tree * tree)
   gint        isize       = tvb_length(tvb);
   gint        ipsize;
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP VJ");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP VJ");
 
   if(tree != NULL) {
     ti = proto_tree_add_protocol_format(tree, proto_vj, tvb, 0, -1,
@@ -404,8 +403,7 @@ dissect_vjc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   slcompress *comp     = NULL;
   gint        err      = VJ_ERROR;
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP VJ");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "PPP VJ");
 
   if(tree != NULL) {
     ti = proto_tree_add_protocol_format(tree, proto_vj, tvb, 0, -1,
index eb1db6db03a847bcb831b408e452ab73c63c2e4d..96d829e050c2ef1669717446664d14681afd2986 100644 (file)
@@ -79,8 +79,7 @@ dissect_vlan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   volatile gboolean is_802_2;
   proto_tree *volatile vlan_tree;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "VLAN");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "VLAN");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index 87b9e27f4df1c137d9da3c7e916f98c4fff54e59..512262af74847d8e396182216476f151c6458e2b 100644 (file)
@@ -554,8 +554,7 @@ dissect_vnc(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, "VNC");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "VNC");
 
        /* First, clear the info column */
        if(check_col(pinfo->cinfo, COL_INFO))
index 4abfb9e5344bc17aa606317f5d4a9f96fe3361ab..1e9ff05852494d943f1316bd990bf7f949c0eede 100644 (file)
@@ -92,8 +92,7 @@ dissect_vrrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        vec_t cksum_vec[4];
        guint32 phdr[2];
 
-        if (check_col(pinfo->cinfo, COL_PROTOCOL))
-                col_set_str(pinfo->cinfo, COL_PROTOCOL, "VRRP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "VRRP");
         if (check_col(pinfo->cinfo, COL_INFO))
                 col_clear(pinfo->cinfo, COL_INFO);
 
index f9e1d444ea5ce22fc0b5ba6bb8f0f5f4c304375d..f024583a94fad4efd2fbfad68e99fd35156f790d 100644 (file)
@@ -97,8 +97,7 @@ dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        const guint8 *upd_timestamp;
        int vlan_info_len;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "VTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "VTP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_set_str(pinfo->cinfo, COL_INFO, "Virtual Trunking Protocol");
 
index f833d057fa4aa5ef2b3f9e36cd3db61dca2317c1..e931e84929f3d7803b8a971062c85ddeb862a9c2 100644 (file)
@@ -301,8 +301,7 @@ static void dissect_wcp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
        guint16         temp, cmd, ext_cmd, seq;
        tvbuff_t        *next_tvb;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WCP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WCP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index aa6972f01aba3a770049f72d1f4cf816ebc22863..fe432f54fd95a392df857fbdb66dc2f396b6ea4a 100644 (file)
@@ -60,8 +60,7 @@ dissect_wfleet_hdlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     col_set_str(pinfo->cinfo, COL_RES_DL_SRC, "N/A");
   if (check_col(pinfo->cinfo, COL_RES_DL_DST))
     col_set_str(pinfo->cinfo, COL_RES_DL_DST, "N/A");
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "WHDLC");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "WHDLC");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index a8bb9d08b17b6ab3358d7a0481782d41db125d7b..e8d3878dc32a46401c40bca05ca8f89aa42f05a0 100644 (file)
@@ -100,8 +100,7 @@ dissect_who(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        nstime_t        ts;
 
        /* Summary information */
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WHO");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WHO");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 98453d01e6ce8737d86918496887723ced20b924..6f1581ff836d06a9ae62639b8140cafd9ac8a8c3 100644 (file)
@@ -711,8 +711,7 @@ dissect_wlccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint8 base_message_type=0, message_sub_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, "WLCCP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WLCCP");
 
        if (check_col(pinfo->cinfo, COL_INFO))
        {
index aac6f66c098223036bfa312706051b08cf27498b..380f2b161d9ca7ac089c81be22916fecdfccae36 100644 (file)
@@ -152,8 +152,7 @@ dissect_wol(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, "WOL");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "WOL");
 
 /* This field shows up as the "Info" column in the display; you should use
    it, if possible, to summarize what's in the packet, so that a user looking
index 64b9723268dcdabf1bec28e9cf898e708f5670d3..86b313e281adfb3b31ed81dce58d65da2c8afa27 100644 (file)
@@ -205,8 +205,7 @@ dissect_wow_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint32 offset = 0;
        gint len, i;
 
-       if(check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "WOW");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "WOW");
 
        if(check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
index b0632a1b3aa18039b66acfa8daf5ab4fe1f56383..f0b4f576da7c60d182fdcdc4dfafc90fd0822559 100644 (file)
@@ -67,8 +67,7 @@ dissect_wsmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         char* acm;        
 
         /* 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, "WSMP");
+        col_set_str(pinfo->cinfo, COL_PROTOCOL, "WSMP");
 
         if (check_col(pinfo->cinfo, COL_INFO)) 
                 col_set_str(pinfo->cinfo, COL_INFO, "WAVE Short Message Protocol IEEE P1609.3");
index dfad020747f16fe0fd06219748a5c5a2c41aa9d1..8fe9599c72dc64c2572f288ecec1d500086c0b14 100644 (file)
@@ -5325,8 +5325,7 @@ dissect_x11_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
 static void
 dissect_x11(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "X11");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "X11");
 
        if (pinfo->match_port == pinfo->srcport)
                dissect_x11_replies(tvb, pinfo, tree);
index b865cf443e49e63e1485913594c938fda9365912..62a3e3b30341660d728ba73d6ab5a6a73885a473 100644 (file)
@@ -1672,8 +1672,7 @@ dissect_x25_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
     guint8 spi;
     int is_x_264;
     guint8 prt_id;
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-       col_set_str(pinfo->cinfo, COL_PROTOCOL, "X.25");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "X.25");
 
     bytes0_1 = tvb_get_ntohs(tvb, 0);
 
index 6d4ed6979cc5c4dc9102e105dab1f0b626670e25..fdcbf72876363fed0b4aab35dc11ecd8bfb6c659 100644 (file)
@@ -91,8 +91,7 @@ dissect_x29(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, "X.29");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "X.29");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index e4a80919b985367bd13916edcc36ea3ecff2ec07..d00170a2f3b57ea1f1244672535b16b61f4f3561 100644 (file)
@@ -3774,8 +3774,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 37d08942fd16cabc3d1a66e479355297f731f6a7..ab7cd8ad57be4ec1e1ffed6e39d6720edf57a974 100644 (file)
@@ -8371,8 +8371,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");
 
@@ -8413,8 +8412,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 a6da123d076953e71a7ea475307a8a1e010bf88d..23c23a6e1d28cd51416eb8f819d402beb2732f29 100644 (file)
@@ -4298,8 +4298,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 4027cd6589bfc1ea78f3b88164bbc63ea2cec738..323592c31a3cd98b00fe397a7913012a9875d844 100644 (file)
@@ -907,8 +907,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 dffbf49b7637fe613737a6b52b1e1ee8b3872955..18ac7bab7a9a9e1f9ff4c9ea7ab43ba6b5e6ffec 100644 (file)
@@ -131,8 +131,7 @@ static void dissect_xcsl_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
    proto_tree  *xcsl_tree = NULL;
 
    /* color support */
-   if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "Xcsl");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "Xcsl");
    if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
 
index 96f41c6ab82032058cd24d9819e84b2b11482c3e..11ec24d31a7aefc25a5c95206d54f26db7353ee6 100644 (file)
@@ -199,8 +199,7 @@ static void dissect_xdmcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     return;
   }
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "XDMCP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "XDMCP");
   if (check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index fbec7fb72e3be926870b294022d151096413eef6..8021d8b86c332cb6f53dd9212c4ca1a6be74b8a8 100644 (file)
@@ -201,8 +201,7 @@ static void dissect_xot_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   /*
    * Dissect the X.25-over-TCP packet.
    */
-     if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "XOT");
+     col_set_str(pinfo->cinfo, COL_PROTOCOL, "XOT");
      version = tvb_get_ntohs(tvb, offset + 0);
      plen = tvb_get_ntohs(tvb, offset + 2);
      if (check_col(pinfo->cinfo, COL_INFO))
index 72084428a57cf3b3e323ed5e2b3bfce0239ad750..ec5bec8462857be2021e510e7a0979764581f7cd 100644 (file)
@@ -811,8 +811,7 @@ dissect_xtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
        if ((len = tvb_length(tvb)) < XTP_HEADER_LEN)
                return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "XTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "XTP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);
 
index 8379bf331c90a250484856756616069e2f4132d4..b036356a4162cf12a8b365bd45d2892c5145cc8b 100644 (file)
@@ -72,8 +72,7 @@ dissect_xyplex(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        guint16         reserved;
        guint16         reply;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "XYPLEX");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "XYPLEX");
 
        if (tree) {
          ti = proto_tree_add_item(tree, proto_xyplex, tvb, offset, -1, FALSE);
index 11468b3e212b405cec2a684fe2f894c81a46cd00..9af26d021db148d8a05d0b2b48c6646980c655a1 100644 (file)
@@ -198,8 +198,7 @@ dissect_yhoo(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, "YHOO");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "YHOO");
 
        offset = 0;
        if (check_col(pinfo->cinfo, COL_INFO)) {
index 72bb924575ecc2d8d268ca54286499d2fcec882d..56cffc4deef923edb3176b9c1072fd2c1aeba0d8 100644 (file)
@@ -385,8 +385,7 @@ dissect_ymsg_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        int offset = 0;
        int content_len = 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "YMSG");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "YMSG");
 
        offset = 0;
        if (check_col(pinfo->cinfo, COL_INFO)) {
index aed4cf13f6b6f1802bcdc0cb4c01ff600b36eb3c..26f0fe9202036716d5d095030d98d0601f84d8de 100644 (file)
@@ -437,8 +437,7 @@ dissect_zebra(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        gboolean        request;
        int             left, offset;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZEBRA");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZEBRA");
 
        request = (pinfo->destport == pinfo->match_port);
        left = tvb_reported_length(tvb);
index 1bb9e129fdcb8f0fc7281579d61766ea7ab850d9..7d1edff0dd6495cef4f4a2eb941a04c8818973f1 100644 (file)
@@ -322,8 +322,7 @@ dissect_zrtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   unsigned int msg_offset = 12;
   guint32      sent_crc, calc_crc;
 
-  if (check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZRTP");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZRTP");
 
   if (check_col(pinfo->cinfo, COL_INFO))
     col_add_fstr(pinfo->cinfo, COL_INFO, "Unknown ZRTP Packet");
index 1876181b9278ae21550b993bf63b3c14601fe32f..984bedce771757cebdd0f348c9ce1a1e4b069168 100644 (file)
@@ -371,8 +371,7 @@ dissect_docsis (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, "DOCSIS");
+  col_set_str (pinfo->cinfo, COL_PROTOCOL, "DOCSIS");
 
   if (check_col (pinfo->cinfo, COL_INFO))
     {
index 1ecb4f2b20b1fc254606f1acb1074e3d6520cdf8..c8afcb42ba11e88e920d5d6290d4cc75d6d6cb5b 100644 (file)
@@ -133,8 +133,7 @@ dissect_macmgmt (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
   proto_tree *mgt_hdr_tree;
   tvbuff_t *payload_tvb;
   guint8 type;
-  if (check_col (pinfo->cinfo, COL_PROTOCOL))
-    col_set_str (pinfo->cinfo, COL_PROTOCOL, "DOCSIS MGMT");
+  col_set_str (pinfo->cinfo, COL_PROTOCOL, "DOCSIS MGMT");
 
   if (check_col (pinfo->cinfo, COL_INFO))
     col_clear (pinfo->cinfo, COL_INFO);
index 5dd83278b9fae440d49687763592464892770b5b..44b8814c10e2cc986d46f39834ea6c407caf4f40 100644 (file)
@@ -394,8 +394,7 @@ static void dissect_ams(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
    char szText[200];
    int nMax = sizeof(szText)-1;
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "AMS");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "AMS");
 
    if (check_col(pinfo->cinfo, COL_INFO)) 
       col_clear(pinfo->cinfo, COL_INFO);
index a737e33fecfdde02dd2948855b6cdf922fe04ed0..02ec0a28cca682d821f516da93507dd04e87fbe7 100644 (file)
@@ -462,8 +462,7 @@ static void dissect_ecat_datagram(tvbuff_t *tvb, packet_info *pinfo, proto_tree
    guint datagram_padding_bytes = 0;
    EcParserHDR ecHdr;
 
-   if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECAT");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECAT");
 
    if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
index a79feea04af787ef4518b6b19d0583828ea7aac2..780451181e95b324f333cb84524aeb4fcdae6513 100644 (file)
@@ -69,8 +69,7 @@ static void dissect_ioraw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
    guint ioraw_length = tvb_reported_length(tvb);
    
-   if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "IO-RAW");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "IO-RAW");
 
    if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);
index 6b42bac5223230cb7fe0481bb5c173ab4cdfc61c..2bd6fed5f7d5a413dd923942d2b851b0c2967a42 100644 (file)
@@ -110,8 +110,7 @@ static void dissect_nv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
    gint i;
  
-   if (check_col(pinfo->cinfo, COL_PROTOCOL))
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "TC-NV");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "TC-NV");
 
    if (check_col(pinfo->cinfo, COL_INFO)) 
       col_clear(pinfo->cinfo, COL_INFO);
index a11454c8014765310bbd3c21466b657045ce8a6e..882e9070723cba811bb533ae83ca5d386070ab40 100644 (file)
@@ -605,8 +605,7 @@ static proto_tree *start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tre
     proto_item *ti = NULL;
     proto_tree *tree = NULL;            /* init later, inside if(tree) */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "COSEVENTCOMM");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "COSEVENTCOMM");
 
     /*
      * Do not clear COL_INFO, as nothing is being written there by
index daff12051123d42bf0c6ed1533cfc739b15dc14d..8df17574621457bd3426b1e8a750f71b57597a78 100644 (file)
@@ -1552,8 +1552,7 @@ static proto_tree *start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tre
     proto_item *ti = NULL;
     proto_tree *tree = NULL;            /* init later, inside if(tree) */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "COSNAMING");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "COSNAMING");
 
     /*
      * Do not clear COL_INFO, as nothing is being written there by
index dad209aab990e44b6360f50fa68bb8c71ea87bf3..a457eb13a6ec0bdd4558d600314249ee1d6012fb 100644 (file)
@@ -101295,8 +101295,7 @@ static proto_tree *start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tre
     proto_item *ti = NULL;
     proto_tree *tree = NULL;            /* init later, inside if(tree) */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PARLAY");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PARLAY");
 
     /*
      * Do not clear COL_INFO, as nothing is being written there by
index faebb7e07389a058e6f65b2774c1f809ca63e708..54a8920a3f84e57e36b72e4d495e7314a2378b9c 100644 (file)
@@ -4231,8 +4231,7 @@ static proto_tree *start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tre
     proto_item *ti = NULL;
     proto_tree *tree = NULL;            /* init later, inside if(tree) */
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "TANGO");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TANGO");
 
     /*
      * Do not clear COL_INFO, as nothing is being written there by
index 25830dfc06c494f69b59347174902e793dd46788..6152c674f4eeaeecddbe8a273d3a2aa7b7af67a9 100644 (file)
@@ -210,8 +210,7 @@ dissect_gryphon_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
     guint8         flags;
 
     if (!is_msgresp_add) {
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-           col_set_str(pinfo->cinfo, COL_PROTOCOL, "Gryphon");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "Gryphon");
        if (check_col(pinfo->cinfo, COL_INFO))
            col_clear(pinfo->cinfo, COL_INFO);
     }
index 8f4790f5f88ec251836b81d34761d841db9be663..a2340f42ba2d44185abfbc9af1652d864e437a77 100644 (file)
@@ -177,8 +177,7 @@ static void dissect_cooked_ircomm(tvbuff_t* tvb, packet_info* pinfo, proto_tree*
         return;
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrCOMM");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrCOMM");
 
     clen = tvb_get_guint8(tvb, offset);
 
@@ -232,8 +231,7 @@ static void dissect_raw_ircomm(tvbuff_t* tvb, packet_info* pinfo, proto_tree* ro
         return;
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrCOMM");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrCOMM");
 
     if (check_col(pinfo->cinfo, COL_INFO))
     {
index 9b16b2219fda53c098e7d5047c542015d3396916..2d4a56f1fbf3a60e8caca77a745a31f56679e074 100644 (file)
@@ -469,8 +469,7 @@ static unsigned dissect_ttp(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root,
         return 0;
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "TTP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "TTP");
 
     head = tvb_get_guint8(tvb, offset);
 
@@ -530,8 +529,7 @@ static void dissect_iap_request(tvbuff_t* tvb, packet_info* pinfo, proto_tree* r
         return;
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAP");
 
     op = tvb_get_guint8(tvb, offset) & IAP_OP;
 
@@ -696,8 +694,7 @@ static void dissect_iap_result(tvbuff_t* tvb, packet_info* pinfo, proto_tree* ro
         return;
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IAP");
 
     op      = tvb_get_guint8(tvb, offset) & IAP_OP;
     retcode = tvb_get_guint8(tvb, offset + 1);
@@ -1058,8 +1055,7 @@ static void dissect_irlmp(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root)
 
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrLMP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrLMP");
 
     dlsap = tvb_get_guint8(tvb, offset);
     cbit  = dlsap & CONTROL_BIT;
@@ -1672,8 +1668,7 @@ static void dissect_xid(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root, pro
 static void dissect_log(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root)
 {
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "Log");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "Log");
 
     /* missed messages? */
     if (pinfo->pseudo_header->irda.pkttype == IRDA_MISSED_MSG)
@@ -1730,8 +1725,7 @@ static void dissect_irlap(tvbuff_t* tvb, packet_info* pinfo, proto_tree* root)
     guint8   ca;
 
     /* Make entries in Protocol column on summary display */
-    if (check_col(pinfo->cinfo, COL_PROTOCOL))
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrLAP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "IrLAP");
 
     /* Clear Info column */
     if (check_col(pinfo->cinfo, COL_INFO))
index 92a47c6c1d328b636d4df9a15f9f74bffb3ce30a..0486f92492461563aa7fd2e100cc1b5351108aaa 100644 (file)
@@ -391,8 +391,7 @@ dissect_PNMRP(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        
     guint32 offset = 0;
 
-    if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-        col_set_str(pinfo->cinfo, COL_PROTOCOL, "PN-MRP");
+    col_set_str(pinfo->cinfo, COL_PROTOCOL, "PN-MRP");
                
     /* Clear the information column on summary display */
     if (check_col(pinfo->cinfo, COL_INFO)) {
index 8c65ecf920cc6b8c3ebdad9981080b543e19e81e..df2a9534f9cd1a56e6861521a9e1a2288931db2b 100644 (file)
@@ -56,8 +56,7 @@ dissect_siii(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint tel_no = 0;
 
   /* setup columns */
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SERCOS III V1.1");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SERCOS III V1.1");
   if(check_col(pinfo->cinfo, COL_INFO))
     col_clear(pinfo->cinfo, COL_INFO);
 
index eaf28f76bb95f40052a2f328ac04841c9c415730..81e284d0985d53264591894aba8c71c5f5ceb0fd 100644 (file)
@@ -145,8 +145,7 @@ void dissect_siii_at(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   phase = (tvb_get_guint8(tvb, 1)&0x8F); /* read communication phase out of SERCOS III header*/
   telno = (tvb_get_guint8(tvb, 0) & 0xF); /* read number of AT out of SERCOS III header */
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIII AT");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIII AT");
 
   if(check_col(pinfo->cinfo, COL_INFO))
   {
index 4133df766068a6d2a54ae5592e38cbf8e746e386..0378aa51a43852e578634b5e640c4081cc81c232 100644 (file)
@@ -141,8 +141,7 @@ void dissect_siii_mdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   guint t_phase;
   guint telno;
 
-  if(check_col(pinfo->cinfo, COL_PROTOCOL))
-    col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIII MDT");
+  col_set_str(pinfo->cinfo, COL_PROTOCOL, "SIII MDT");
 
   t_phase = (tvb_get_guint8(tvb, 1)&0x8F); /* read communication phase out of SERCOS III header */
   telno = (tvb_get_guint8(tvb, 0) & 0xF); /* read number of MDT out of SERCOS III header */