[BACK]Return to if-options.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / bsd / dhcpcd / dist / src

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

Diff for /src/external/bsd/dhcpcd/dist/src/if-options.c between version 1.9 and 1.10

version 1.9, 2018/05/02 22:08:45 version 1.10, 2018/06/02 09:44:27
Line 1360  parse_option(struct dhcpcd_ctx *ctx, con
Line 1360  parse_option(struct dhcpcd_ctx *ctx, con
                 for (sl = 0; sl < ifo->ia_len; sl++) {                  for (sl = 0; sl < ifo->ia_len; sl++) {
                         if ((arg == NULL && !ifo->ia[sl].iaid_set) ||                          if ((arg == NULL && !ifo->ia[sl].iaid_set) ||
                             (arg != NULL && ifo->ia[sl].iaid_set &&                              (arg != NULL && ifo->ia[sl].iaid_set &&
                               ifo->ia[sl].ia_type == (uint16_t)i &&
                             ifo->ia[sl].iaid[0] == iaid[0] &&                              ifo->ia[sl].iaid[0] == iaid[0] &&
                             ifo->ia[sl].iaid[1] == iaid[1] &&                              ifo->ia[sl].iaid[1] == iaid[1] &&
                             ifo->ia[sl].iaid[2] == iaid[2] &&                              ifo->ia[sl].iaid[2] == iaid[2] &&
Line 1369  parse_option(struct dhcpcd_ctx *ctx, con
Line 1370  parse_option(struct dhcpcd_ctx *ctx, con
                                 break;                                  break;
                         }                          }
                 }                  }
                 if (ia && ia->ia_type != (uint16_t)i) {  
                         logerrx("Cannot mix IA for the same IAID");  
                         break;  
                 }  
                 if (ia == NULL) {                  if (ia == NULL) {
                         ia = reallocarray(ifo->ia,                          ia = reallocarray(ifo->ia,
                             ifo->ia_len + 1, sizeof(*ifo->ia));                              ifo->ia_len + 1, sizeof(*ifo->ia));

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb <webmaster@jp.NetBSD.org>