JackHintonSmartDCSIT commented on code in PR #8691:
URL: https://github.com/apache/nifi/pull/8691#discussion_r1605072721


##########
nifi-extension-bundles/nifi-network-bundle/nifi-network-processors/src/main/java/org/apache/nifi/processors/network/util/Linktype.java:
##########
@@ -0,0 +1,259 @@
+// MIT License
+
+// Copyright (c) 2015-2023 Kaitai Project
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to 
deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in 
all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
THE
+// SOFTWARE.
+
+package org.apache.nifi.processors.network.util;
+
+import java.util.Map;
+import java.util.HashMap;
+
+public enum Linktype {
+    NULL_LINKTYPE(0),
+    ETHERNET(1),
+    EXP_ETHERNET(2),
+    AX25(3),
+    PRONET(4),
+    CHAOS(5),
+    IEEE802_5(6),
+    ARCNET_BSD(7),
+    SLIP(8),
+    PPP(9),
+    FDDI(10),
+    REDBACK_SMARTEDGE(32),
+    PPP_HDLC(50),
+    PPP_ETHER(51),
+    SYMANTEC_FIREWALL(99),
+    ATM_RFC1483(100),
+    RAW(101),
+    C_HDLC(104),
+    IEEE802_11(105),
+    ATM_CLIP(106),
+    FRELAY(107),
+    LOOP(108),
+    ENC(109),
+    NETBSD_HDLC(112),
+    LINUX_SLL(113),
+    LTALK(114),
+    ECONET(115),
+    IPFILTER(116),
+    PFLOG(117),
+    CISCO_IOS(118),
+    IEEE802_11_PRISM(119),
+    AIRONET_HEADER(120),
+    IP_OVER_FC(122),
+    SUNATM(123),
+    RIO(124),
+    PCI_EXP(125),
+    AURORA(126),
+    IEEE802_11_RADIOTAP(127),
+    TZSP(128),
+    ARCNET_LINUX(129),
+    JUNIPER_MLPPP(130),
+    JUNIPER_MLFR(131),
+    JUNIPER_ES(132),
+    JUNIPER_GGSN(133),
+    JUNIPER_MFR(134),
+    JUNIPER_ATM2(135),
+    JUNIPER_SERVICES(136),
+    JUNIPER_ATM1(137),
+    APPLE_IP_OVER_IEEE1394(138),
+    MTP2_WITH_PHDR(139),
+    MTP2(140),
+    MTP3(141),
+    SCCP(142),
+    DOCSIS(143),
+    LINUX_IRDA(144),
+    IBM_SP(145),
+    IBM_SN(146),
+    USER0(147),
+    USER1(148),
+    USER2(149),
+    USER3(150),
+    USER4(151),
+    USER5(152),
+    USER6(153),
+    USER7(154),
+    USER8(155),
+    USER9(156),
+    USER10(157),
+    USER11(158),
+    USER12(159),
+    USER13(160),
+    USER14(161),
+    USER15(162),

Review Comment:
   I had another look and as the enum is only used to determine whether the 
body of a packet should be held in an ethernetFrame or not in the original (and 
I don't use an ethernetframe regardless) it seemed more sensible just to remove 
it entirely.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to