arp_netinfo.c revision f4b3ec61df05330d25f55a36b975b4d7519fdeb1
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/hook_impl.h>
#include <sys/netstack.h>
#include <sys/hook_event.h>
#include <inet/arp_impl.h>
/*
* ARP netinfo entry point declarations.
*/
static int arp_getpmtuenabled(netstack_t *);
net_ifaddr_t [], void *, netstack_t *);
static int arp_ispartialchecksum(mblk_t *);
static int arp_isvalidchecksum(mblk_t *);
static net_info_t arp_netinfo = {
};
/*
* Register ARP netinfo functions.
*/
void
{
}
/*
* Unregister ARP netinfo functions.
*/
void
{
}
/*
* Initialize ARP hook family and events
*/
void
{
"net_register_family failed for arp");
}
"net_register_event failed for arp/physical_in");
}
"net_register_event failed for arp/physical_out");
}
&as->as_arp_nic_events);
"net_register_event failed for arp/nic_events");
}
}
void
{
&as->as_arp_nic_events) == 0)
}
&as->as_arp_physical_out_event) == 0)
}
&as->as_arp_physical_in_event) == 0)
}
}
/*
* Determine the name of the lower level interface
*/
static int
netstack_t *ns)
{
return (0);
}
}
return (1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static int
{
return (-1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static int
{
return (-1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static int
{
return (-1);
}
/*
* Determine the instance number of the next lower level interface
*/
static phy_if_t
{
int index;
if (phy_ifdata == 0) {
} else {
break;
}
}
}
return (index);
}
/*
* Given a network interface name, find its ARP layer instance number.
*/
static phy_if_t
{
int index;
index = 0;
break;
}
}
return (index);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static lif_if_t
{
return ((lif_if_t)-1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static int
{
return (-1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static phy_if_t
{
return ((phy_if_t)-1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
int
{
return (-1);
}
/*
* Unsupported with ARP.
*/
/*ARGSUSED*/
static int
{
return (-1);
}