Computer Science 853 Quiz 3 Name _________________ 1. Suppose I create a socket using: s = socket(PF_INET, SOCK_COP, IPPROTO_COP); Describe how your struct proto will be located and linked to your struct sock. Include a diagram showing all relevant data structures and the linkages between them 2. Suppose I call bind using: err = bind(s, &name, sizeof(name)); To determine whether or not you provided a bind function it will be necessary for the kernel to find your struct proto Include a diagram showing ALL RELEVANT data structures and the linkages between them showing how the value "s" is sufficient to find your struct proto. 3. The routing mechanism is invoked a. during bind b. during connect c. during both d. during neither 4. In UDP the hash queue on which a struct sock resides is derived from a. local IP addr b. remote IP addr c. local port number d. remote port number 5. What is the name of the structure that contains a POINTER TO the table by which read() and write() functions on sockets are vectored to the appropriate handler. 6. During a UDP connect operation a. If the socket is not already b. Any existing bind status is bound inet_autobind() is reset to null called to bind it. c. The bind status is not altered. 7. During a UDP bind operation a. If the socket is not already b. Any existing connection is connected inet_autoconn() is reset to null. called to connect it. c. The connection status is not altered. 8. For a UDP struct sock what is the difference in the use of saddr and rcv_saddr elements? a. saddr b. rcv_saddr 9. If you fail to provide a disconnect function in your protocol, how can a hacker cause your system to crash?