Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/in6.c
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include "opt_inet.h" | #include "opt_inet.h" | ||||
#include "opt_inet6.h" | #include "opt_inet6.h" | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/capsicum.h> | |||||
#include <sys/eventhandler.h> | #include <sys/eventhandler.h> | ||||
#include <sys/errno.h> | #include <sys/errno.h> | ||||
#include <sys/jail.h> | #include <sys/jail.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/socketvar.h> | #include <sys/socketvar.h> | ||||
#include <sys/sockio.h> | #include <sys/sockio.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct in6_ifreq *ifr = (struct in6_ifreq *)data; | struct in6_ifreq *ifr = (struct in6_ifreq *)data; | ||||
struct in6_ifaddr *ia = NULL; | struct in6_ifaddr *ia = NULL; | ||||
struct in6_aliasreq *ifra = (struct in6_aliasreq *)data; | struct in6_aliasreq *ifra = (struct in6_aliasreq *)data; | ||||
struct sockaddr_in6 *sa6; | struct sockaddr_in6 *sa6; | ||||
int carp_attached = 0; | int carp_attached = 0; | ||||
int error; | int error; | ||||
u_long ocmd = cmd; | u_long ocmd = cmd; | ||||
if (td != NULL && IN_CAPABILITY_MODE(td)) | |||||
return (ECAPMODE); | |||||
/* | /* | ||||
* Compat to make pre-10.x ifconfig(8) operable. | * Compat to make pre-10.x ifconfig(8) operable. | ||||
*/ | */ | ||||
if (cmd == OSIOCAIFADDR_IN6) | if (cmd == OSIOCAIFADDR_IN6) | ||||
cmd = SIOCAIFADDR_IN6; | cmd = SIOCAIFADDR_IN6; | ||||
switch (cmd) { | switch (cmd) { | ||||
▲ Show 20 Lines • Show All 2,334 Lines • Show Last 20 Lines |