-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hi,
I'm trying to show the mac address of the host in the line before the ip address.
I'm not an experienced C programmer so maybe I'm not in the right way.
I get a segmentation fault when I do a printf
code inside sni_handler:
struct ether_header *p;
printf("Source: %02X:%02X:%02X:%02X:%02X:%02X\n"
p->ether_shost[0], p->ether_shost[1], p->ether_shost[2],
p->ether_shost[3], p->ether_shost[4], p->ether_shost[5],
);
Looking at the definition of the ether_header in some other codes , I see sone difference in the types.
Is it possible to show how do I need to do to print de mac address correctly ?
thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels