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

[altq 479] Re: Question about implementing FRED in altq (fwd)




thomas chin-chung to wrote:
> I sent the following email few months ago to ask for help. Right now,
> my implemented FRED has a problem, and I suspect that the problem is
> related to the questions I asked in the following email.  Can someone 
> please help me to answer the following questions ?

[snip]

> Question:  Is there a way I can retrieve the choesn packet's IP source and
> destination addressess from this mbuf structure ? 

The flowvalve extension in altq_red.c does have a similar code that
keeps track of src&dst address pairs.
Take a look at flowlist_lookup() in altq_red.c.  A pointer to the IP
header is passed in struct pr_hdr (defined in if_altq.h).

-Kenjiro