Pages

Sneak Peek - T minus 2

Friday came and went and we got so buried into the submission work that this post almost didn't happen until Ramya - the rockstar coder of our team - made a mention.

So where are we?
The first hello packet is now received by the controller and a hello reply sent out. It's alive!!!!

Some interesting challenges we have been working on:
1. lots of zero sized packets received on sockets - what is the source? are these tcp control packets and if so, why are they punted up? often, read_len is zero even with valid message in the buffer.

2. a change in version of library make the .so suddenly unusable by the application. Why? This is the suspicious diff:

edeedhu@ubuntu:~/edeedhu-git/CC-ONF-driver$ git diff Makefile
diff --git a/Makefile b/Makefile
index fbd20f4..432766f 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ CC     := gcc
 LDFLAGS := -shared
 LIBS   := $(shell pkg-config --libs glib-2.0)
 RM     := rm -f
-MAJOR_VERSION := 0
+MAJOR_VERSION := 1
 MINOR_VERSION := 0

3. what is a good method to manually do a static analysis for synchronization? Here's what I came up with - xml style markeup to follow different codepaths and track locking/unlocking of mutexes. How would you have done it?


















Now on to some gdb work.