Question: C Code, Datalink Layer: Receive a frame and send to network layer? Overall: Need to create and send a message through a network layer, data
C Code, Datalink Layer: Receive a frame and send to network layer?
Overall: Need to create and send a message through a network layer, data link layer and physical layer.
No clue where to start. I belive sockfd is involved, bzero buffer, pthread_t pth, and n = write(newsockfd);
Code so far:

23 the thread function that receives frames from the wiresocket and sends packets to the network Layer 25 24 void rcvfromwiresend2network_laer (char 'argv[] 26 frame incoming_frame 27 packet outgoing packet; 28 29 while (1) 30 add codes receive a frame from wire 36 37 38 39L *add codes to send the included packet to the network Layer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
