lkml.org 
[lkml]   [2002]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Fwd: HDLC driver: Frame-relay Inverse ARP]
Greetings,

Livio Ceci <livio@cyclades.com.br> :
[rfc2390 for linux fr]
> I attached a diff file with the changes I did, and also the sethdlc.
> Please analyse them and send me back your comments, and if possible,
> something that help me to "fill the blanks" I left as ??? in the code.

May be something like this:
net/ipv4/arp.c
/*
* Special case: We must set Frame Relay source Q.922 address
*/
if (dev_type == ARPHRD_DLCI) {
sha = dev->broadcast;
if (arp->ar_op == __constant_htons(ARPOP_InREQUEST)) {
/*
* Use fib_lookup in order to comply with
* address selection in rfc2390 - 7.1 and
* set tip consequently
*/
...
} else if (arp->ar_op == __constant_htons(ARPOP_InREPLY))
arp->ar_op = ARPOP_REPLY;
}

Then one forces ARPOP_InREQUEST to follow the same path as ARPOP_REQUEST,
arp_send(ARPOP_InREPLY,...) being the sole difference.
^^
Remarks ?

--
Ueimor
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:1.001 / U:0.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site