Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ab889e66
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ab889e66
编写于
2月 11, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'batman-adv/next' of
git://git.open-mesh.org/ecsv/linux-merge
上级
dcf96f1f
3878f1f0
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
7 addition
and
26 deletion
+7
-26
net/batman-adv/icmp_socket.c
net/batman-adv/icmp_socket.c
+0
-1
net/batman-adv/icmp_socket.h
net/batman-adv/icmp_socket.h
+0
-2
net/batman-adv/main.c
net/batman-adv/main.c
+0
-1
net/batman-adv/routing.c
net/batman-adv/routing.c
+0
-1
net/batman-adv/routing.h
net/batman-adv/routing.h
+0
-2
net/batman-adv/send.c
net/batman-adv/send.c
+0
-1
net/batman-adv/send.h
net/batman-adv/send.h
+0
-2
net/batman-adv/soft-interface.c
net/batman-adv/soft-interface.c
+0
-1
net/batman-adv/translation-table.c
net/batman-adv/translation-table.c
+0
-1
net/batman-adv/translation-table.h
net/batman-adv/translation-table.h
+0
-2
net/batman-adv/unicast.c
net/batman-adv/unicast.c
+7
-12
未找到文件。
net/batman-adv/icmp_socket.c
浏览文件 @
ab889e66
...
...
@@ -24,7 +24,6 @@
#include <linux/slab.h>
#include "icmp_socket.h"
#include "send.h"
#include "types.h"
#include "hash.h"
#include "originator.h"
#include "hard-interface.h"
...
...
net/batman-adv/icmp_socket.h
浏览文件 @
ab889e66
...
...
@@ -22,8 +22,6 @@
#ifndef _NET_BATMAN_ADV_ICMP_SOCKET_H_
#define _NET_BATMAN_ADV_ICMP_SOCKET_H_
#include "types.h"
#define ICMP_SOCKET "socket"
void
bat_socket_init
(
void
);
...
...
net/batman-adv/main.c
浏览文件 @
ab889e66
...
...
@@ -30,7 +30,6 @@
#include "translation-table.h"
#include "hard-interface.h"
#include "gateway_client.h"
#include "types.h"
#include "vis.h"
#include "hash.h"
...
...
net/batman-adv/routing.c
浏览文件 @
ab889e66
...
...
@@ -28,7 +28,6 @@
#include "icmp_socket.h"
#include "translation-table.h"
#include "originator.h"
#include "types.h"
#include "ring_buffer.h"
#include "vis.h"
#include "aggregation.h"
...
...
net/batman-adv/routing.h
浏览文件 @
ab889e66
...
...
@@ -22,8 +22,6 @@
#ifndef _NET_BATMAN_ADV_ROUTING_H_
#define _NET_BATMAN_ADV_ROUTING_H_
#include "types.h"
void
slide_own_bcast_window
(
struct
batman_if
*
batman_if
);
void
receive_bat_packet
(
struct
ethhdr
*
ethhdr
,
struct
batman_packet
*
batman_packet
,
...
...
net/batman-adv/send.c
浏览文件 @
ab889e66
...
...
@@ -25,7 +25,6 @@
#include "translation-table.h"
#include "soft-interface.h"
#include "hard-interface.h"
#include "types.h"
#include "vis.h"
#include "aggregation.h"
#include "gateway_common.h"
...
...
net/batman-adv/send.h
浏览文件 @
ab889e66
...
...
@@ -22,8 +22,6 @@
#ifndef _NET_BATMAN_ADV_SEND_H_
#define _NET_BATMAN_ADV_SEND_H_
#include "types.h"
int
send_skb_packet
(
struct
sk_buff
*
skb
,
struct
batman_if
*
batman_if
,
uint8_t
*
dst_addr
);
...
...
net/batman-adv/soft-interface.c
浏览文件 @
ab889e66
...
...
@@ -26,7 +26,6 @@
#include "send.h"
#include "bat_debugfs.h"
#include "translation-table.h"
#include "types.h"
#include "hash.h"
#include "gateway_common.h"
#include "gateway_client.h"
...
...
net/batman-adv/translation-table.c
浏览文件 @
ab889e66
...
...
@@ -22,7 +22,6 @@
#include "main.h"
#include "translation-table.h"
#include "soft-interface.h"
#include "types.h"
#include "hash.h"
#include "originator.h"
...
...
net/batman-adv/translation-table.h
浏览文件 @
ab889e66
...
...
@@ -22,8 +22,6 @@
#ifndef _NET_BATMAN_ADV_TRANSLATION_TABLE_H_
#define _NET_BATMAN_ADV_TRANSLATION_TABLE_H_
#include "types.h"
int
hna_local_init
(
struct
bat_priv
*
bat_priv
);
void
hna_local_add
(
struct
net_device
*
soft_iface
,
uint8_t
*
addr
);
void
hna_local_remove
(
struct
bat_priv
*
bat_priv
,
...
...
net/batman-adv/unicast.c
浏览文件 @
ab889e66
...
...
@@ -39,8 +39,8 @@ static struct sk_buff *frag_merge_packet(struct list_head *head,
(
struct
unicast_frag_packet
*
)
skb
->
data
;
struct
sk_buff
*
tmp_skb
;
struct
unicast_packet
*
unicast_packet
;
int
hdr_len
=
sizeof
(
struct
unicast_packet
)
,
uni_diff
=
sizeof
(
struct
unicast_frag_packet
)
-
hdr_len
;
int
hdr_len
=
sizeof
(
struct
unicast_packet
)
;
int
uni_diff
=
sizeof
(
struct
unicast_frag_packet
)
-
hdr_len
;
/* set skb to the first part and tmp_skb to the second part */
if
(
up
->
flags
&
UNI_FRAG_HEAD
)
{
...
...
@@ -231,6 +231,7 @@ int frag_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv,
int
ucf_hdr_len
=
sizeof
(
struct
unicast_frag_packet
);
int
data_len
=
skb
->
len
-
uc_hdr_len
;
int
large_tail
=
0
;
uint16_t
seqno
;
if
(
!
bat_priv
->
primary_if
)
goto
dropped
;
...
...
@@ -266,10 +267,9 @@ int frag_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv,
frag1
->
flags
=
UNI_FRAG_HEAD
|
large_tail
;
frag2
->
flags
=
large_tail
;
frag1
->
seqno
=
htons
((
uint16_t
)
atomic_inc_return
(
&
batman_if
->
frag_seqno
));
frag2
->
seqno
=
htons
((
uint16_t
)
atomic_inc_return
(
&
batman_if
->
frag_seqno
));
seqno
=
atomic_add_return
(
2
,
&
batman_if
->
frag_seqno
);
frag1
->
seqno
=
htons
(
seqno
-
1
);
frag2
->
seqno
=
htons
(
seqno
);
send_skb_packet
(
skb
,
batman_if
,
dstaddr
);
send_skb_packet
(
frag_skb
,
batman_if
,
dstaddr
);
...
...
@@ -286,7 +286,7 @@ int unicast_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv)
{
struct
ethhdr
*
ethhdr
=
(
struct
ethhdr
*
)
skb
->
data
;
struct
unicast_packet
*
unicast_packet
;
struct
orig_node
*
orig_node
;
struct
orig_node
*
orig_node
=
NULL
;
struct
batman_if
*
batman_if
;
struct
neigh_node
*
router
;
int
data_len
=
skb
->
len
;
...
...
@@ -297,11 +297,6 @@ int unicast_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv)
/* get routing information */
if
(
is_multicast_ether_addr
(
ethhdr
->
h_dest
))
orig_node
=
(
struct
orig_node
*
)
gw_get_selected
(
bat_priv
);
else
orig_node
=
((
struct
orig_node
*
)
hash_find
(
bat_priv
->
orig_hash
,
compare_orig
,
choose_orig
,
ethhdr
->
h_dest
));
/* check for hna host */
if
(
!
orig_node
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录