Revision d7c06285 nest/config.Y

View differences:

nest/config.Y
24 24
static struct password_item *this_p_item;
25 25
static int password_id;
26 26

  
27
static void
28
iface_patt_check(void)
29
{
30
  struct iface_patt_node *pn;
31

  
32
  WALK_LIST(pn, this_ipatt->ipn_list)
33
    if (!pn->pattern || pn->pxlen)
34
      cf_error("Interface name/mask expected, not IP prefix");
35
}
36

  
37

  
27 38
static inline void
28 39
reset_passwords(void)
29 40
{
......
272 283
 | iface_patt_list ',' iface_patt_node
273 284
 ;
274 285

  
286
/* For name/mask-only iface patterns */
287
iface_patt_list_nopx: iface_patt_list { iface_patt_check(); }
288

  
275 289
iface_patt_init: {
276 290
   /* Generic this_ipatt init */
277 291
   this_ipatt = cfg_allocz(sizeof(struct iface_patt));

Also available in: Unified diff