[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] MAC_BROADCAST




Just try setting the mac destination address to
MAC_BROADCAST

hdr_mac->macDA_ = MAC_BROADCAST

This should take care of mac broadcast.

Hope this helps,
Sridhar Gurivireddy


Sagnik Bhattacharya wrote:

> I am trying to get my agent at a node to send a packet to all nodes in its
> broadcast radius. My agent runs on top of DSDV routing and 802.11 MAC. I
> did
>
> hdr_ip * iph = HDR_IP(pkt);
> hdr_cmn *cmh = HDR_CMN(pkt);
>
> cmh->next_hop() = MAC_BROADCAST;
> cmh->addr_type() = NS_AF_ILINK;
>
> iph->src_ = here_;
> iph->dst_.addr_ = MAC_BROADCAST;
> iph->dst_.port_ = here_.port_;
>
> But the agents at nodes in its radius are not receiving the packet. I saw
> a similar query in the list, but there wasn't any reply. Can anyone help?
>
> Sagnik

--
Sridhar Guriviredddy,
Mobile IP & 3GPP2 case
Network Strategic Group,
Alcatel, Richardson, TX-75080

Ph:  972.996.2048 (o) 972.897.7025(M) 972.671.7437(H)