Lines Matching defs:group
2092 char group[FR_GROUPLEN];
2107 bcopy(fin->fin_group, group, FR_GROUPLEN);
2115 bcopy(group, fin->fin_group, FR_GROUPLEN);
3310 /* Returns: frgroup_t * - NULL = group not found, else pointer to group */
3311 /* Parameters: group(I) - group name to search for */
3312 /* unit(I) - device to which this group belongs */
3315 /* to where to add the next (last) group or where */
3316 /* to delete group from. */
3318 /* Search amongst the defined groups for a particular group number. */
3320 frgroup_t *fr_findgroup(group, unit, set, fgpp, ifs)
3321 char *group;
3336 if (strncmp(group, fg->fg_name, FR_GROUPLEN) == 0)
3349 /* Returns: frgroup_t * - NULL == did not create group, */
3350 /* != NULL == pointer to the group */
3351 /* Parameters: num(I) - group number to add */
3354 /* unit(I) - device to which this group will belong to */
3358 /* Add a new group head, or if it already exists, increase the reference */
3361 frgroup_t *fr_addgroup(group, head, flags, unit, set, ifs)
3362 char *group;
3372 if (group == NULL)
3375 if (unit == IPL_LOGIPF && *group == '\0')
3381 fg = fr_findgroup(group, unit, set, &fgp, ifs);
3395 bcopy(group, fg->fg_name, FR_GROUPLEN);
3407 /* Parameters: group(I) - group name to delete */
3408 /* unit(I) - device to which this group belongs */
3412 /* Attempt to delete a group head. */
3415 void fr_delgroup(group, unit, set, ifs)
3416 char *group;
3423 fg = fr_findgroup(group, unit, set, &fgp, ifs);
3440 /* group(I) - group name */
3443 /* Find rule # n in group # g and return a pointer to it. Return NULl if */
3444 /* group # g doesn't exist or there are less than n rules in the group. */
3446 frentry_t *fr_getrulen(unit, group, n, ifs)
3448 char *group;
3455 fg = fr_findgroup(group, unit, ifs->ifs_fr_active, NULL, ifs);
3508 /* encountered. if a rule is the head of a group and it has lost all its */
3509 /* group members, then also delete the group reference. nfreedp is needed */
4393 char *group;
4447 * Check that the group number does exist and that its use (in/out)
4452 group = fp->fr_group;
4453 if (!strncmp(group, "0", FR_GROUPLEN))
4454 *group = '\0';
4459 if ((req != (int)SIOCZRLST) && (*group != '\0')) {
4460 fg = fr_findgroup(group, unit, set, NULL, ifs);
4492 if (*group != '\0') {
4493 if (!fg && !(fg = fr_findgroup(group, unit, set, NULL, ifs)))
4710 * For SIOCAD*FR, this should be the last rule in the group of
4823 group = f->fr_grhead;
4824 if (*group != '\0') {
4825 fg = fr_addgroup(group, f, f->fr_flags,
5039 /* Looks for group hash table fr_arg and stores a pointer to it in fr_ptr. */
5070 /* Look for a rule group head in a hash table, using the source address as */
5071 /* the key, and descend into that group and continue matching rules against */
5099 /* Look for a rule group head in a hash table, using the destination */
5100 /* address as the key, and descend into that group and continue matching */
7254 /* find the 'next rule'. This may include searching rule group lists or */