Hi
[1] I am using batmand, I have added the following field to the orig_node struct in batman.h:
char * mac_addr;
[2] In get_orig_node() in originator.c:
orig_node->mac_addr = (char *)malloc(30 * sizeof(char)); memset(orig_node->mac_addr, 0, 30);
[3] Problem: When I update this field in isbidirectional() in batman.c:
memcpy(orig_neigh_node->mac_addr, mac_addr_1, strlen(mac_addr_1));
it updates the field fine, but it does not persist, that is to say that after receiving another OGM from the same station, orig_neigh_node->mac_addr is empty. I dont understand why this should be happening.
Thanks
Dominic UCT, SA