|
Packit Service |
3880ab |
#!/bin/sh
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
. lib/generic.sh
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_log "[Testing Add BareUDP interface (unicast MPLS)]"
|
|
Packit Service |
3880ab |
NEW_DEV="$(rand_dev)"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Add $NEW_DEV BareUDP interface (unicast MPLS)" link add dev $NEW_DEV type bareudp dstport 6635 ethertype mpls_uc
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Show $NEW_DEV BareUDP interface (unicast MPLS)" -d link show dev $NEW_DEV
|
|
Packit Service |
3880ab |
test_on "$NEW_DEV"
|
|
Packit Service |
3880ab |
test_on "dstport 6635"
|
|
Packit Service |
3880ab |
test_on "ethertype mpls_uc"
|
|
Packit Service |
3880ab |
test_on "nomultiproto"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Del $NEW_DEV BareUDP interface (unicast MPLS)" link del dev $NEW_DEV
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_log "[Testing Add BareUDP interface (multicast MPLS)]"
|
|
Packit Service |
3880ab |
NEW_DEV="$(rand_dev)"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Add $NEW_DEV BareUDP interface (multicast MPLS)" link add dev $NEW_DEV type bareudp dstport 6635 ethertype mpls_mc
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Show $NEW_DEV BareUDP interface (multicast MPLS)" -d link show dev $NEW_DEV
|
|
Packit Service |
3880ab |
test_on "$NEW_DEV"
|
|
Packit Service |
3880ab |
test_on "dstport 6635"
|
|
Packit Service |
3880ab |
test_on "ethertype mpls_mc"
|
|
Packit Service |
3880ab |
test_on "nomultiproto"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Del $NEW_DEV BareUDP interface (multicast MPLS)" link del dev $NEW_DEV
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_log "[Testing Add BareUDP interface (unicast and multicast MPLS)]"
|
|
Packit Service |
3880ab |
NEW_DEV="$(rand_dev)"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Add $NEW_DEV BareUDP interface (unicast and multicast MPLS)" link add dev $NEW_DEV type bareudp dstport 6635 ethertype mpls_uc multiproto
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Show $NEW_DEV BareUDP interface (unicast and multicast MPLS)" -d link show dev $NEW_DEV
|
|
Packit Service |
3880ab |
test_on "$NEW_DEV"
|
|
Packit Service |
3880ab |
test_on "dstport 6635"
|
|
Packit Service |
3880ab |
test_on "ethertype mpls_uc"
|
|
Packit Service |
3880ab |
test_on "multiproto"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Del $NEW_DEV BareUDP interface (unicast and multicast MPLS)" link del dev $NEW_DEV
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_log "[Testing Add BareUDP interface (IPv4)]"
|
|
Packit Service |
3880ab |
NEW_DEV="$(rand_dev)"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Add $NEW_DEV BareUDP interface (IPv4)" link add dev $NEW_DEV type bareudp dstport 6635 ethertype ipv4
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Show $NEW_DEV BareUDP interface (IPv4)" -d link show dev $NEW_DEV
|
|
Packit Service |
3880ab |
test_on "$NEW_DEV"
|
|
Packit Service |
3880ab |
test_on "dstport 6635"
|
|
Packit Service |
3880ab |
test_on "ethertype ip"
|
|
Packit Service |
3880ab |
test_on "nomultiproto"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Del $NEW_DEV BareUDP interface (IPv4)" link del dev $NEW_DEV
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_log "[Testing Add BareUDP interface (IPv6)]"
|
|
Packit Service |
3880ab |
NEW_DEV="$(rand_dev)"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Add $NEW_DEV BareUDP interface (IPv6)" link add dev $NEW_DEV type bareudp dstport 6635 ethertype ipv6
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Show $NEW_DEV BareUDP interface (IPv6)" -d link show dev $NEW_DEV
|
|
Packit Service |
3880ab |
test_on "$NEW_DEV"
|
|
Packit Service |
3880ab |
test_on "dstport 6635"
|
|
Packit Service |
3880ab |
test_on "ethertype ipv6"
|
|
Packit Service |
3880ab |
test_on "nomultiproto"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Del $NEW_DEV BareUDP interface (IPv6)" link del dev $NEW_DEV
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_log "[Testing Add BareUDP interface (IPv4 and IPv6)]"
|
|
Packit Service |
3880ab |
NEW_DEV="$(rand_dev)"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Add $NEW_DEV BareUDP interface (IPv4 and IPv6)" link add dev $NEW_DEV type bareudp dstport 6635 ethertype ipv4 multiproto
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Show $NEW_DEV BareUDP interface (IPv4 and IPv6)" -d link show dev $NEW_DEV
|
|
Packit Service |
3880ab |
test_on "$NEW_DEV"
|
|
Packit Service |
3880ab |
test_on "dstport 6635"
|
|
Packit Service |
3880ab |
test_on "ethertype ip"
|
|
Packit Service |
3880ab |
test_on "multiproto"
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
ts_ip "$0" "Del $NEW_DEV BareUDP interface (IPv4 and IPv6)" link del dev $NEW_DEV
|