How to compare and save arrays in a list as arrays?

I have the following source code. I have been able to compare the IP address from the buffer but now I would like to save the IP address to a list if I already don’t have it in my list. As of now after compiling it give me the error: udp-server.c:175:3: error: subscripted value is neither array nor pointer nor vector.

What am I doing wrong and how can I solve this?

udp-server-edit.c (5.72 KB)

Shitcan that stupid CMP6ADDR macro NOW!

memcmp() can be used to compare blocks of memory (aka arrays).

Ditch the stupid PRINTF macro. It accomplishes NOTHING!

Ditch the stupid COPY6ADDR macro. Use memcpy()!

There are 171 lines in that file. How can you possibly be getting an error on line 175?

PaulS: There are 171 lines in that file. How can you possibly be getting an error on line 175?

Because the stupid line numbers refer to the code that was compiled, not the code you wrote. After the IDE gets finished dressing it up for you and all those macros get expanded there are likely more than 175 lines.