From 0a1a2873858e2559d46ee2bcbc9926bb09a8f3d4 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Thu, 6 Nov 2014 14:40:56 +0100 Subject: [PATCH] Radius: update Packet Type Codes and Attribute Types with RFC/IANA names --- print-radius.c | 198 ++++++++++++++++++------------------- tests/radius-rfc4675-v.out | 62 ++++++------ tests/radius-rfc5176-v.out | 24 ++--- tests/radius-v.out | 74 +++++++------- 4 files changed, 179 insertions(+), 179 deletions(-) diff --git a/print-radius.c b/print-radius.c index b8f81e9c..2c7456bb 100644 --- a/print-radius.c +++ b/print-radius.c @@ -93,20 +93,20 @@ static const char tstr[] = " [|radius]"; #define RADCMD_RESERVED 255 /* Reserved */ static const struct tok radius_command_values[] = { - { RADCMD_ACCESS_REQ, "Access Request" }, - { RADCMD_ACCESS_ACC, "Access Accept" }, - { RADCMD_ACCESS_REJ, "Access Reject" }, - { RADCMD_ACCOUN_REQ, "Accounting Request" }, - { RADCMD_ACCOUN_RES, "Accounting Response" }, - { RADCMD_ACCESS_CHA, "Access Challenge" }, - { RADCMD_STATUS_SER, "Status Server" }, - { RADCMD_STATUS_CLI, "Status Client" }, - { RADCMD_DISCON_REQ, "Disconnect Request" }, - { RADCMD_DISCON_ACK, "Disconnect ACK" }, - { RADCMD_DISCON_NAK, "Disconnect NAK" }, - { RADCMD_COA_REQ, "Change of Authorization Request" }, - { RADCMD_COA_ACK, "Change of Authorization ACK" }, - { RADCMD_COA_NAK, "Change of Authorization NAK" }, + { RADCMD_ACCESS_REQ, "Access-Request" }, + { RADCMD_ACCESS_ACC, "Access-Accept" }, + { RADCMD_ACCESS_REJ, "Access-Reject" }, + { RADCMD_ACCOUN_REQ, "Accounting-Request" }, + { RADCMD_ACCOUN_RES, "Accounting-Response" }, + { RADCMD_ACCESS_CHA, "Access-Challenge" }, + { RADCMD_STATUS_SER, "Status-Server" }, + { RADCMD_STATUS_CLI, "Status-Client" }, + { RADCMD_DISCON_REQ, "Disconnect-Request" }, + { RADCMD_DISCON_ACK, "Disconnect-ACK" }, + { RADCMD_DISCON_NAK, "Disconnect-NAK" }, + { RADCMD_COA_REQ, "CoA-Request" }, + { RADCMD_COA_ACK, "CoA-ACK" }, + { RADCMD_COA_NAK, "CoA-NAK" }, { RADCMD_RESERVED, "Reserved" }, { 0, NULL} }; @@ -373,97 +373,97 @@ struct attrtype { const char *name; /* Attribute name */ } attr_type[]= { { NULL, NULL, 0, 0, NULL }, - { "Username", NULL, 0, 0, print_attr_string }, - { "Password", NULL, 0, 0, NULL }, - { "CHAP Password", NULL, 0, 0, NULL }, - { "NAS IP Address", NULL, 0, 0, print_attr_address }, - { "NAS Port", NULL, 0, 0, print_attr_num }, - { "Service Type", serv_type, TAM_SIZE(serv_type)-1, 1, print_attr_num }, - { "Framed Protocol", frm_proto, TAM_SIZE(frm_proto)-1, 1, print_attr_num }, - { "Framed IP Address", NULL, 0, 0, print_attr_address }, - { "Framed IP Network", NULL, 0, 0, print_attr_address }, - { "Framed Routing", frm_routing, TAM_SIZE(frm_routing), 0, print_attr_num }, - { "Filter ID", NULL, 0, 0, print_attr_string }, - { "Framed MTU", NULL, 0, 0, print_attr_num }, - { "Framed Compression", frm_comp, TAM_SIZE(frm_comp), 0, print_attr_num }, - { "Login IP Host", NULL, 0, 0, print_attr_address }, - { "Login Service", login_serv, TAM_SIZE(login_serv), 0, print_attr_num }, - { "Login TCP Port", NULL, 0, 0, print_attr_num }, + { "User-Name", NULL, 0, 0, print_attr_string }, + { "User-Password", NULL, 0, 0, NULL }, + { "CHAP-Password", NULL, 0, 0, NULL }, + { "NAS-IP-Address", NULL, 0, 0, print_attr_address }, + { "NAS-Port", NULL, 0, 0, print_attr_num }, + { "Service-Type", serv_type, TAM_SIZE(serv_type)-1, 1, print_attr_num }, + { "Framed-Protocol", frm_proto, TAM_SIZE(frm_proto)-1, 1, print_attr_num }, + { "Framed-IP-Address", NULL, 0, 0, print_attr_address }, + { "Framed-IP-Netmask", NULL, 0, 0, print_attr_address }, + { "Framed-Routing", frm_routing, TAM_SIZE(frm_routing), 0, print_attr_num }, + { "Filter-Id", NULL, 0, 0, print_attr_string }, + { "Framed-MTU", NULL, 0, 0, print_attr_num }, + { "Framed-Compression", frm_comp, TAM_SIZE(frm_comp), 0, print_attr_num }, + { "Login-IP-Host", NULL, 0, 0, print_attr_address }, + { "Login-Service", login_serv, TAM_SIZE(login_serv), 0, print_attr_num }, + { "Login-TCP-Port", NULL, 0, 0, print_attr_num }, { "Unassigned", NULL, 0, 0, NULL }, /*17*/ - { "Reply", NULL, 0, 0, print_attr_string }, - { "Callback-number", NULL, 0, 0, print_attr_string }, - { "Callback-ID", NULL, 0, 0, print_attr_string }, + { "Reply-Message", NULL, 0, 0, print_attr_string }, + { "Callback-Number", NULL, 0, 0, print_attr_string }, + { "Callback-Id", NULL, 0, 0, print_attr_string }, { "Unassigned", NULL, 0, 0, NULL }, /*21*/ - { "Framed Route", NULL, 0, 0, print_attr_string }, - { "Framed IPX Network", NULL, 0, 0, print_attr_num }, + { "Framed-Route", NULL, 0, 0, print_attr_string }, + { "Framed-IPX-Network", NULL, 0, 0, print_attr_num }, { "State", NULL, 0, 0, print_attr_string }, { "Class", NULL, 0, 0, print_attr_string }, - { "Vendor Specific", NULL, 0, 0, print_vendor_attr }, - { "Session Timeout", NULL, 0, 0, print_attr_num }, - { "Idle Timeout", NULL, 0, 0, print_attr_num }, - { "Termination Action", term_action, TAM_SIZE(term_action), 0, print_attr_num }, - { "Called Station", NULL, 0, 0, print_attr_string }, - { "Calling Station", NULL, 0, 0, print_attr_string }, - { "NAS ID", NULL, 0, 0, print_attr_string }, - { "Proxy State", NULL, 0, 0, print_attr_string }, - { "Login LAT Service", NULL, 0, 0, print_attr_string }, - { "Login LAT Node", NULL, 0, 0, print_attr_string }, - { "Login LAT Group", NULL, 0, 0, print_attr_string }, - { "Framed Appletalk Link", NULL, 0, 0, print_attr_num }, - { "Framed Appltalk Net", NULL, 0, 0, print_attr_num }, - { "Framed Appletalk Zone", NULL, 0, 0, print_attr_string }, - { "Accounting Status", acct_status, TAM_SIZE(acct_status)-1, 1, print_attr_num }, - { "Accounting Delay", NULL, 0, 0, print_attr_num }, - { "Accounting Input Octets", NULL, 0, 0, print_attr_num }, - { "Accounting Output Octets", NULL, 0, 0, print_attr_num }, - { "Accounting Session ID", NULL, 0, 0, print_attr_string }, - { "Accounting Authentication", acct_auth, TAM_SIZE(acct_auth)-1, 1, print_attr_num }, - { "Accounting Session Time", NULL, 0, 0, print_attr_num }, - { "Accounting Input Packets", NULL, 0, 0, print_attr_num }, - { "Accounting Output Packets", NULL, 0, 0, print_attr_num }, - { "Accounting Termination Cause", acct_term, TAM_SIZE(acct_term)-1, 1, print_attr_num }, - { "Accounting Multilink Session ID", NULL, 0, 0, print_attr_string }, - { "Accounting Link Count", NULL, 0, 0, print_attr_num }, - { "Accounting Input Giga", NULL, 0, 0, print_attr_num }, - { "Accounting Output Giga", NULL, 0, 0, print_attr_num }, + { "Vendor-Specific", NULL, 0, 0, print_vendor_attr }, + { "Session-Timeout", NULL, 0, 0, print_attr_num }, + { "Idle-Timeout", NULL, 0, 0, print_attr_num }, + { "Termination-Action", term_action, TAM_SIZE(term_action), 0, print_attr_num }, + { "Called-Station-Id", NULL, 0, 0, print_attr_string }, + { "Calling-Station-Id", NULL, 0, 0, print_attr_string }, + { "NAS-Identifier", NULL, 0, 0, print_attr_string }, + { "Proxy-State", NULL, 0, 0, print_attr_string }, + { "Login-LAT-Service", NULL, 0, 0, print_attr_string }, + { "Login-LAT-Node", NULL, 0, 0, print_attr_string }, + { "Login-LAT-Group", NULL, 0, 0, print_attr_string }, + { "Framed-AppleTalk-Link", NULL, 0, 0, print_attr_num }, + { "Framed-AppleTalk-Network", NULL, 0, 0, print_attr_num }, + { "Framed-AppleTalk-Zone", NULL, 0, 0, print_attr_string }, + { "Acct-Status-Type", acct_status, TAM_SIZE(acct_status)-1, 1, print_attr_num }, + { "Acct-Delay-Time", NULL, 0, 0, print_attr_num }, + { "Acct-Input-Octets", NULL, 0, 0, print_attr_num }, + { "Acct-Output-Octets", NULL, 0, 0, print_attr_num }, + { "Acct-Session-Id", NULL, 0, 0, print_attr_string }, + { "Acct-Authentic", acct_auth, TAM_SIZE(acct_auth)-1, 1, print_attr_num }, + { "Acct-Session-Time", NULL, 0, 0, print_attr_num }, + { "Acct-Input-Packets", NULL, 0, 0, print_attr_num }, + { "Acct-Output-Packets", NULL, 0, 0, print_attr_num }, + { "Acct-Terminate-Cause", acct_term, TAM_SIZE(acct_term)-1, 1, print_attr_num }, + { "Acct-Multi-Session-Id", NULL, 0, 0, print_attr_string }, + { "Acct-Link-Count", NULL, 0, 0, print_attr_num }, + { "Acct-Input-Gigawords", NULL, 0, 0, print_attr_num }, + { "Acct-Output-Gigawords", NULL, 0, 0, print_attr_num }, { "Unassigned", NULL, 0, 0, NULL }, /*54*/ - { "Event Timestamp", NULL, 0, 0, print_attr_time }, - { "Egress VLAN ID", NULL, 0, 0, print_attr_num }, - { "Ingress Filters", ingress_filters, TAM_SIZE(ingress_filters)-1, 1, print_attr_num }, - { "Egress VLAN Name", NULL, 0, 0, print_attr_string }, - { "User Priority Table", NULL, 0, 0, NULL }, - { "CHAP challenge", NULL, 0, 0, print_attr_string }, - { "NAS Port Type", nas_port_type, TAM_SIZE(nas_port_type), 0, print_attr_num }, - { "Port Limit", NULL, 0, 0, print_attr_num }, - { "Login LAT Port", NULL, 0, 0, print_attr_string }, /*63*/ - { "Tunnel Type", tunnel_type, TAM_SIZE(tunnel_type)-1, 1, print_attr_num }, - { "Tunnel Medium", tunnel_medium, TAM_SIZE(tunnel_medium)-1, 1, print_attr_num }, - { "Tunnel Client End", NULL, 0, 0, print_attr_string }, - { "Tunnel Server End", NULL, 0, 0, print_attr_string }, - { "Accounting Tunnel connect", NULL, 0, 0, print_attr_string }, - { "Tunnel Password", NULL, 0, 0, print_attr_string }, - { "ARAP Password", NULL, 0, 0, print_attr_strange }, - { "ARAP Feature", NULL, 0, 0, print_attr_strange }, - { "ARAP Zone Acces", arap_zone, TAM_SIZE(arap_zone)-1, 1, print_attr_num }, /*72*/ - { "ARAP Security", NULL, 0, 0, print_attr_string }, - { "ARAP Security Data", NULL, 0, 0, print_attr_string }, - { "Password Retry", NULL, 0, 0, print_attr_num }, + { "Event-Timestamp", NULL, 0, 0, print_attr_time }, + { "Egress-VLANID", NULL, 0, 0, print_attr_num }, + { "Ingress-Filters", ingress_filters, TAM_SIZE(ingress_filters)-1, 1, print_attr_num }, + { "Egress-VLAN-Name", NULL, 0, 0, print_attr_string }, + { "User-Priority-Table", NULL, 0, 0, NULL }, + { "CHAP-Challenge", NULL, 0, 0, print_attr_string }, + { "NAS-Port-Type", nas_port_type, TAM_SIZE(nas_port_type), 0, print_attr_num }, + { "Port-Limit", NULL, 0, 0, print_attr_num }, + { "Login-LAT-Port", NULL, 0, 0, print_attr_string }, /*63*/ + { "Tunnel-Type", tunnel_type, TAM_SIZE(tunnel_type)-1, 1, print_attr_num }, + { "Tunnel-Medium-Type", tunnel_medium, TAM_SIZE(tunnel_medium)-1, 1, print_attr_num }, + { "Tunnel-Client-Endpoint", NULL, 0, 0, print_attr_string }, + { "Tunnel-Server-Endpoint", NULL, 0, 0, print_attr_string }, + { "Acct-Tunnel-Connection", NULL, 0, 0, print_attr_string }, + { "Tunnel-Password", NULL, 0, 0, print_attr_string }, + { "ARAP-Password", NULL, 0, 0, print_attr_strange }, + { "ARAP-Features", NULL, 0, 0, print_attr_strange }, + { "ARAP-Zone-Access", arap_zone, TAM_SIZE(arap_zone)-1, 1, print_attr_num }, /*72*/ + { "ARAP-Security", NULL, 0, 0, print_attr_string }, + { "ARAP-Security-Data", NULL, 0, 0, print_attr_string }, + { "Password-Retry", NULL, 0, 0, print_attr_num }, { "Prompt", prompt, TAM_SIZE(prompt), 0, print_attr_num }, - { "Connect Info", NULL, 0, 0, print_attr_string }, - { "Config Token", NULL, 0, 0, print_attr_string }, - { "EAP Message", NULL, 0, 0, print_attr_string }, - { "Message Authentication", NULL, 0, 0, print_attr_string }, /*80*/ - { "Tunnel Private Group", NULL, 0, 0, print_attr_string }, - { "Tunnel Assigned ID", NULL, 0, 0, print_attr_string }, - { "Tunnel Preference", NULL, 0, 0, print_attr_num }, - { "ARAP Challenge Response", NULL, 0, 0, print_attr_strange }, - { "Accounting Interim Interval", NULL, 0, 0, print_attr_num }, - { "Accounting Tunnel packets lost", NULL, 0, 0, print_attr_num }, /*86*/ - { "NAS Port ID", NULL, 0, 0, print_attr_string }, - { "Framed Pool", NULL, 0, 0, print_attr_string }, - { "Chargeable User Identity", NULL, 0, 0, print_attr_string }, - { "Tunnel Client Authentication ID", NULL, 0, 0, print_attr_string }, - { "Tunnel Server Authentication ID", NULL, 0, 0, print_attr_string }, + { "Connect-Info", NULL, 0, 0, print_attr_string }, + { "Configuration-Token", NULL, 0, 0, print_attr_string }, + { "EAP-Message", NULL, 0, 0, print_attr_string }, + { "Message-Authenticator", NULL, 0, 0, print_attr_string }, /*80*/ + { "Tunnel-Private-Group-ID", NULL, 0, 0, print_attr_string }, + { "Tunnel-Assignment-ID", NULL, 0, 0, print_attr_string }, + { "Tunnel-Preference", NULL, 0, 0, print_attr_num }, + { "ARAP-Challenge-Response", NULL, 0, 0, print_attr_strange }, + { "Acct-Interim-Interval", NULL, 0, 0, print_attr_num }, + { "Acct-Tunnel-Packets-Lost", NULL, 0, 0, print_attr_num }, /*86*/ + { "NAS-Port-Id", NULL, 0, 0, print_attr_string }, + { "Framed-Pool", NULL, 0, 0, print_attr_string }, + { "CUI", NULL, 0, 0, print_attr_string }, + { "Tunnel-Client-Auth-ID", NULL, 0, 0, print_attr_string }, + { "Tunnel-Server-Auth-ID", NULL, 0, 0, print_attr_string }, { "Unassigned", NULL, 0, 0, NULL }, /*92*/ { "Unassigned", NULL, 0, 0, NULL } /*93*/ }; diff --git a/tests/radius-rfc4675-v.out b/tests/radius-rfc4675-v.out index d4c3d0f5..ff0e96f7 100644 --- a/tests/radius-rfc4675-v.out +++ b/tests/radius-rfc4675-v.out @@ -1,43 +1,43 @@ IP (tos 0x0, ttl 64, id 20820, offset 0, flags [none], proto UDP (17), length 108) 127.0.0.1.53334 > 127.0.0.1.1812: RADIUS, length: 80 - Access Request (1), id: 0x46, Authenticator: f44757bc498c3393763a27d0b2393702 - Username Attribute (1), length: 12, Value: bob-tagged - Password Attribute (2), length: 18, Value: - NAS IP Address Attribute (4), length: 6, Value: 127.0.0.1 - NAS Port Attribute (5), length: 6, Value: 1 - Message Authentication Attribute (80), length: 18, Value: .....b..7-...b. + Access-Request (1), id: 0x46, Authenticator: f44757bc498c3393763a27d0b2393702 + User-Name Attribute (1), length: 12, Value: bob-tagged + User-Password Attribute (2), length: 18, Value: + NAS-IP-Address Attribute (4), length: 6, Value: 127.0.0.1 + NAS-Port Attribute (5), length: 6, Value: 1 + Message-Authenticator Attribute (80), length: 18, Value: .....b..7-...b. IP (tos 0x0, ttl 64, id 20821, offset 0, flags [none], proto UDP (17), length 81) 127.0.0.1.1812 > 127.0.0.1.53334: RADIUS, length: 53 - Access Accept (2), id: 0x46, Authenticator: 766a0314eaf4b95f1ec271ae19cb3bdc - Egress VLAN ID Attribute (56), length: 6, Value: Tagged (0x31) 123 - Ingress Filters Attribute (57), length: 6, Value: Enabled - Egress VLAN Name Attribute (58), length: 11, Value: Tagged (0x31) vlanname - User Priority Table Attribute (59), length: 10, Value: + Access-Accept (2), id: 0x46, Authenticator: 766a0314eaf4b95f1ec271ae19cb3bdc + Egress-VLANID Attribute (56), length: 6, Value: Tagged (0x31) 123 + Ingress-Filters Attribute (57), length: 6, Value: Enabled + Egress-VLAN-Name Attribute (58), length: 11, Value: Tagged (0x31) vlanname + User-Priority-Table Attribute (59), length: 10, Value: IP (tos 0x0, ttl 64, id 21127, offset 0, flags [none], proto UDP (17), length 110) 127.0.0.1.46281 > 127.0.0.1.1812: RADIUS, length: 82 - Access Request (1), id: 0xb5, Authenticator: 11851d8b1b483f54a864b703ea21f4dc - Username Attribute (1), length: 14, Value: bob-untagged - Password Attribute (2), length: 18, Value: - NAS IP Address Attribute (4), length: 6, Value: 127.0.0.1 - NAS Port Attribute (5), length: 6, Value: 1 - Message Authentication Attribute (80), length: 18, Value: ..o..}f..d.;..R[ + Access-Request (1), id: 0xb5, Authenticator: 11851d8b1b483f54a864b703ea21f4dc + User-Name Attribute (1), length: 14, Value: bob-untagged + User-Password Attribute (2), length: 18, Value: + NAS-IP-Address Attribute (4), length: 6, Value: 127.0.0.1 + NAS-Port Attribute (5), length: 6, Value: 1 + Message-Authenticator Attribute (80), length: 18, Value: ..o..}f..d.;..R[ IP (tos 0x0, ttl 64, id 21128, offset 0, flags [none], proto UDP (17), length 71) 127.0.0.1.1812 > 127.0.0.1.46281: RADIUS, length: 43 - Access Accept (2), id: 0xb5, Authenticator: e223a663823b20ccc18bcf90c3ecbe27 - Egress VLAN ID Attribute (56), length: 6, Value: Untagged (0x32) 123 - Ingress Filters Attribute (57), length: 6, Value: Disabled - Egress VLAN Name Attribute (58), length: 11, Value: Untagged (0x32) vlanname + Access-Accept (2), id: 0xb5, Authenticator: e223a663823b20ccc18bcf90c3ecbe27 + Egress-VLANID Attribute (56), length: 6, Value: Untagged (0x32) 123 + Ingress-Filters Attribute (57), length: 6, Value: Disabled + Egress-VLAN-Name Attribute (58), length: 11, Value: Untagged (0x32) vlanname IP (tos 0x0, ttl 64, id 21190, offset 0, flags [none], proto UDP (17), length 109) 127.0.0.1.39300 > 127.0.0.1.1812: RADIUS, length: 81 - Access Request (1), id: 0x5a, Authenticator: 8dd685f50f837e8ad29e9cc095261172 - Username Attribute (1), length: 13, Value: bob-invalid - Password Attribute (2), length: 18, Value: - NAS IP Address Attribute (4), length: 6, Value: 127.0.0.1 - NAS Port Attribute (5), length: 6, Value: 1 - Message Authentication Attribute (80), length: 18, Value: ....(..^A.f..... + Access-Request (1), id: 0x5a, Authenticator: 8dd685f50f837e8ad29e9cc095261172 + User-Name Attribute (1), length: 13, Value: bob-invalid + User-Password Attribute (2), length: 18, Value: + NAS-IP-Address Attribute (4), length: 6, Value: 127.0.0.1 + NAS-Port Attribute (5), length: 6, Value: 1 + Message-Authenticator Attribute (80), length: 18, Value: ....(..^A.f..... IP (tos 0x0, ttl 64, id 21191, offset 0, flags [none], proto UDP (17), length 71) 127.0.0.1.1812 > 127.0.0.1.39300: RADIUS, length: 43 - Access Accept (2), id: 0x5a, Authenticator: fbaa7d05d009953514d00697da4d1dfc - Egress VLAN ID Attribute (56), length: 6, Value: Unknown tag (0x33) 123 - Ingress Filters Attribute (57), length: 6, Value: #3 - Egress VLAN Name Attribute (58), length: 11, Value: Unknown tag (0x33) vlanname + Access-Accept (2), id: 0x5a, Authenticator: fbaa7d05d009953514d00697da4d1dfc + Egress-VLANID Attribute (56), length: 6, Value: Unknown tag (0x33) 123 + Ingress-Filters Attribute (57), length: 6, Value: #3 + Egress-VLAN-Name Attribute (58), length: 11, Value: Unknown tag (0x33) vlanname diff --git a/tests/radius-rfc5176-v.out b/tests/radius-rfc5176-v.out index 33695cd0..aa3210d5 100644 --- a/tests/radius-rfc5176-v.out +++ b/tests/radius-rfc5176-v.out @@ -1,24 +1,24 @@ IP (tos 0x0, ttl 4, id 29161, offset 0, flags [none], proto UDP (17), length 66) 10.0.0.10.12345 > 10.0.0.1.3799: RADIUS, length: 38 - Disconnect Request (40), id: 0x01, Authenticator: e1792d2b4ab349f1a4c0fcc733d091c1 - Message Authentication Attribute (80), length: 18, Value: XQ=f(G..sJ0..... + Disconnect-Request (40), id: 0x01, Authenticator: e1792d2b4ab349f1a4c0fcc733d091c1 + Message-Authenticator Attribute (80), length: 18, Value: XQ=f(G..sJ0..... IP (tos 0x0, ttl 4, id 18682, offset 0, flags [none], proto UDP (17), length 66) 10.0.0.1.3799 > 10.0.0.10.12345: RADIUS, length: 38 - Disconnect ACK (41), id: 0x02, Authenticator: 3bc9c343f689990756b96c583a56890a - Message Authentication Attribute (80), length: 18, Value: .O........iC,'}. + Disconnect-ACK (41), id: 0x02, Authenticator: 3bc9c343f689990756b96c583a56890a + Message-Authenticator Attribute (80), length: 18, Value: .O........iC,'}. IP (tos 0x0, ttl 4, id 22542, offset 0, flags [none], proto UDP (17), length 66) 10.0.0.1.3799 > 10.0.0.10.12345: RADIUS, length: 38 - Disconnect NAK (42), id: 0x03, Authenticator: d867c308c9c43112b3a669a0e8c0ab8c - Message Authentication Attribute (80), length: 18, Value: ...p.I...(.".... + Disconnect-NAK (42), id: 0x03, Authenticator: d867c308c9c43112b3a669a0e8c0ab8c + Message-Authenticator Attribute (80), length: 18, Value: ...p.I...(.".... IP (tos 0x0, ttl 4, id 16413, offset 0, flags [none], proto UDP (17), length 66) 10.0.0.10.12345 > 10.0.0.1.3799: RADIUS, length: 38 - Change of Authorization Request (43), id: 0x04, Authenticator: 5f18309be67cd6150fe4c3a0b93536c9 - Message Authentication Attribute (80), length: 18, Value: '..6|.F..._...[. + CoA-Request (43), id: 0x04, Authenticator: 5f18309be67cd6150fe4c3a0b93536c9 + Message-Authenticator Attribute (80), length: 18, Value: '..6|.F..._...[. IP (tos 0x0, ttl 4, id 170, offset 0, flags [none], proto UDP (17), length 66) 10.0.0.1.3799 > 10.0.0.10.12345: RADIUS, length: 38 - Change of Authorization ACK (44), id: 0x05, Authenticator: 55ab6cb78aa161d692753fa9130c5019 - Message Authentication Attribute (80), length: 18, Value: .........+.x...s + CoA-ACK (44), id: 0x05, Authenticator: 55ab6cb78aa161d692753fa9130c5019 + Message-Authenticator Attribute (80), length: 18, Value: .........+.x...s IP (tos 0x0, ttl 4, id 29645, offset 0, flags [none], proto UDP (17), length 66) 10.0.0.1.3799 > 10.0.0.10.12345: RADIUS, length: 38 - Change of Authorization NAK (45), id: 0x06, Authenticator: 40f21bdee27a87a5d757a30bfed62f28 - Message Authentication Attribute (80), length: 18, Value: .%y.....x...&j.. + CoA-NAK (45), id: 0x06, Authenticator: 40f21bdee27a87a5d757a30bfed62f28 + Message-Authenticator Attribute (80), length: 18, Value: .%y.....x...&j.. diff --git a/tests/radius-v.out b/tests/radius-v.out index 43696b77..6aae418a 100644 --- a/tests/radius-v.out +++ b/tests/radius-v.out @@ -1,47 +1,47 @@ IP (tos 0x0, ttl 255, id 70, offset 0, flags [none], proto UDP (17), length 167) 10.0.0.1.1645 > 10.0.0.100.1812: RADIUS, length: 139 - Access Request (1), id: 0x05, Authenticator: ecfe3d2fe4473ec6299095ee46aedf77 - NAS IP Address Attribute (4), length: 6, Value: 10.0.0.1 - NAS Port Attribute (5), length: 6, Value: 50012 - NAS Port Type Attribute (61), length: 6, Value: Ethernet - Username Attribute (1), length: 14, Value: John.McGuirk - Called Station Attribute (30), length: 19, Value: 00-19-06-EA-B8-8C - Calling Station Attribute (31), length: 19, Value: 00-14-22-E9-54-5E - Service Type Attribute (6), length: 6, Value: Framed - Framed MTU Attribute (12), length: 6, Value: 1500 - EAP Message Attribute (79), length: 19, Value: . - Message Authentication Attribute (80), length: 18, Value: (....$..p.Q1o.x. + Access-Request (1), id: 0x05, Authenticator: ecfe3d2fe4473ec6299095ee46aedf77 + NAS-IP-Address Attribute (4), length: 6, Value: 10.0.0.1 + NAS-Port Attribute (5), length: 6, Value: 50012 + NAS-Port-Type Attribute (61), length: 6, Value: Ethernet + User-Name Attribute (1), length: 14, Value: John.McGuirk + Called-Station-Id Attribute (30), length: 19, Value: 00-19-06-EA-B8-8C + Calling-Station-Id Attribute (31), length: 19, Value: 00-14-22-E9-54-5E + Service-Type Attribute (6), length: 6, Value: Framed + Framed-MTU Attribute (12), length: 6, Value: 1500 + EAP-Message Attribute (79), length: 19, Value: . + Message-Authenticator Attribute (80), length: 18, Value: (....$..p.Q1o.x. IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 137) 10.0.0.100.1812 > 10.0.0.1.1645: RADIUS, length: 109 - Access Challenge (11), id: 0x05, Authenticator: f050649184625d36f14c9075b7a48b83 - Framed IP Address Attribute (8), length: 6, Value: NAS Select - Framed MTU Attribute (12), length: 6, Value: 576 - Service Type Attribute (6), length: 6, Value: Framed - Reply Attribute (18), length: 11, Value: Hello, %u - EAP Message Attribute (79), length: 24, Value: .. - Message Authentication Attribute (80), length: 18, Value: ...<.(.X.13..t4. + Access-Challenge (11), id: 0x05, Authenticator: f050649184625d36f14c9075b7a48b83 + Framed-IP-Address Attribute (8), length: 6, Value: NAS Select + Framed-MTU Attribute (12), length: 6, Value: 576 + Service-Type Attribute (6), length: 6, Value: Framed + Reply-Message Attribute (18), length: 11, Value: Hello, %u + EAP-Message Attribute (79), length: 24, Value: .. + Message-Authenticator Attribute (80), length: 18, Value: ...<.(.X.13..t4. State Attribute (24), length: 18, Value: ..../.0$.s..1..w IP (tos 0x0, ttl 255, id 71, offset 0, flags [none], proto UDP (17), length 202) 10.0.0.1.1645 > 10.0.0.100.1812: RADIUS, length: 174 - Access Request (1), id: 0x06, Authenticator: 6a6f38e6dae830304d2333e5d5364643 - NAS IP Address Attribute (4), length: 6, Value: 10.0.0.1 - NAS Port Attribute (5), length: 6, Value: 50012 - NAS Port Type Attribute (61), length: 6, Value: Ethernet - Username Attribute (1), length: 14, Value: John.McGuirk - Called Station Attribute (30), length: 19, Value: 00-19-06-EA-B8-8C - Calling Station Attribute (31), length: 19, Value: 00-14-22-E9-54-5E - Service Type Attribute (6), length: 6, Value: Framed - Framed MTU Attribute (12), length: 6, Value: 1500 + Access-Request (1), id: 0x06, Authenticator: 6a6f38e6dae830304d2333e5d5364643 + NAS-IP-Address Attribute (4), length: 6, Value: 10.0.0.1 + NAS-Port Attribute (5), length: 6, Value: 50012 + NAS-Port-Type Attribute (61), length: 6, Value: Ethernet + User-Name Attribute (1), length: 14, Value: John.McGuirk + Called-Station-Id Attribute (30), length: 19, Value: 00-19-06-EA-B8-8C + Calling-Station-Id Attribute (31), length: 19, Value: 00-14-22-E9-54-5E + Service-Type Attribute (6), length: 6, Value: Framed + Framed-MTU Attribute (12), length: 6, Value: 1500 State Attribute (24), length: 18, Value: ..../.0$.s..1..w - EAP Message Attribute (79), length: 36, Value: .. - Message Authentication Attribute (80), length: 18, Value: '&.q1.....Ojb..8 + EAP-Message Attribute (79), length: 36, Value: .. + Message-Authenticator Attribute (80), length: 18, Value: '&.q1.....Ojb..8 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 125) 10.0.0.100.1812 > 10.0.0.1.1645: RADIUS, length: 97 - Access Accept (2), id: 0x06, Authenticator: fbba6a784c7decb314caf0f27944a37b - Framed IP Address Attribute (8), length: 6, Value: NAS Select - Framed MTU Attribute (12), length: 6, Value: 576 - Service Type Attribute (6), length: 6, Value: Framed - Reply Attribute (18), length: 21, Value: Hello, John.McGuirk - EAP Message Attribute (79), length: 6, Value: .. - Message Authentication Attribute (80), length: 18, Value: ...b...2.^..NLc` - Username Attribute (1), length: 14, Value: John.McGuirk + Access-Accept (2), id: 0x06, Authenticator: fbba6a784c7decb314caf0f27944a37b + Framed-IP-Address Attribute (8), length: 6, Value: NAS Select + Framed-MTU Attribute (12), length: 6, Value: 576 + Service-Type Attribute (6), length: 6, Value: Framed + Reply-Message Attribute (18), length: 21, Value: Hello, John.McGuirk + EAP-Message Attribute (79), length: 6, Value: .. + Message-Authenticator Attribute (80), length: 18, Value: ...b...2.^..NLc` + User-Name Attribute (1), length: 14, Value: John.McGuirk -- 2.39.5