I wrote a linux raw socket code that can send and recieve file by network interface directly without ip.how can I port it into Freebsd
there is no "ETH_P_ALL" macro and "struct sockaddr_ll" defined in Freebsd.what can intead of them in Freebsd.I also attached all of the source code that can make directly in linux.
there is no "ETH_P_ALL" macro and "struct sockaddr_ll" defined in Freebsd.what can intead of them in Freebsd.I also attached all of the source code that can make directly in linux.