Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 125) sorted by relevance

12345

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dif_mpadm.c79 const char *ifname; in main() local
93 ifname = optarg; in main()
97 ifname = optarg; in main()
119 (*ofuncp)(ifname, handle); in main()
132 is_offline(const char *ifname) in is_offline() argument
153 if (is_offline(ifname)) in do_offline()
163 die("cannot get addresses on %s", ifname); in do_offline()
184 if (!is_offline(ifname)) in undo_offline()
191 die("cannot get addresses for %s", ifname); in undo_offline()
207 die("cannot undo-offline %s: %s\n", ifname, in undo_offline()
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_if.c87 if (strcmp(cifname, ifname) == 0 && in i_ipadm_is_if_down()
133 if (ifname != NULL && strcmp(lifrp->lifr_name, ifname) != 0) in i_ipadm_active_if_info()
580 if (ifname != NULL) in i_ipadm_get_db_if()
587 i_ipadm_get_lnum(const char *ifname) in i_ipadm_get_lnum() argument
830 ifname, ppa); in i_ipadm_slifname()
941 islo = i_ipadm_is_loopback(ifname); in i_ipadm_plumb_if()
965 ifname, af, ipadm_flags); in i_ipadm_plumb_if()
995 linkname = ifname; in i_ipadm_plumb_if()
1181 if (i_ipadm_is_loopback(ifname) || in i_ipadm_unplumb_if()
1427 tmp_ifname[cp - ifname] = '\0'; in i_ipadm_delete_if()
[all …]
H A Dipadm_prop.c389 const char *ifname = arg; in i_ipadm_set_mtu() local
428 const char *ifname = arg; in i_ipadm_set_metric() local
459 const char *ifname = arg; in i_ipadm_set_usesrc() local
597 const char *ifname = arg; in i_ipadm_set_ifprop_flags() local
713 const char *ifname = arg; in i_ipadm_set_forwarding() local
720 if (ifname != NULL) { in i_ipadm_set_forwarding()
836 const char *ifname = arg; in i_ipadm_get_forwarding() local
843 if (ifname != NULL) { in i_ipadm_get_forwarding()
1090 if (ifname != NULL) { in i_ipadm_get_prop()
1245 bufsize, ifname); in i_ipadm_getprop_common()
[all …]
H A Dlibipadm.c476 i_ipadm_is_loopback(const char *ifname) in i_ipadm_is_loopback() argument
480 return (strncmp(ifname, LOOPBACK_IF, len) == 0 && in i_ipadm_is_loopback()
481 (ifname[len] == '\0' || ifname[len] == IPADM_LOGICAL_SEP)); in i_ipadm_is_loopback()
493 i_ipadm_is_vni(const char *ifname) in i_ipadm_is_vni() argument
497 return (ifparse_ifspec(ifname, &ifsp) && in i_ipadm_is_vni()
505 i_ipadm_is_6to4(ipadm_handle_t iph, char *ifname) in i_ipadm_is_6to4() argument
569 char *protostr = NULL, *ifname = NULL, *pval = NULL; in i_ipadm_init_ifprop() local
636 status = i_ipadm_enable_dhcp(iph, ifname, nvl); in i_ipadm_init_addrobj()
641 status = i_ipadm_enable_addrconf(iph, ifname, nvl); in i_ipadm_init_addrobj()
855 if (ifname == NULL || ifname[0] == '\0' || in i_ipadm_validate_ifname()
[all …]
H A Dipadm_ngz.c73 char *ifname, in i_ipadm_rtioctl4() argument
126 w_ifp.sdl_index = if_nametoindex(ifname); in i_ipadm_rtioctl4()
152 char *ifname, in i_ipadm_rtioctl6() argument
202 w_ifp.sdl_index = if_nametoindex(ifname); in i_ipadm_rtioctl6()
386 char *ifname = nwd->ngz_ifname; in i_ipadm_zone_network_attr() local
405 if (ifname != NULL && strcmp(ifname, link) != 0) in i_ipadm_zone_network_attr()
438 if (ifname != NULL) { in i_ipadm_zone_network_attr()
465 if (ifname != NULL && in ipadm_init_net_from_gz()
470 if (ifname != NULL && !(flags & IFF_L3PROTECT)) in ipadm_init_net_from_gz()
475 nwd.ngz_ifname = ifname; in ipadm_init_net_from_gz()
[all …]
H A Dipadm_addr.c427 if (ifname != NULL && strcmp(cifname, ifname) != 0) in i_ipadm_active_addr_info()
725 char *ifname = NULL; in i_ipadm_nvl2ainfo_persist() local
2397 char ifname[IPADM_AOBJSIZ]; in ipadm_create_addrobj() local
2607 if (ifname != NULL) in i_ipadm_get_db_addr()
3215 char ifname[LIFNAMSIZ]; in i_ipadm_op_dhcp() local
3220 bzero(&ifname, sizeof (ifname)); in i_ipadm_op_dhcp()
3221 i_ipadm_addrobj2lifname(addr, ifname, sizeof (ifname)); in i_ipadm_op_dhcp()
3360 if (ifname != NULL && in ipadm_addr_info()
3817 char *ifname; in i_ipadm_validate_create_addr() local
3839 ifname = ipaddr->ipadm_ifname; in i_ipadm_validate_create_addr()
[all …]
/illumos-gate/usr/src/uts/common/io/dmfe/
H A Ddmfe_log.c34 const char *ifname; member
62 cmn_err(prtdata.level, prtdata.fmt, prtdata.ifname, buf); in dmfe_vprt()
77 prtdata.ifname = dmfep->ifname; in dmfe_warning()
90 cmn_err(CE_NOTE, "!%s: CR%d\t%08x", dmfep->ifname, i, reg); in dmfe_warning()
105 prtdata.ifname = dmfep->ifname; in dmfe_error()
125 prtdata.ifname = dmfep->ifname; in dmfe_notice()
145 prtdata.ifname = dmfep->ifname; in dmfe_log()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dl2_packet.c36 l2->ifname, dlpi_strerror(retval)); in link_init()
44 l2->ifname, dlpi_strerror(retval)); in link_init()
51 l2->ifname, dlpi_strerror(retval)); in link_init()
56 l2->ifname, sizeof (l2->own_addr)); in link_init()
82 "message on %s: %s", l2->ifname, dlpi_strerror(retval)); in l2_packet_send()
101 "message on %s: %s", l2->ifname, dlpi_strerror(retval)); in l2_packet_receive()
117 l2_packet_init(const char *ifname, unsigned short protocol, in l2_packet_init() argument
128 (void) strlcpy(l2->ifname, ifname, sizeof (l2->ifname)); in l2_packet_init()
132 retval = dlpi_open(l2->ifname, &l2->dh, DLPI_RAW); in l2_packet_init()
135 l2->ifname, dlpi_strerror(retval)); in l2_packet_init()
/illumos-gate/usr/src/cmd/svc/shell/
H A Dnet_include.sh165 echo "$ifname"
271 for ifname in "$@"; do
272 if if_comp "$physical" $ifname; then
273 get_hostname_ipmpinfo $ifname $type group
487 for ifname in $failed; do
490 group=`get_group $ifname`
493 echo " $ifname (not moved -- not" \
495 processed="$processed $ifname"
527 if_comp $ifname $item && $process_func \
545 if [ "$ifname" = "`get_physical $ifname`" ]; then
[all …]
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c66 struct in_addr *mybraddr, struct in_addr *gateway, char *ifname) in kdlifconfig() argument
94 if (rc = kifioctl(tiptr, SIOCSLIFNETMASK, &sbuf, ifname)) { in kdlifconfig()
114 if (rc = kifioctl(tiptr, SIOCSLIFADDR, &sbuf, ifname)) { in kdlifconfig()
129 ifname)) { in kdlifconfig()
138 if (rc = ksetifflags(tiptr, IFF_UP, ifname)) { in kdlifconfig()
155 if (rc = kifioctl(tiptr, SIOCADDRT, &sbuf, ifname)) { in kdlifconfig()
163 kifioctl(TIUSER *tiptr, int cmd, struct netbuf *nbuf, char *ifname) in kifioctl() argument
199 (void) strncpy((caddr_t)&lifr.lifr_name, ifname, in kifioctl()
214 ksetifflags(TIUSER *tiptr, uint_t value, char *ifname) in ksetifflags() argument
220 if (ifname == NULL) { in ksetifflags()
[all …]
/illumos-gate/usr/src/lib/libdscp/
H A Dlibdscp.c249 char ifname[LIFNAMSIZ]; in dscpAddr() local
261 if (get_ifname(ifname) != 0) { in dscpAddr()
276 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
295 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
359 get_ifname(char *ifname) in get_ifname() argument
373 (void) memset(ifname, 0, LIFNAMSIZ); in get_ifname()
395 i = read(fd, &ifname[count], size - count); in get_ifname()
414 if (isalnum(ifname[i]) != 0) { in get_ifname()
427 if (isalnum(ifname[i]) == 0) { in get_ifname()
438 (void) memmove(ifname, &ifname[begin], len); in get_ifname()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_ip.c159 if (ifname == NULL) in nwamd_get_dhcpinfo_data()
160 ifname = ""; in nwamd_get_dhcpinfo_data()
755 ifname, nwam_strerror(err)); in add_ip_address()
1214 const char *ifname) in nwamd_down_interface() argument
1220 ifname, aobjname); in nwamd_down_interface()
1240 dhcp_release(const char *ifname) in dhcp_release() argument
1251 ainfop->ia_atype, ifname); in dhcp_release()
1259 char *ifname = ncu->ncu_name; in nwamd_plumb_unplumb_interface() local
1265 ifname); in nwamd_plumb_unplumb_interface()
1273 dhcp_release(ifname); in nwamd_plumb_unplumb_interface()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_nic.c336 char *ifname; in smb_nic_addhost() local
349 ifname = (char *)if_names[i]; in smb_nic_addhost()
350 if ((ifname == NULL) || (*ifname == '\0')) in smb_nic_addhost()
352 buflen += strlen(ifname) + 1; in smb_nic_addhost()
358 ifname = if_list; in smb_nic_addhost()
360 ifname += snprintf(ifname, buflen, "%s,", if_names[i]); in smb_nic_addhost()
407 char *ifname; in smb_nic_list_create() local
454 if (strchr(ifname, ':')) in smb_nic_list_create()
610 char *ifname; in smb_nic_hlist_sysget() local
695 if (ifname == NULL) { in smb_nic_hlist_sysget()
[all …]
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp_tunables.c35 const char *ifname, const void *pval, uint_t flags) in udp_set_buf_prop() argument
38 cr, pinfo, ifname, pval, flags)); in udp_set_buf_prop()
42 udp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in udp_get_buf_prop() argument
46 pinfo, ifname, val, psize, flags)); in udp_get_buf_prop()
56 const char *ifname, const void *pval, uint_t flags) in udp_smallest_anon_set() argument
74 const char *ifname, const void *pval, uint_t flags) in udp_largest_anon_set() argument
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_tunables.c50 const char *ifname, const void* pval, uint_t flags) in ip_set_forwarding() argument
69 per_ill = (ifname != NULL && ifname[0] != '\0'); in ip_set_forwarding()
89 if (per_ill && strcmp(ifname, ill->ill_name) != 0) in ip_set_forwarding()
123 if (ifname == NULL || ifname[0] == '\0') { in ip_get_forwarding()
139 if (strcmp(ifname, ill->ill_name) == 0) in ip_get_forwarding()
162 const char *ifname, const void* pval, uint_t flags) in ip_set_debug() argument
214 const char *ifname, const void* pval, uint_t flags) in ip_set_cgtp_filter() argument
283 if (ifname == NULL || ifname[0] == '\0') in ip_get_mtu()
293 if (strcmp(ifname, ill->ill_name) == 0) in ip_get_mtu()
358 const char *ifname, const void* pval, uint_t flags) in ip_set_src_multihoming() argument
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintaddr.c13 void printaddr(v, type, ifname, addr, mask) in printaddr() argument
15 char *ifname;
27 printf("%s", ifname);
61 printf("%s/%s", ifname, suffix);
H A Dprintactiveaddr.c18 printactiveaddress(v, fmt, addr, ifname) in printactiveaddress() argument
22 char *ifname;
31 printaddr(v, FRI_NORMAL, ifname, (u_32_t *)&addr->in6, NULL);
/illumos-gate/usr/src/uts/common/inet/
H A Dtunables.c77 const char *ifname, const void* pval, uint_t flags) in mod_set_boolean() argument
101 mod_get_boolean(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_boolean() argument
151 const char *ifname, const void *pval, uint_t flags) in mod_set_uint32() argument
168 const char *ifname, const void* pval, uint_t flags) in mod_set_aligned() argument
172 if ((err = mod_set_uint32(stack, cr, pinfo, ifname, pval, flags)) != 0) in mod_set_aligned()
190 mod_get_uint32(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_uint32() argument
269 mod_prop_info_t *pinfo, const char *ifname, void *pval, uint_t psize, in mod_get_buf_prop() argument
280 return (mod_get_uint32(stack, pinfo, ifname, pval, psize, flags)); in mod_get_buf_prop()
289 mod_get_allprop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_allprop() argument
347 const char *ifname, const void* val, uint_t flags) in mod_set_extra_privports() argument
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinterface_id.c50 if_nametoindex(const char *ifname) in if_nametoindex() argument
59 if ((ifname == NULL)||(*ifname == '\0')) { in if_nametoindex()
69 size = strlen(ifname); in if_nametoindex()
75 strncpy(lifr.lifr_name, ifname, size +1); in if_nametoindex()
108 if_indextoname(uint32_t ifindex, char *ifname) in if_indextoname() argument
200 (void) strncpy(ifname, lifrp->lifr_name, size + 1); in if_indextoname()
210 return (ifname); in if_indextoname()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c54 const char *ifname, const void* pr_val, uint_t flags) in tcp_set_1948phrase() argument
73 const char *ifname, void *val, uint_t psize, uint_t flags) in tcp_listener_conf_get() argument
117 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_add() argument
166 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument
195 const char *ifname, const void *pval, uint_t flags) in tcp_set_buf_prop() argument
198 cr, pinfo, ifname, pval, flags)); in tcp_set_buf_prop()
206 pinfo, ifname, val, psize, flags)); in tcp_get_buf_prop()
216 const char *ifname, const void *pval, uint_t flags) in tcp_smallest_anon_set() argument
234 const char *ifname, const void *pval, uint_t flags) in tcp_largest_anon_set() argument
252 const char *ifname, const void *pval, uint_t flags) in tcp_set_cc_algorithm() argument
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c58 ifname_to_hostconf(const char *ifname, boolean_t isv6) in ifname_to_hostconf() argument
63 DHCP_HOSTCONF_PREFIX, ifname, in ifname_to_hostconf()
79 remove_hostconf(const char *ifname, boolean_t isv6) in remove_hostconf() argument
81 return (unlink(ifname_to_hostconf(ifname, isv6))); in remove_hostconf()
97 read_hostconf(const char *ifname, PKT_LIST **plpp, uint_t plplen, in read_hostconf() argument
109 fd = open(ifname_to_hostconf(ifname, isv6), O_RDONLY); in read_hostconf()
324 const char *ifname, in write_hostconf() argument
337 fd = open(ifname_to_hostconf(ifname, isv6), O_WRONLY|O_CREAT|O_TRUNC, in write_hostconf()
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_admin.c77 ipmp_offline(ipmp_handle_t handle, const char *ifname, uint_t minred) in ipmp_offline() argument
83 (void) strlcpy(mio.mio_ifname, ifname, LIFNAMSIZ); in ipmp_offline()
88 ipmp_undo_offline(ipmp_handle_t handle, const char *ifname) in ipmp_undo_offline() argument
93 (void) strlcpy(miu.miu_ifname, ifname, LIFNAMSIZ); in ipmp_undo_offline()
/illumos-gate/usr/src/test/net-tests/tests/
H A Dnet_common.ksh308 typeset ifname=$2
310 typeset ipname=$ifname/$version
328 typeset ipname=$ifname/v6add
347 typeset ifname=$2
348 typeset err="failed to delete interface $ifname in zone $zone"
354 if zlogin $zone ipadm show-if $ifname > /dev/null 2>&1; then
355 if zlogin $zone ipadm delete-if $ifname > /dev/null; then
356 dbg "deleted interface $ifname in zone $zone"
361 dbg "interface $ifname doesn't exist in zone $zone"
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c47 const char *ifname, void *val, uint_t psize, uint_t flags) in sctp_listener_conf_get() argument
91 const char *ifname, const void* pval, uint_t flags) in sctp_listener_conf_add() argument
140 const char *ifname, const void* pval, uint_t flags) in sctp_listener_conf_del() argument
169 const char *ifname, const void *pval, uint_t flags) in sctp_set_buf_prop() argument
172 stack, cr, pinfo, ifname, pval, flags)); in sctp_set_buf_prop()
176 sctp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in sctp_get_buf_prop() argument
180 stack, pinfo, ifname, val, psize, flags)); in sctp_get_buf_prop()
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_log.c72 rge_log_data.who = rgep->ifname; in rge_notice()
92 rge_log_data.who = rgep->ifname; in rge_log()
112 rge_log_data.who = rgep->ifname; in rge_problem()
132 rge_log_data.who = rgep->ifname; in rge_error()
174 rge_log_data.who = rgep->ifname; in rge_db()

12345