Subversion Repositories HelenOS

Rev

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

Rev 4332 Rev 4351
Line 269... Line 269...
269
    if (dep->de_mode == DEM_SINK)
269
    if (dep->de_mode == DEM_SINK)
270
    {
270
    {
271
//      strncpy((char *) dep->de_address.ea_addr, "ZDP", 6);
271
//      strncpy((char *) dep->de_address.ea_addr, "ZDP", 6);
272
//      dep->de_address.ea_addr[5] = port;
272
//      dep->de_address.ea_addr[5] = port;
273
//      dp_confaddr(dep);
273
//      dp_confaddr(dep);
274
        //TODO ether address?
-
 
275
//      reply_mess.m_type = DL_CONF_REPLY;
274
//      reply_mess.m_type = DL_CONF_REPLY;
276
//      reply_mess.m3_i1 = mp->DL_PORT;
275
//      reply_mess.m3_i1 = mp->DL_PORT;
277
//      reply_mess.m3_i2 = DE_PORT_NR;
276
//      reply_mess.m3_i2 = DE_PORT_NR;
278
//      *(ether_addr_t *) reply_mess.m3_ca1 = dep->de_address;
277
//      *(ether_addr_t *) reply_mess.m3_ca1 = dep->de_address;
279
//      mess_reply(mp, &reply_mess);
278
//      mess_reply(mp, &reply_mess);
280
//      return;
279
//      return;
281
        return EOK;
280
        return EOK;
282
    }
281
    }
283
    //TODO assert?
-
 
284
    assert(dep->de_mode == DEM_ENABLED);
282
    assert(dep->de_mode == DEM_ENABLED);
285
    assert(dep->de_flags & DEF_ENABLED);
283
    assert(dep->de_flags & DEF_ENABLED);
286
 
284
 
287
    dep->de_flags &= ~(DEF_PROMISC | DEF_MULTI | DEF_BROAD);
285
    dep->de_flags &= ~(DEF_PROMISC | DEF_MULTI | DEF_BROAD);
288
 
286
 
Line 294... Line 292...
294
        dep->de_flags |= DEF_BROAD;
292
        dep->de_flags |= DEF_BROAD;
295
 
293
 
296
//  dep->de_client = mp->m_source;
294
//  dep->de_client = mp->m_source;
297
    dp_reinit(dep);
295
    dp_reinit(dep);
298
 
296
 
299
    //TODO ether address?
-
 
300
//  reply_mess.m_type = DL_CONF_REPLY;
297
//  reply_mess.m_type = DL_CONF_REPLY;
301
//  reply_mess.m3_i1 = mp->DL_PORT;
298
//  reply_mess.m3_i1 = mp->DL_PORT;
302
//  reply_mess.m3_i2 = DE_PORT_NR;
299
//  reply_mess.m3_i2 = DE_PORT_NR;
303
//  *(ether_addr_t *) reply_mess.m3_ca1 = dep->de_address;
300
//  *(ether_addr_t *) reply_mess.m3_ca1 = dep->de_address;
304
 
301