Chinaunix首页 | 论坛 | 博客
  • 博客访问: 401123
  • 博文数量: 124
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 872
  • 用 户 组: 普通用户
  • 注册时间: 2018-03-29 14:38
个人简介

默默的一块石头

文章分类

全部博文(124)

文章存档

2022年(26)

2021年(10)

2020年(28)

2019年(60)

我的朋友

发布时间: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.........【阅读全文】

阅读(5609) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(5604) | 评论(0) | 转发(0)

发布时间: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.........【阅读全文】

阅读(5513) | 评论(0) | 转发(0)

发布时间:2019-11-18 20:03:46

本文介绍了ip选项的相关知识,并详细分析了主机设置ip选项到发送syn包connect的过程,本文分析的内核版本是 linux-2.6.18-194......【阅读全文】

阅读(1742) | 评论(0) | 转发(0)

发布时间:2019-11-18 17:16:01

发送TCP数据包    与UDP一样,要从用户控件中创建的TCP套接字发送数据包,可使用多个系统调用,包括:send()、sendto()、sendmsg()和write()。这些系统调用最终都由方法tcp_sendmsg()(net/ipv4/tcp.c)来处理。它将来自用户空间的有效负载复制到内核,并将其作为TCP数据段进行发送。这个方法比方法udp_sendmsg(.........【阅读全文】

阅读(2538) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册