Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Auf ARP-Paket reagieren (MFC)

Empfohlene Antworten

Liebe Gemeinde,

ich habe einen Comserver (Seriell Device Server) der beim Anschliessen an Netzwerk folgendes Gratuitous ARP Paket sendet.

No.     Time        Source                Destination           Protocol Info

     14 17.579638   Wieseman_03:28:5d     Broadcast             ARP      Who has 192.168.100.100?  Gratuitous ARP


Frame 14 (60 bytes on wire, 60 bytes captured)

    Arrival Time: Jun 25, 2007 10:19:43.840493000

    Time delta from previous packet: 0.722958000 seconds

    Time since reference or first frame: 17.579638000 seconds

    Frame Number: 14

    Packet Length: 60 bytes

    Capture Length: 60 bytes

    Protocols in frame: eth:arp

    Coloring Rule Name: ARP

    Coloring Rule String: arp

Ethernet II, Src: Wieseman_03:28:5d (00:c0:3d:03:28:5d), Dst: Broadcast (ff:ff:ff:ff:ff:ff)

    Destination: Broadcast (ff:ff:ff:ff:ff:ff)

        Address: Broadcast (ff:ff:ff:ff:ff:ff)

        .... ...1 .... .... .... .... = Multicast: This is a MULTICAST frame

        .... ..1. .... .... .... .... = Locally Administrated Address: This is NOT a factory default address

    Source: Wieseman_03:28:5d (00:c0:3d:03:28:5d)

        Address: Wieseman_03:28:5d (00:c0:3d:03:28:5d)

        .... ...0 .... .... .... .... = Multicast: This is a UNICAST frame

        .... ..0. .... .... .... .... = Locally Administrated Address: This is a FACTORY DEFAULT address

    Type: ARP (0x0806)

    Trailer: 000000000000000000000000000000000000

Address Resolution Protocol (request/gratuitous ARP)

    Hardware type: Ethernet (0x0001)

    Protocol type: IP (0x0800)

    Hardware size: 6

    Protocol size: 4

    Opcode: request (0x0001)

    Sender MAC address: Wieseman_03:28:5d (00:c0:3d:03:28:5d)

    Sender IP address: 192.168.100.100 (192.168.100.100)

    Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00)

    Target IP address: 192.168.100.100 (192.168.100.100)

Das ist das Paket mit Etherreal aufgezeichnet.

Ich würde gerne mit meinen Programm auf dieses Paket reagieren, ich muss

also lauschen ob ein Solcher Broadcast erfolgt. Wie kann ich das bewerkstelligen, ich such nach einer Lösung auf Basis von MFC (<- keine Diskussion bitte) falls es diese gibt. Die bisherige Netzwerkfunktionalität ist

auch mit CAsyncSock aufgebaut.

Die Fragen die sich mir stellen woran und worauf mus ich horchen?

Wie baue ich den Socket auf für diesen Fall?

TinTin

Ok,

ARP Pakete sin wohl keine IP Pakete, dann kann man das mit 'normalen Sockets'

knicken. Ich hab jetzt was gefunden. mit der WinPcap Lib scheint es wohl zu

gehen. Schande meiner Unwissenheit. Hat jemand überhaupt schon Erfahrung

mit dem Beschnüffeln von Paketen?

TinTin

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.