Subversion Repositories HelenOS

Rev

Rev 4197 | Rev 4307 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4197 Rev 4261
Line 42... Line 42...
42
#include "../../err.h"
42
#include "../../err.h"
43
#include "../../modules.h"
43
#include "../../modules.h"
44
 
44
 
45
#include "../../structures/packet/packet.h"
45
#include "../../structures/packet/packet.h"
46
 
46
 
-
 
47
#include "../nil_module.h"
-
 
48
 
47
#include "eth.h"
49
#include "eth.h"
48
#include "eth_module.h"
-
 
49
 
50
 
50
#define NAME    "Ethernet protocol"
51
#define NAME    "Ethernet protocol"
51
 
52
 
52
void    eth_print_name( void );
53
void    eth_print_name( void );
53
int eth_start_module( async_client_conn_t client_connection );
54
int eth_start_module( async_client_conn_t client_connection );
Line 60... Line 61...
60
 
61
 
61
int eth_start_module( async_client_conn_t client_connection ){
62
int eth_start_module( async_client_conn_t client_connection ){
62
    ERROR_DECLARE;
63
    ERROR_DECLARE;
63
 
64
 
64
    ipcarg_t    phonehash;
65
    ipcarg_t    phonehash;
-
 
66
    int         networking_phone;
65
 
67
 
66
    async_set_client_connection( client_connection );
68
    async_set_client_connection( client_connection );
67
    eth_globals.networking_phone = connect_to_service( SERVICE_NETWORKING );
69
    networking_phone = connect_to_service( SERVICE_NETWORKING );
68
    ERROR_PROPAGATE( pm_init());
70
    ERROR_PROPAGATE( pm_init());
69
    if( ERROR_OCCURRED( eth_initialize())
71
    if( ERROR_OCCURRED( nil_initialize( networking_phone ))
70
    || ERROR_OCCURRED( REGISTER_ME( SERVICE_ETHERNET, & phonehash ))){
72
    || ERROR_OCCURRED( REGISTER_ME( SERVICE_ETHERNET, & phonehash ))){
71
        pm_destroy();
73
        pm_destroy();
72
        return ERROR_CODE;
74
        return ERROR_CODE;
73
    }
75
    }
74
 
76