extern void eigrp_print(netdissect_options *, const u_char *, u_int);
extern void esp_print(netdissect_options *, const u_char *, u_int, const u_char *, u_int, int, u_int);
extern u_int ether_print(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), const u_char *);
-extern u_int ether_print_hdr_len(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), const u_char *, u_int);
+extern u_int ether_hdr_len_print(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), const u_char *, u_int);
extern int ethertype_print(netdissect_options *, u_short, const u_char *, u_int, u_int, const struct lladdr_info *, const struct lladdr_info *);
extern u_int fddi_print(netdissect_options *, const u_char *, u_int, u_int);
extern void forces_print(netdissect_options *, const u_char *, u_int);
* | MAC DA (6)|| MAC SA (6)||Broadcom tag (4)||Type/Length(2)|
* +-----------++-----------++----------------++--------------+
*/
- ret = ether_print_hdr_len(ndo, p, length, caplen, NULL, NULL,
+ ret = ether_hdr_len_print(ndo, p, length, caplen, NULL, NULL,
ETHER_SA_OFFSET + BRCM_TAG_LEN + ETHER_TYPE_LEN);
ndo->ndo_eflag = old_eflag;
return ret;
* FIXME: caplen can and should be derived from ndo->ndo_snapend and p.
*/
u_int
-ether_print_hdr_len(netdissect_options *ndo,
+ether_hdr_len_print(netdissect_options *ndo,
const u_char *p, u_int length, u_int caplen,
void (*print_encap_header)(netdissect_options *ndo, const u_char *),
const u_char *encap_header_arg, u_int hdrlen)
void (*print_encap_header)(netdissect_options *ndo, const u_char *),
const u_char *encap_header_arg)
{
- return (ether_print_hdr_len(ndo, p, length, caplen,
+ return (ether_hdr_len_print(ndo, p, length, caplen,
print_encap_header, encap_header_arg,
ETHER_HDRLEN));
}