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

默默的一块石头

文章分类

全部博文(124)

文章存档

2022年(26)

2021年(10)

2020年(28)

2019年(60)

我的朋友

发布时间:2022-07-07 17:01:40

ipv4的情况下:ping 10.10.200.10 -c 8ip_finish_output2()-->___neigh_create()-->arp_constructor()static int arp_constructor(struct neighbour *neigh){ ...... if (!dev->header_ops) { neigh->nud_state = NUD_NOARP; neigh->ops = &arp_direct_ops; neigh->output = neigh_direct_output; } ..........【阅读全文】

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

发布时间:2022-07-06 16:45:05

ipip rcv:static int ipip_tunnel_rcv(struct sk_buff *skb, u8 ipproto){ struct net *net = dev_net(skb->dev); struct ip_tunnel_net *itn = net_generic(net, ipip_net_id); struct metadata_dst *tun_dst = NULL; struct ip_tunnel *tunnel; const struct iphdr *iph; printk("ipip_tunnel_rcv() 219! ip_h.........【阅读全文】

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

发布时间:2022-07-05 16:51:49

实验环境:Ubuntu 18.04 Linux:5.4.1ipip实验环境设定:ipip.ship netns add ns1ip netns add ns2ip link add v1 type veth peer name v1_rip link add v2 type veth peer name v2_rip link set v1 netns ns1ip link set v2 netns ns2ip a a 10.10.10.1/24 dev v1_rip l s v1_r upip a a 10.10.20.1/24 dev v2_.........【阅读全文】

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

发布时间:2022-07-01 14:26:51

路由器主要是实现不同网段的互联互通。结合下图的意义就是:让192.168.1.1与192.168.2.1网段实现互联互通。IPVLAN L3接下来的步骤与二相似# 创建网络空间ip netns add net1ip netns add net2# 创建子接口ip link add ipvlan1 link ens32 type ipvlan mode.........【阅读全文】

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

发布时间:2022-02-16 11:45:46

1.插入struct proto tcp_prot = { .name = "TCP", .owner = THIS_MODULE, .hash = inet_hash,}Feb 16 10:26:36 chro kernel: [   14.108487]  __inet_hash+0x7d/0x2f0Feb 16 10:26:36 chro kernel: [   14.108488]  inet_hash+0x28/0x50Feb 16 10:26:36 chro kernel: [   .........【阅读全文】

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

登录 注册