Repository navigation
Commit 1fd07f3
ipv6: ICMPV6: add response to ICMPV6 RFC 8335 PROBE messages
This patch builds off of commit 2b246b2
and adds functionality to respond to ICMPV6 PROBE requests.
Add icmp_build_probe function to construct PROBE requests for both
ICMPV4 and ICMPV6.
Modify icmpv6_rcv to detect ICMPV6 PROBE messages and call the
icmpv6_echo_reply handler.
Modify icmpv6_echo_reply to build a PROBE response message based on the
queried interface.
This patch has been tested using a branch of the iputils git repo which can
be found here: https://github.com/Juniper-Clinic-2020/iputils/tree/probe-request
Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 83300c6 commit 1fd07f3
3 files changed
Lines changed: 60 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
997 | | - | |
998 | 996 | | |
999 | | - | |
1000 | | - | |
1001 | 997 | | |
1002 | | - | |
1003 | | - | |
1004 | 998 | | |
1005 | 999 | | |
1006 | 1000 | | |
| |||
1013 | 1007 | | |
1014 | 1008 | | |
1015 | 1009 | | |
1016 | | - | |
| 1010 | + | |
1017 | 1011 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
| 1012 | + | |
1021 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1022 | 1039 | | |
1023 | 1040 | | |
1024 | 1041 | | |
1025 | | - | |
1026 | | - | |
| 1042 | + | |
| 1043 | + | |
1027 | 1044 | | |
1028 | | - | |
1029 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1030 | 1050 | | |
1031 | 1051 | | |
1032 | 1052 | | |
| |||
1087 | 1107 | | |
1088 | 1108 | | |
1089 | 1109 | | |
1090 | | - | |
1091 | | - | |
| 1110 | + | |
| 1111 | + | |
1092 | 1112 | | |
1093 | 1113 | | |
1094 | 1114 | | |
| |||
1098 | 1118 | | |
1099 | 1119 | | |
1100 | 1120 | | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
| 1121 | + | |
| 1122 | + | |
1105 | 1123 | | |
1106 | | - | |
1107 | | - | |
| 1124 | + | |
| 1125 | + | |
1108 | 1126 | | |
| 1127 | + | |
1109 | 1128 | | |
1110 | 1129 | | |
1111 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
| |||
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
743 | 749 | | |
744 | | - | |
| 750 | + | |
745 | 751 | | |
746 | 752 | | |
747 | 753 | | |
| |||
752 | 758 | | |
753 | 759 | | |
754 | 760 | | |
755 | | - | |
| 761 | + | |
756 | 762 | | |
757 | 763 | | |
758 | 764 | | |
| |||
783 | 789 | | |
784 | 790 | | |
785 | 791 | | |
786 | | - | |
| 792 | + | |
787 | 793 | | |
788 | 794 | | |
789 | 795 | | |
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
793 | 803 | | |
794 | 804 | | |
795 | 805 | | |
| |||
911 | 921 | | |
912 | 922 | | |
913 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
914 | 929 | | |
915 | 930 | | |
916 | 931 | | |
| |||
0 commit comments