| 2897 | } |
| 2898 | |
| 2899 | static void |
| 2900 | vxlan_set_default_config(struct vxlan_softc *sc) |
| 2901 | { |
| 2902 | |
| 2903 | sc->vxl_flags |= VXLAN_FLAG_LEARN; |
| 2904 | |
| 2905 | sc->vxl_vni = VXLAN_VNI_MAX; |
| 2906 | sc->vxl_ttl = IPDEFTTL; |
| 2907 | |
| 2908 | if (!vxlan_tunable_int(sc, "legacy_port", vxlan_legacy_port)) { |
| 2909 | sc->vxl_src_addr.in4.sin_port = htons(VXLAN_PORT); |
| 2910 | sc->vxl_dst_addr.in4.sin_port = htons(VXLAN_PORT); |
| 2911 | } else { |
| 2912 | sc->vxl_src_addr.in4.sin_port = htons(VXLAN_LEGACY_PORT); |
| 2913 | sc->vxl_dst_addr.in4.sin_port = htons(VXLAN_LEGACY_PORT); |
| 2914 | } |
| 2915 | |
| 2916 | sc->vxl_min_port = V_ipport_firstauto; |
| 2917 | sc->vxl_max_port = V_ipport_lastauto; |
| 2918 | |
| 2919 | sc->vxl_ftable_max = VXLAN_FTABLE_MAX; |
| 2920 | sc->vxl_ftable_timeout = VXLAN_FTABLE_TIMEOUT; |
| 2921 | } |
| 2922 | |
| 2923 | static int |
| 2924 | vxlan_set_user_config(struct vxlan_softc *sc, struct ifvxlanparam *vxlp) |
no test coverage detected