Hello all:
I am not sure if this is the right mailing list, but in any case...
Now UDP works over CLIP (classical IP over ATM) except for the following:
The following function in clip.c:
static int clip_start_xmit(struct sk_buff *skb,struct device *dev)
{
struct atmarp_entry *entry;
/* I added this one after the initial checks...*/
if (skb->nh.iph->protocol==IPPROTO_UDP)
{
int len;
printk(" UDP Packet: \n");
len = sizeof(struct udphdr);
for (i=0; i < len; i++)
printk("%x ",(char)((skb->h.uh)+i));
dest_port = skb->h.uh->dest;
}
else if (skb->nh.iph->protocol==IPPROTO_TCP)
dest_port = skb->h.th->dest;
.
.
.
I tried printing the contents of the packet:
Here is what it prints:
UDP Packet:
ffffffb0 ffffffb8 ffffffc0 ffffffc8 ffffffd0 ffffffd8 ffffffe0 ffffffe8
In fact, everytime I run the program, a different value is getting
printed.My source and destination UDP ports (that I specify in the
application and which work) are both 5051. However this is different from
the contents of the UDP packet (__u16 source, __u16 dest, __u16 len,
__u16 check).
Any help would be highly appreciated.
Thanks,
Sarav
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]