mld6.c (171259) | mld6.c (171260) |
---|---|
1/* $FreeBSD: head/sys/netinet6/mld6.c 171259 2007-07-05 16:23:49Z delphij $ */ | 1/* $FreeBSD: head/sys/netinet6/mld6.c 171260 2007-07-05 16:29:40Z delphij $ */ |
2/* $KAME: mld6.c,v 1.27 2001/04/04 05:17:30 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 303 unchanged lines hidden (view full) --- 313 return; 314 } 315 316 /* 317 * In the MLD6 specification, there are 3 states and a flag. 318 * 319 * In Non-Listener state, we simply don't have a membership record. 320 * In Delaying Listener state, our timer is running (in6m->in6m_timer) | 2/* $KAME: mld6.c,v 1.27 2001/04/04 05:17:30 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 303 unchanged lines hidden (view full) --- 313 return; 314 } 315 316 /* 317 * In the MLD6 specification, there are 3 states and a flag. 318 * 319 * In Non-Listener state, we simply don't have a membership record. 320 * In Delaying Listener state, our timer is running (in6m->in6m_timer) |
321 * In Idle Listener state, our timer is not running | 321 * In Idle Listener state, our timer is not running |
322 * (in6m->in6m_timer==IN6M_TIMER_UNDEF) 323 * 324 * The flag is in6m->in6m_state, it is set to MLD_OTHERLISTENER if 325 * we have heard a report from another member, or MLD_IREPORTEDLAST 326 * if we sent the last report. 327 */ 328 switch(mldh->mld_type) { 329 case MLD_LISTENER_QUERY: --- 197 unchanged lines hidden (view full) --- 527 } 528} 529 530/* 531 * Add an address to the list of IP6 multicast addresses for a given interface. 532 * Add source addresses to the list also, if upstream router is MLDv2 capable 533 * and the number of source is not 0. 534 */ | 322 * (in6m->in6m_timer==IN6M_TIMER_UNDEF) 323 * 324 * The flag is in6m->in6m_state, it is set to MLD_OTHERLISTENER if 325 * we have heard a report from another member, or MLD_IREPORTEDLAST 326 * if we sent the last report. 327 */ 328 switch(mldh->mld_type) { 329 case MLD_LISTENER_QUERY: --- 197 unchanged lines hidden (view full) --- 527 } 528} 529 530/* 531 * Add an address to the list of IP6 multicast addresses for a given interface. 532 * Add source addresses to the list also, if upstream router is MLDv2 capable 533 * and the number of source is not 0. 534 */ |
535struct in6_multi * | 535struct in6_multi * |
536in6_addmulti(struct in6_addr *maddr6, struct ifnet *ifp, 537 int *errorp, int delay) 538{ 539 struct in6_multi *in6m; 540 541 *errorp = 0; 542 in6m = NULL; 543 --- 105 unchanged lines hidden --- | 536in6_addmulti(struct in6_addr *maddr6, struct ifnet *ifp, 537 int *errorp, int delay) 538{ 539 struct in6_multi *in6m; 540 541 *errorp = 0; 542 in6m = NULL; 543 --- 105 unchanged lines hidden --- |