Networking Forums

Networking Forums > Computer Networking > Linux Networking > arp_create arguments

Reply
Thread Tools Display Modes

arp_create arguments

 
 
Bill
Guest
Posts: n/a

 
      03-27-2008, 01:30 AM
I am writing a Linux 2.6.10 device driver running on an MPC8248
processor and am having difficulty sending an ARP response to the
kernel.

#1 sent an ARP request to #2. #2 responded back to #1 with it's
hardware address. So, I have #1's IP & hardware address and #2's IP
and hardware address. I am on #1 and am calling arp_create to get an
sk_buff to send to the kernel using netif_rx.

The declaration for arp_create is:

struct sk_buff *arp_create(int type, int ptype, u32 dest_ip,
struct net_device *dev, u32 src_ip,
unsigned char *dest_hw, unsigned char *src_hw,
unsigned char *target_hw)


I think I have the 1st (type), 2nd (ptype) , and 4th (dev) arguments
correct:

arp_create(ARPOP_REPLY, ETH_P_ARP, dest, dev, src_ip, dest_hw, src_hw,
target_hw)

Specifically:

Is "dest" #1's or #2's IP address?
Is "src_ip" #1's or #2's IP address?
Is "dest_hw" #1's or #2's hardware address?
Is "src_hw" #1's or #2's hardware address?
Is "target_hw" #1's or #2's hardware address?

Thank you.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Continuous arguments with Orange Big Brian Broadband 8 09-04-2006 06:32 PM
Local forwarding with "iptables" gives "invalid arguments" newsfuzzy@geekmail.de Linux Networking 0 07-19-2006 02:47 PM



1 2 3 4 5 6 7 8 9 10 11