tag | line | file | source code |
main_dev | 47 | include/linux/net_alias.h | struct device *main_dev; /* pointer to main device */ |
main_dev | 125 | include/linux/net_alias.h | extern struct device * net_alias_dev_chk(struct device *main_dev, struct sockaddr *sa, int flags_on, int flags_off); |
main_dev | 126 | include/linux/net_alias.h | extern struct device * net_alias_dev_chk32(struct device *main_dev, int family, __u32 addr32, int flags_on, int flags_off); |
main_dev | 128 | include/linux/net_alias.h | extern struct device * net_alias_dev_rcv_sel(struct device *main_dev, struct sockaddr *sa_src, struct sockaddr *sa_dst); |
main_dev | 129 | include/linux/net_alias.h | extern struct device * net_alias_dev_rcv_sel32(struct device *main_dev, int family, __u32 src, __u32 dst); |
main_dev | 139 | include/linux/net_alias.h | return (net_alias_is(dev))? dev->my_alias->main_dev : dev; |
main_dev | 74 | net/core/net_alias.c | static struct device *net_alias_dev_create(struct device *main_dev, int slot, int *err, struct sockaddr *sa, void *data); |
main_dev | 75 | net/core/net_alias.c | static struct device *net_alias_dev_delete(struct device *main_dev, int slot, int *err); |
main_dev | 246 | net/core/net_alias.c | struct device *main_dev; |
main_dev | 258 | net/core/net_alias.c | main_dev = alias->main_dev; |
main_dev | 261 | net/core/net_alias.c | family = (sa)? sa->sa_family : main_dev->family; |
main_dev | 266 | net/core/net_alias.c | dev->type = main_dev->type; |
main_dev | 267 | net/core/net_alias.c | dev->hard_header_len = main_dev->hard_header_len; |
main_dev | 268 | net/core/net_alias.c | memcpy(dev->broadcast, main_dev->broadcast, MAX_ADDR_LEN); |
main_dev | 269 | net/core/net_alias.c | memcpy(dev->dev_addr, main_dev->dev_addr, MAX_ADDR_LEN); |
main_dev | 270 | net/core/net_alias.c | dev->addr_len = main_dev->addr_len; |
main_dev | 273 | net/core/net_alias.c | dev->flags = main_dev->flags & NET_ALIAS_IFF_MASK & ~IFF_UP; |
main_dev | 279 | net/core/net_alias.c | if (family == main_dev->family) |
main_dev | 281 | net/core/net_alias.c | dev->metric = main_dev->metric; |
main_dev | 282 | net/core/net_alias.c | dev->mtu = main_dev->mtu; |
main_dev | 283 | net/core/net_alias.c | dev->pa_alen = main_dev->pa_alen; |
main_dev | 284 | net/core/net_alias.c | dev->hard_header = main_dev->hard_header; |
main_dev | 285 | net/core/net_alias.c | dev->rebuild_header = main_dev->rebuild_header; |
main_dev | 333 | net/core/net_alias.c | net_alias_dev_create(struct device *main_dev, int slot, int *err, struct sockaddr *sa, void *data) |
main_dev | 344 | net/core/net_alias.c | alias_info = main_dev->alias_info; |
main_dev | 350 | net/core/net_alias.c | family = (sa)? sa->sa_family : main_dev->family; |
main_dev | 367 | net/core/net_alias.c | main_dev->name, slot, family); |
main_dev | 382 | net/core/net_alias.c | if (! (main_dev->flags & IFF_UP) ) |
main_dev | 407 | net/core/net_alias.c | alias->main_dev = main_dev; |
main_dev | 411 | net/core/net_alias.c | sprintf(alias->name, "%s:%d", main_dev->name, slot); |
main_dev | 458 | net/core/net_alias.c | alias_info->taildev = main_dev; |
main_dev | 459 | net/core/net_alias.c | main_dev->alias_info = alias_info; |
main_dev | 479 | net/core/net_alias.c | net_alias_dev_delete(struct device *main_dev, int slot, int *err) |
main_dev | 492 | net/core/net_alias.c | if (main_dev == NULL) return NULL; |
main_dev | 498 | net/core/net_alias.c | alias_info = main_dev->alias_info; |
main_dev | 508 | net/core/net_alias.c | for (prevdev=main_dev, alias = NULL;prevdev->next && n_aliases; prevdev = prevdev->next) |
main_dev | 575 | net/core/net_alias.c | main_dev->alias_info = NULL; |
main_dev | 583 | net/core/net_alias.c | if (main_dev->alias_info == NULL) |
main_dev | 600 | net/core/net_alias.c | net_alias_free(struct device *main_dev) |
main_dev | 612 | net/core/net_alias.c | if (!(alias_info = main_dev->alias_info)) return; |
main_dev | 622 | net/core/net_alias.c | dev = main_dev->next; |
main_dev | 623 | net/core/net_alias.c | main_dev->next = alias_info->taildev->next; |
main_dev | 624 | net/core/net_alias.c | main_dev->alias_info = NULL; |
main_dev | 638 | net/core/net_alias.c | if (alias->main_dev == main_dev) |
main_dev | 658 | net/core/net_alias.c | main_dev->name, alias->name); |
main_dev | 662 | net/core/net_alias.c | main_dev->name); |
main_dev | 749 | net/core/net_alias.c | struct device *main_dev; |
main_dev | 771 | net/core/net_alias.c | if ( (main_dev = alias->main_dev) == NULL ) |
main_dev | 781 | net/core/net_alias.c | if (!(alias_info=main_dev->alias_info)) |
main_dev | 1064 | net/core/net_alias.c | net_alias_dev_chk(struct device *main_dev, struct sockaddr *sa,int flags_on, int flags_off) |
main_dev | 1066 | net/core/net_alias.c | struct net_alias_info *alias_info = main_dev->alias_info; |
main_dev | 1092 | net/core/net_alias.c | net_alias_dev_chk32(struct device *main_dev, int family, __u32 addr32, |
main_dev | 1095 | net/core/net_alias.c | struct net_alias_info *alias_info = main_dev->alias_info; |
main_dev | 1115 | net/core/net_alias.c | net_alias_dev_rcv_sel(struct device *main_dev, struct sockaddr *sa_src, struct sockaddr *sa_dst) |
main_dev | 1122 | net/core/net_alias.c | if (main_dev == NULL) return NULL; |
main_dev | 1128 | net/core/net_alias.c | if ((alias_info = main_dev->alias_info) == NULL) |
main_dev | 1129 | net/core/net_alias.c | return main_dev; |
main_dev | 1136 | net/core/net_alias.c | if (family == AF_UNSPEC) return main_dev; |
main_dev | 1142 | net/core/net_alias.c | if ( (nat = nat_getbytype(family)) == NULL ) return main_dev; |
main_dev | 1150 | net/core/net_alias.c | if (nat_dev_addr_chk_1(nat, main_dev,sa_dst)) |
main_dev | 1151 | net/core/net_alias.c | return main_dev; |
main_dev | 1162 | net/core/net_alias.c | if ( sa_src == NULL || nat->dev_select == NULL) return main_dev; |
main_dev | 1163 | net/core/net_alias.c | dev = nat->dev_select(nat, main_dev, sa_src); |
main_dev | 1165 | net/core/net_alias.c | if (dev == NULL || dev->family != family) return main_dev; |
main_dev | 1172 | net/core/net_alias.c | ( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL; |
main_dev | 1178 | net/core/net_alias.c | return (dev)? dev : main_dev; |
main_dev | 1187 | net/core/net_alias.c | net_alias_dev_rcv_sel32(struct device *main_dev, int family, __u32 src, __u32 dst) |
main_dev | 1194 | net/core/net_alias.c | if (main_dev == NULL) return NULL; |
main_dev | 1200 | net/core/net_alias.c | if ((alias_info = main_dev->alias_info) == NULL) |
main_dev | 1201 | net/core/net_alias.c | return main_dev; |
main_dev | 1207 | net/core/net_alias.c | if (dst == main_dev->pa_addr) |
main_dev | 1208 | net/core/net_alias.c | return main_dev; |
main_dev | 1210 | net/core/net_alias.c | if (family == AF_UNSPEC) return main_dev; |
main_dev | 1216 | net/core/net_alias.c | if ( (nat = nat_getbytype(family)) == NULL ) return main_dev; |
main_dev | 1232 | net/core/net_alias.c | if ( src == 0 || nat->dev_select == NULL) return main_dev; |
main_dev | 1237 | net/core/net_alias.c | dev = nat->dev_select(nat, main_dev, (struct sockaddr *)&sin_src); |
main_dev | 1239 | net/core/net_alias.c | if (dev == NULL || dev->family != family) return main_dev; |
main_dev | 1246 | net/core/net_alias.c | ( (dev->my_alias->main_dev == main_dev)? dev : NULL) : NULL; |
main_dev | 1252 | net/core/net_alias.c | return (dev)? dev : main_dev; |
main_dev | 79 | net/ipv4/ip_alias.c | struct device *ip_alias_dev_select(struct net_alias_type *this, struct device *main_dev, struct sockaddr *sa) |
main_dev | 89 | net/ipv4/ip_alias.c | if (main_dev == NULL) |