projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0bd85
)
Remove unused variable
author
Alan T. DeKok
<aland@freeradius.org>
Sat, 2 Mar 2013 20:45:53 +0000
(12:45 -0800)
committer
Alan T. DeKok
<aland@freeradius.org>
Sat, 2 Mar 2013 20:56:15 +0000
(12:56 -0800)
src/main/radsniff.c
patch
|
blob
|
history
diff --git
a/src/main/radsniff.c
b/src/main/radsniff.c
index
5eeef50
..
1b997fb
100644
(file)
--- a/
src/main/radsniff.c
+++ b/
src/main/radsniff.c
@@
-208,7
+208,6
@@
static void got_packet(UNUSED uint8_t *args, const struct pcap_pkthdr *header, c
/*
* Define pointers for packet's attributes
*/
- const struct ethernet_header *ethernet; /* The ethernet header */
const struct ip_header *ip; /* The IP header */
const struct udp_header *udp; /* The UDP header */
const uint8_t *payload; /* Packet payload */
@@
-235,7
+234,6
@@
static void got_packet(UNUSED uint8_t *args, const struct pcap_pkthdr *header, c
ip = (const struct ip_header*) (data + 4);
} else {
- ethernet = (const struct ethernet_header*)(data);
ip = (const struct ip_header*)(data + size_ethernet);
}