[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] RE: Multicast destination address in UDP callback?
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] RE: Multicast destination address in UDP callback? |
Date: |
Fri, 30 Apr 2010 08:12:36 +0200 |
Joe Dupre wrote:
> > I have set up a UDP PCB where I listen to several multicast groups.
> > In my UDP callback I'd like to know which multicast group the packet
> > was sent to.
> > How do I determine this?
Use ip_current_header() to get the IP header of the current packet while you
are inside your recv-callback function. Using pbuf_header() might or might work
but is not the correct way to do this.
Simon
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01