Enjoy ;) CSE 58x Network Practicum: Assignment 2: Modify the packet counter you compiled in assignment 1 to count Ethernet, ARP, IP, ICMP, UDP, TCP and web (TCP Port 80) traffic. Output of your program should look similar to this: Packets on port 0 = 535 Packets on port 1 = 1082 ARP Packets on port 0 = 21 ARP Packets on port 1 = 21 IP Packets on port 0 = 514 IP Packets on port 1 = 1061 ICMP Packets on port 0 = 8 ICMP Packets on port 1 = 4 UDP Packets on port 0 = 413 UDP Packets on port 1 = 548 TCP Packets on port 0 = 93 TCP Packets on port 1 = 509 WWW Packets on port 0 = 54 WWW Packets on port 1 = 233 Total count of packets=1617 Some Hints & Notes: It is only necessary to modify two files for this assignment. You may modify others if you wish. Ace Code: /opt/ixasdk/src/microace/aces/tutorial1/count_ace1/source/init.c Microcode: /opt/ixasdk/src/microace/projects/Count_8_1/Count.uc In my solution to this assignment, the following are the all the primitives I used. You may use any primitives which you choose. (Just for fun, if your solution uses other primitives, let us know which ones you used, and why) Intrinsics: #define .local .endlocal Macros: Buf_GetData DL_GetBufferOffset Count_IncrementPacketCounter Instructions: alu alu_shf xbuf_alloc sdram ctx_arb xbuf_extract xbuf_free immed32 alu br Make sure to note that the IP header is variable length. Your code should take this into account. You are responsible for constructing a demo in which you demonstrate that your solution works. You may use the packet generator you used for assignment #1. -- Francis francis@{cse.ogi.edu, francischang.com} OGI School of Science & Engineering at OHSU, SySL Labs (503) 332-4850 FAX:(503) 748-1553 ------------------------ Yahoo! Groups Sponsor ---------------------~--> Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying! http://us.click.yahoo.com/yMx78A/fNtFAA/i5gGAA/BcXolB/TM ---------------------------------------------------------------------~-> To unsubscribe from this group, send an email to: ogi-cse58x-unsubscribe@yahoogroups.com Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/