| 952 | } |
| 953 | |
| 954 | static int |
| 955 | vlan_clone_match(struct if_clone *ifc, const char *name) |
| 956 | { |
| 957 | struct ifnet *ifp; |
| 958 | const char *cp; |
| 959 | |
| 960 | ifp = vlan_clone_match_ethervid(name, NULL); |
| 961 | if (ifp != NULL) { |
| 962 | if_rele(ifp); |
| 963 | return (1); |
| 964 | } |
| 965 | |
| 966 | if (strncmp(vlanname, name, strlen(vlanname)) != 0) |
| 967 | return (0); |
| 968 | for (cp = name + 4; *cp != '\0'; cp++) { |
| 969 | if (*cp < '0' || *cp > '9') |
| 970 | return (0); |
| 971 | } |
| 972 | |
| 973 | return (1); |
| 974 | } |
| 975 | |
| 976 | static int |
| 977 | vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) |
nothing calls this directly
no test coverage detected