| 1017 | } |
| 1018 | |
| 1019 | static void |
| 1020 | mls_ifnet_create(struct ifnet *ifp, struct label *ifplabel) |
| 1021 | { |
| 1022 | struct mac_mls *dest; |
| 1023 | int type; |
| 1024 | |
| 1025 | dest = SLOT(ifplabel); |
| 1026 | |
| 1027 | if (ifp->if_type == IFT_LOOP) |
| 1028 | type = MAC_MLS_TYPE_EQUAL; |
| 1029 | else |
| 1030 | type = MAC_MLS_TYPE_LOW; |
| 1031 | |
| 1032 | mls_set_effective(dest, type, 0, NULL); |
| 1033 | mls_set_range(dest, type, 0, NULL, type, 0, NULL); |
| 1034 | } |
| 1035 | |
| 1036 | static void |
| 1037 | mls_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, |
nothing calls this directly
no test coverage detected