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
e0bbada8
Commit
e0bbada8
authored
Jun 02, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Fix CONFIG_HIPPI build.
parent
3c54d14f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
48 deletions
+46
-48
drivers/net/net_init.c
drivers/net/net_init.c
+46
-48
No files found.
drivers/net/net_init.c
View file @
e0bbada8
...
@@ -307,6 +307,52 @@ static int hippi_mac_addr(struct net_device *dev, void *p)
...
@@ -307,6 +307,52 @@ static int hippi_mac_addr(struct net_device *dev, void *p)
return
0
;
return
0
;
}
}
static
int
hippi_neigh_setup_dev
(
struct
net_device
*
dev
,
struct
neigh_parms
*
p
)
{
/* Never send broadcast/multicast ARP messages */
p
->
mcast_probes
=
0
;
/* In IPv6 unicast probes are valid even on NBMA,
* because they are encapsulated in normal IPv6 protocol.
* Should be a generic flag.
*/
if
(
p
->
tbl
->
family
!=
AF_INET6
)
p
->
ucast_probes
=
0
;
return
0
;
}
static
void
hippi_setup
(
struct
net_device
*
dev
)
{
dev
->
set_multicast_list
=
NULL
;
dev
->
change_mtu
=
hippi_change_mtu
;
dev
->
hard_header
=
hippi_header
;
dev
->
rebuild_header
=
hippi_rebuild_header
;
dev
->
set_mac_address
=
hippi_mac_addr
;
dev
->
hard_header_parse
=
NULL
;
dev
->
hard_header_cache
=
NULL
;
dev
->
header_cache_update
=
NULL
;
dev
->
neigh_setup
=
hippi_neigh_setup_dev
;
/*
* We don't support HIPPI `ARP' for the time being, and probably
* never will unless someone else implements it. However we
* still need a fake ARPHRD to make ifconfig and friends play ball.
*/
dev
->
type
=
ARPHRD_HIPPI
;
dev
->
hard_header_len
=
HIPPI_HLEN
;
dev
->
mtu
=
65280
;
dev
->
addr_len
=
HIPPI_ALEN
;
dev
->
tx_queue_len
=
25
/* 5 */
;
memset
(
dev
->
broadcast
,
0xFF
,
HIPPI_ALEN
);
/*
* HIPPI doesn't support broadcast+multicast and we only use
* static ARP tables. ARP is disabled by hippi_neigh_setup_dev.
*/
dev
->
flags
=
0
;
}
/**
/**
* alloc_hippi_dev - Register HIPPI device
* alloc_hippi_dev - Register HIPPI device
* @sizeof_priv: Size of additional driver-private structure to be allocated
* @sizeof_priv: Size of additional driver-private structure to be allocated
...
@@ -326,20 +372,6 @@ struct net_device *alloc_hippi_dev(int sizeof_priv)
...
@@ -326,20 +372,6 @@ struct net_device *alloc_hippi_dev(int sizeof_priv)
EXPORT_SYMBOL
(
alloc_hippi_dev
);
EXPORT_SYMBOL
(
alloc_hippi_dev
);
static
int
hippi_neigh_setup_dev
(
struct
net_device
*
dev
,
struct
neigh_parms
*
p
)
{
/* Never send broadcast/multicast ARP messages */
p
->
mcast_probes
=
0
;
/* In IPv6 unicast probes are valid even on NBMA,
* because they are encapsulated in normal IPv6 protocol.
* Should be a generic flag.
*/
if
(
p
->
tbl
->
family
!=
AF_INET6
)
p
->
ucast_probes
=
0
;
return
0
;
}
#endif
/* CONFIG_HIPPI */
#endif
/* CONFIG_HIPPI */
void
ether_setup
(
struct
net_device
*
dev
)
void
ether_setup
(
struct
net_device
*
dev
)
...
@@ -396,40 +428,6 @@ EXPORT_SYMBOL(fddi_setup);
...
@@ -396,40 +428,6 @@ EXPORT_SYMBOL(fddi_setup);
#endif
/* CONFIG_FDDI */
#endif
/* CONFIG_FDDI */
#ifdef CONFIG_HIPPI
static
void
hippi_setup
(
struct
net_device
*
dev
)
{
dev
->
set_multicast_list
=
NULL
;
dev
->
change_mtu
=
hippi_change_mtu
;
dev
->
hard_header
=
hippi_header
;
dev
->
rebuild_header
=
hippi_rebuild_header
;
dev
->
set_mac_address
=
hippi_mac_addr
;
dev
->
hard_header_parse
=
NULL
;
dev
->
hard_header_cache
=
NULL
;
dev
->
header_cache_update
=
NULL
;
dev
->
neigh_setup
=
hippi_neigh_setup_dev
;
/*
* We don't support HIPPI `ARP' for the time being, and probably
* never will unless someone else implements it. However we
* still need a fake ARPHRD to make ifconfig and friends play ball.
*/
dev
->
type
=
ARPHRD_HIPPI
;
dev
->
hard_header_len
=
HIPPI_HLEN
;
dev
->
mtu
=
65280
;
dev
->
addr_len
=
HIPPI_ALEN
;
dev
->
tx_queue_len
=
25
/* 5 */
;
memset
(
dev
->
broadcast
,
0xFF
,
HIPPI_ALEN
);
/*
* HIPPI doesn't support broadcast+multicast and we only use
* static ARP tables. ARP is disabled by hippi_neigh_setup_dev.
*/
dev
->
flags
=
0
;
}
#endif
/* CONFIG_HIPPI */
#if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
#if defined(CONFIG_ATALK) || defined(CONFIG_ATALK_MODULE)
static
int
ltalk_change_mtu
(
struct
net_device
*
dev
,
int
mtu
)
static
int
ltalk_change_mtu
(
struct
net_device
*
dev
,
int
mtu
)
...
...
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