Finding the Sender's IP Address of Every Frame Received at the MAC-Level
"Siva Sivavakeesar" <[email protected]>
| Newsgroups | gmane.linux.drivers.ipw2100.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello there,
I have been using IPW2200 for my testbed experiments, and for this
purpose I downloaded, compiled and installed the latest important
modules of ieee80211 and the relevant driver module. I have got
around with most of the problems that I encountered during my IPW2200
based Wireless testbed experiments. However, I have been having
trouble finding the received packet's IP and MAC address together.
Although conceptually wrong, I am trying to get the sender's IP
address for every packet a node receives at the MAC (driver) level.
For this purpose, I have added the follwing code under ipw_rx() of
ipw2200.c.
static void ipw_rx(struct ipw_priv *priv)
{ .
:
struct iphdr *iph;
.
:
iph = (struct iphdr *) rxb->skb->nh.iph;
if (iph != NULL) {
saddr = iph->saddr;
}
.
:
}
However, since "iph" always returns NULL, I am not able to find the
sender's IP address of a packet/frame received. Can you please let me
know whether accessing the IPHdr information is possible at the driver
(MAC) level. If not, how can I get around with this problem.
Thanks in advance for taking your invaluable time to answer my question.
Best Regards,
Siva
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV