MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vlan_clone_match

Function vlan_clone_match

freebsd/net/if_vlan.c:954–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954static int
955vlan_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
976static int
977vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params)

Callers

nothing calls this directly

Calls 3

if_releFunction · 0.85
strncmpFunction · 0.85

Tested by

no test coverage detected