[
https://issues.apache.org/jira/browse/PLC4X-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306326#comment-17306326
]
Adrian Lazar commented on PLC4X-286:
------------------------------------
[~cdutz] I have figure out that the issue is definitely not PLC4X. Because
running a simplified version of the
[sample.loop|https://github.com/kaitoy/pcap4j/blob/v1/www/sample_Loop.md] :
{code:java}
PcapNetworkInterface nif;
try {
nif = new NifSelector().selectNetworkInterface();
for(LinkLayerAddress addr : nif.getLinkLayerAddresses()){
LOG.debug(addr.toString());
}
} catch (IOException e) {
LOG.error(null,e);
}
{code}
I get:
16:48:52 [main] INFO org.pcap4j.core.NativeMappings - Pcap4J successfully
loaded a native pcap library: Npcap version 1.20, based on libpcap version
1.10.1-PRE-GIT
*+16:48:52 [main] WARN org.pcap4j.core.Pcaps - Error calling PacketRequest:
Couldn't get error message for error (3758096571)+*
16:48:52 [main] WARN org.pcap4j.util.PropertiesLoader -
org/pcap4j/pcap4j.properties not found.
16:48:52 [main] INFO org.pcap4j.util.PropertiesLoader -
[org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.inet, use
default value: 2
16:48:52 [main] INFO org.pcap4j.util.PropertiesLoader -
[org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.inet6, use
default value: 23
16:48:52 [main] INFO org.pcap4j.util.PropertiesLoader -
[org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.packet, use
default value: 17
16:48:52 [main] INFO org.pcap4j.util.PropertiesLoader -
[org/pcap4j/pcap4j.properties] Could not get value by org.pcap4j.af.link, use
default value: 18
+*16:48:52 [main] ERROR org.pcap4j.core.PcapNetworkInterface - Failed to
retrieve the link layer address of the NIF: \Device\NPF_Loopback*+
16:48:52 [main] INFO org.pcap4j.core.Pcaps - 13 NIF(s) found.
NIF[0]: \Device\NPF_
{68DD977A-CD31-4236-A5E2-4C6032E1DE49}
: description: Microsoft
: link layer address: d0:53:49:10:14:eb
: address: /fe80:0:0:0:89de:aabe:aaad:20da
NIF[1]: \Device\NPF_
{AE703FD2-CADD-4290-9F6A-E1FDA68E7327}
: description: Oracle
: link layer address: 0a:00:27:00:00:15
: address: /192.168.89.2
....and so on
The "Failed to retrieve the link layer address of the NIF" comes from the
[PcapNetworkInterface.java|https://github.com/kaitoy/pcap4j/blob/v1/pcap4j-core/src/main/java/org/pcap4j/core/PcapNetworkInterface.java]
Any ideas where to go from here?
I have already replaced, as you can see the WinPCAP with the latest version of
Npcap 1.20
> Add profinet-DCP
> ----------------
>
> Key: PLC4X-286
> URL: https://issues.apache.org/jira/browse/PLC4X-286
> Project: Apache PLC4X
> Issue Type: Improvement
> Components: Driver-Ethernet/IP, Driver-Profinet, Driver-S7
> Affects Versions: 0.9.0
> Reporter: Adrian Lazar
> Priority: Major
> Labels: beginner, feature, question
>
> I found some work done towards implementing the
> [profinet-DCP|https://profinetuniversity.com/naming-addressing/profinet-dcp/]
> protocol on the [feature/profinet
> branch|[https://github.com/apache/plc4x/tree/feature/profinet]].
> I see that the profinet protocol is not on the develop branch anymore, was it
> replaced with the s7 protocol?
> If someone would have the time to guide me, I could work on it to update,
> test, and bring this discovery feature to PLC4X.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)