I was wondering how to pass this struct through a function since this is a linux struct im really lost for words how to do it in C because i get random errors when i do it and the only way i can successfully do it is
Code:
void FrameSend(struct sockaddr_ll socket_address, int sent, int length);
But i read you shouldnt be able to do that with a struct in front of the sockaddr_ll
if i try to put it in a header file the function i get
EthServ.h:8: warning: ‘struct sockaddr_ll’ declared inside parameter list
EthServ.h:8: warning: its scope is only this definition or declaration, which is probably not what you want

if i take away the struct i get
server.c:80: error: expected declaration specifiers or ‘...’ before ‘sockaddr_ll’

Whats the deal?