[BACK]Return to if_spppsubr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/if_spppsubr.c between version 1.109 and 1.109.12.2

version 1.109, 2008/02/20 17:05:53 version 1.109.12.2, 2008/10/10 22:35:43
Line 371  static const char *sppp_lcp_opt_name(u_c
Line 371  static const char *sppp_lcp_opt_name(u_c
 static const char *sppp_phase_name(int phase);  static const char *sppp_phase_name(int phase);
 static const char *sppp_proto_name(u_short proto);  static const char *sppp_proto_name(u_short proto);
 static const char *sppp_state_name(int state);  static const char *sppp_state_name(int state);
 static int sppp_params(struct sppp *sp, int cmd, void *data);  static int sppp_params(struct sppp *sp, u_long cmd, void *data);
 #ifdef INET  #ifdef INET
 static void sppp_get_ip_addrs(struct sppp *sp, uint32_t *src, uint32_t *dst,  static void sppp_get_ip_addrs(struct sppp *sp, uint32_t *src, uint32_t *dst,
                               uint32_t *srcmask);                                uint32_t *srcmask);
Line 939  void
Line 939  void
 sppp_detach(struct ifnet *ifp)  sppp_detach(struct ifnet *ifp)
 {  {
         struct sppp **q, *p, *sp = (struct sppp *) ifp;          struct sppp **q, *p, *sp = (struct sppp *) ifp;
         int i;  
   
         /* Remove the entry from the keepalive list. */          /* Remove the entry from the keepalive list. */
         for (q = &spppq; (p = *q); q = &p->pp_next)          for (q = &spppq; (p = *q); q = &p->pp_next)
Line 953  sppp_detach(struct ifnet *ifp)
Line 952  sppp_detach(struct ifnet *ifp)
                 callout_stop(&keepalive_ch);                  callout_stop(&keepalive_ch);
         }          }
   
         for (i = 0; i < IDX_COUNT; i++) {          callout_stop(&sp->ch[IDX_LCP]);
                 callout_stop(&sp->ch[i]);          callout_stop(&sp->ch[IDX_IPCP]);
         }          callout_stop(&sp->ch[IDX_PAP]);
           callout_stop(&sp->ch[IDX_CHAP]);
   #ifdef INET6
           callout_stop(&sp->ch[IDX_IPV6CP]);
   #endif
         callout_stop(&sp->pap_my_to_ch);          callout_stop(&sp->pap_my_to_ch);
   
         /* free authentication info */          /* free authentication info */
Line 3447  sppp_ipv6cp_RCR(struct sppp *sp, struct 
Line 3450  sppp_ipv6cp_RCR(struct sppp *sp, struct 
                                 continue;                                  continue;
                         }                          }
   
                         memset(&suggestaddr, 0, sizeof(&suggestaddr));                          memset(&suggestaddr, 0, sizeof(suggestaddr));
                         if (collision && nohisaddr) {                          if (collision && nohisaddr) {
                                 /* collision, hisaddr unknown - Conf-Rej */                                  /* collision, hisaddr unknown - Conf-Rej */
                                 type = CONF_REJ;                                  type = CONF_REJ;
Line 5102  sppp_suggest_ip6_addr(struct sppp *sp, s
Line 5105  sppp_suggest_ip6_addr(struct sppp *sp, s
  * Permissions have already been checked.   * Permissions have already been checked.
  */   */
 static int  static int
 sppp_params(struct sppp *sp, int cmd, void *data)  sppp_params(struct sppp *sp, u_long cmd, void *data)
 {  {
         switch (cmd) {          switch (cmd) {
         case SPPPGETAUTHCFG:          case SPPPGETAUTHCFG:

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.109.12.2

CVSweb <webmaster@jp.NetBSD.org>