ppp: Rip out the now unused option string stuff

Using wireshark is much easier
This commit is contained in:
Denis Kenzior 2010-04-08 16:43:47 -05:00
parent 4f31b6c3b2
commit cad3223a94
3 changed files with 0 additions and 31 deletions

View File

@ -69,7 +69,6 @@ struct pppcp_proto {
guint16 proto;
const char *name;
guint16 supported_codes;
const char **option_strings;
void (*this_layer_up)(struct pppcp_data *data);
void (*this_layer_down)(struct pppcp_data *data);
void (*this_layer_started)(struct pppcp_data *data);

View File

@ -273,22 +273,10 @@ static enum rcr_result ipcp_rcr(struct pppcp_data *pppcp,
return RCR_REJECT;
}
static const char *ipcp_option_strings[256] = {
[IP_ADDRESSES] = "IP-Addresses (deprecated)",
[IP_COMPRESSION_PROTO] = "IP-Compression-Protocol",
[IP_ADDRESS] = "IP-Address",
[MOBILE_IPV4] = "Mobile-IPv4",
[PRIMARY_DNS_SERVER] = "Primary DNS Server Address",
[PRIMARY_NBNS_SERVER] = "Primary NBNS Server Address",
[SECONDARY_DNS_SERVER] = "Secondary DNS Server Address",
[SECONDARY_NBNS_SERVER] = "Secondary NBNS Server Address",
};
struct pppcp_proto ipcp_proto = {
.proto = IPCP_PROTO,
.name = "ipcp",
.supported_codes = IPCP_SUPPORTED_CODES,
.option_strings = ipcp_option_strings,
.this_layer_up = ipcp_up,
.this_layer_down = ipcp_down,
.this_layer_started = ipcp_started,

View File

@ -214,27 +214,9 @@ static enum rcr_result lcp_rcr(struct pppcp_data *pppcp,
return RCR_ACCEPT;
}
static const char *lcp_option_strings[256] = {
[0] = "Vendor Specific",
[1] = "Maximum-Receive-Unit",
[2] = "Async-Control-Character-Map",
[3] = "Authentication-Protocol",
[4] = "Quality-Protocol",
[5] = "Magic-Number",
[6] = "Quality-Protocol (deprecated)",
[7] = "Protocol-Field-Compression",
[8] = "Address-and-Control-Field-Compression",
[9] = "FCS-Alternatives",
[10] = "Self-Describing-Pad",
[11] = "Numbered-Mode",
[12] = "Multi-Link-Procedure (deprecated)",
[13] = "Callback",
};
struct pppcp_proto lcp_proto = {
.proto = LCP_PROTOCOL,
.name = "lcp",
.option_strings = lcp_option_strings,
.supported_codes = LCP_SUPPORTED_CODES,
.this_layer_up = lcp_up,
.this_layer_down = lcp_down,