Lines Matching refs:prefix
26 /* IPv4 and IPv6 unified prefix structure. */
27 struct prefix
33 u_char prefix;
47 /* IPv4 prefix structure. */
52 struct in_addr prefix __attribute__ ((aligned (8)));
55 /* IPv6 prefix structure. */
61 struct in6_addr prefix __attribute__ ((aligned (8)));
112 /* Count prefix size from mask length */
122 int prefix2str (struct prefix *, char *, int);
123 int str2prefix (char *, struct prefix *);
124 struct prefix *prefix_new ();
125 void prefix_free (struct prefix *p);
131 int prefix_blen (struct prefix *);
137 char *prefix_family_str (struct prefix *p);
138 struct prefix *sockunion2prefix ();
139 struct prefix *sockunion2hostprefix ();
144 struct prefix *str2routev6 (char *);
152 void apply_mask (struct prefix *);
153 int prefix_match (struct prefix *n, struct prefix *p);
154 int prefix_same (struct prefix *, struct prefix *);
155 int prefix_cmp (struct prefix *, struct prefix *);
156 void prefix_copy (struct prefix *, struct prefix *);