[ixp1200] how to extract the src & dest address....

nitin makhija makhija_nitin at rediffmail.com
Fri Jul 30 16:03:03 EDT 2004


  

Hellow,
i'm trying to run the example program of chapter-8 of book by Eric Johnson, but getting the following error's during compilation:

Compiling for bridging-latency.list...
C:\IXP1200_Programming CD\Chapter08\bridging-latency.c(51): error :  intrinsic data buffer "hashInputSrc_93$1$1" cannot be read
C:\IXP1200_Programming CD\Chapter08\bridging-latency.c(66): error :  intrinsic data buffer "hashInputDst_93$1$1" cannot be read

i have even checked "ixp.h" file and there too first parameter to teh hash func. is the input value....


and also  cd anyone tell me how can i extract the destination & source ip adress frm the received pkt's....i have the starting adress of sdram where tht pkt. is stored???

i was tring out this....
where buf_handle is the starting adress
iphead is the pointer to a structure which has 2 unsigned integer as members..

sdram_read(__declspec(sdram_read_reg) *iphead,volatile __declspec(sdram) * (buf_handle + 2) ,1,queue_default,ctx_swap);	 

but this code is also giving an error....
\Study\Project_IXP\test_nitin\Chapter05\receive.c(206): error :  expected an expression


actually i want to extract src & dest. IP address alongwd. the port numbers.....and not able to do tht......if anyone of u know ...do help me out
Regards,
Nitin Makhija



More information about the ixp1200 mailing list