Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c6ccac36
Commit
c6ccac36
authored
Sep 28, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4]: Move some fib_semantics exports into fib_lookup.h
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
74855820
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
include/net/ip_fib.h
include/net/ip_fib.h
+1
-12
net/ipv4/fib_lookup.h
net/ipv4/fib_lookup.h
+14
-0
net/ipv4/fib_semantics.c
net/ipv4/fib_semantics.c
+2
-0
No files found.
include/net/ip_fib.h
View file @
c6ccac36
...
...
@@ -210,22 +210,11 @@ extern int fib_validate_source(u32 src, u32 dst, u8 tos, int oif,
extern
void
fib_select_multipath
(
const
struct
flowi
*
flp
,
struct
fib_result
*
res
);
/* Exported by fib_semantics.c */
extern
int
ip_fib_check_default
(
u32
gw
,
struct
net_device
*
dev
);
extern
void
fib_release_info
(
struct
fib_info
*
);
extern
int
fib_semantic_match
(
int
type
,
struct
fib_info
*
,
const
struct
flowi
*
,
struct
fib_result
*
);
extern
struct
fib_info
*
fib_create_info
(
const
struct
rtmsg
*
r
,
struct
kern_rta
*
rta
,
const
struct
nlmsghdr
*
,
int
*
err
);
extern
int
fib_nh_match
(
struct
rtmsg
*
r
,
struct
nlmsghdr
*
,
struct
kern_rta
*
rta
,
struct
fib_info
*
fi
);
extern
int
fib_dump_info
(
struct
sk_buff
*
skb
,
u32
pid
,
u32
seq
,
int
event
,
u8
tb_id
,
u8
type
,
u8
scope
,
void
*
dst
,
int
dst_len
,
u8
tos
,
struct
fib_info
*
fi
);
extern
int
ip_fib_check_default
(
u32
gw
,
struct
net_device
*
dev
);
extern
int
fib_sync_down
(
u32
local
,
struct
net_device
*
dev
,
int
force
);
extern
int
fib_sync_up
(
struct
net_device
*
dev
);
extern
int
fib_convert_rtentry
(
int
cmd
,
struct
nlmsghdr
*
nl
,
struct
rtmsg
*
rtm
,
struct
kern_rta
*
rta
,
struct
rtentry
*
r
);
extern
void
fib_node_seq_show
(
struct
seq_file
*
seq
,
int
type
,
int
dead
,
struct
fib_info
*
fi
,
u32
prefix
,
u32
mask
);
extern
u32
__fib_res_prefsrc
(
struct
fib_result
*
res
);
/* Exported by fib_hash.c */
...
...
net/ipv4/fib_lookup.h
View file @
c6ccac36
...
...
@@ -16,4 +16,18 @@ struct fib_alias {
#define FA_S_ACCESSED 0x01
/* Exported by fib_semantics.c */
extern
int
fib_semantic_match
(
int
type
,
struct
fib_info
*
,
const
struct
flowi
*
,
struct
fib_result
*
);
extern
void
fib_release_info
(
struct
fib_info
*
);
extern
struct
fib_info
*
fib_create_info
(
const
struct
rtmsg
*
r
,
struct
kern_rta
*
rta
,
const
struct
nlmsghdr
*
,
int
*
err
);
extern
int
fib_nh_match
(
struct
rtmsg
*
r
,
struct
nlmsghdr
*
,
struct
kern_rta
*
rta
,
struct
fib_info
*
fi
);
extern
int
fib_dump_info
(
struct
sk_buff
*
skb
,
u32
pid
,
u32
seq
,
int
event
,
u8
tb_id
,
u8
type
,
u8
scope
,
void
*
dst
,
int
dst_len
,
u8
tos
,
struct
fib_info
*
fi
);
#endif
/* _FIB_LOOKUP_H */
net/ipv4/fib_semantics.c
View file @
c6ccac36
...
...
@@ -43,6 +43,8 @@
#include <net/sock.h>
#include <net/ip_fib.h>
#include "fib_lookup.h"
#define FSprintk(a...)
static
rwlock_t
fib_info_lock
=
RW_LOCK_UNLOCKED
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment