默默的一块石头
发布时间:2019-11-20 14:30:12
the rest of this page will walk through what the skb data area looks like in a newly allocated skb. how to modify those pointers to add headers, add user data, and pop headers.as you can see, the head, data, and tail pointers all point to the beginning of the data buffer. and the end pointer.........
发布时间:2019-11-19 19:16:10
1.setsockopt/* * set a socket option. because we don't know the option lengths we have * to pass the user mode parameter for the protocols to sort out. */syscall_define5(setsockopt, int, fd, int, level, int, optname, char __user *, optval, int, optlen){ ...... if (level == so.........
发布时间:2019-11-19 15:50:26
使用socket(af_inet, sock_stream, 0)创建socket/* upon startup we insert all the elements in inetsw_array[] into * the linked list inetsw. */static struct inet_protosw inetsw_array[] ={ { .type = sock_stream, .protocol = ipproto_tcp, .prot =&nbs.........
发布时间:2019-11-18 20:03:46
本文介绍了ip选项的相关知识,并详细分析了主机设置ip选项到发送syn包connect的过程,本文分析的内核版本是 linux-2.6.18-194......
发布时间:2019-11-18 17:16:01
发送tcp数据包 与udp一样,要从用户控件中创建的tcp套接字发送数据包,可使用多个系统调用,包括:send()、sendto()、sendmsg()和write()。这些系统调用最终都由方法tcp_sendmsg()(net/ipv4/tcp.c)来处理。它将来自用户空间的有效负载复制到内核,并将其作为tcp数据段进行发送。这个方法比方法udp_sendmsg(.........