/net/bridge/ |
D | br_multicast.c | 41 struct net_bridge_port *port); 43 struct net_bridge_port *port, 48 struct net_bridge_port *port, 286 br_mdb_notify(br->dev, p->port, &pg->addr, RTM_DELMDB, in br_multicast_del_pg() 303 struct net_bridge *br = pg->port->br; in br_multicast_port_group_expired() 530 struct net_bridge *br, struct net_bridge_port *port, in br_multicast_get_group() argument 554 port ? port->dev->name : br->dev->name); in br_multicast_get_group() 565 port ? port->dev->name : br->dev->name); in br_multicast_get_group() 578 port ? port->dev->name : br->dev->name); in br_multicast_get_group() 587 port ? port->dev->name : br->dev->name, in br_multicast_get_group() [all …]
|
/net/hsr/ |
D | hsr_slave.c | 24 struct hsr_port *port; in hsr_handle_frame() local 32 port = hsr_port_get_rcu(skb->dev); in hsr_handle_frame() 33 if (!port) in hsr_handle_frame() 36 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) { in hsr_handle_frame() 47 hsr_forward_skb(skb, port); in hsr_handle_frame() 103 static int hsr_portdev_setup(struct net_device *dev, struct hsr_port *port) in hsr_portdev_setup() argument 117 res = netdev_rx_handler_register(dev, hsr_handle_frame, port); in hsr_portdev_setup() 135 struct hsr_port *port, *master; in hsr_add_port() local 144 port = hsr_port_get_hsr(hsr, type); in hsr_add_port() 145 if (port != NULL) in hsr_add_port() [all …]
|
D | hsr_forward.c | 104 struct hsr_port *port) in frame_get_stripped_skb() argument 113 struct hsr_port *port) in hsr_fill_tag() argument 119 if (port->type == HSR_PT_SLAVE_A) in hsr_fill_tag() 139 struct hsr_port *port) in create_tagged_skb() argument 163 hsr_fill_tag(skb, frame, port); in create_tagged_skb() 172 struct hsr_port *port) in frame_get_tagged_skb() argument 177 if ((port->type != HSR_PT_SLAVE_A) && (port->type != HSR_PT_SLAVE_B)) { in frame_get_tagged_skb() 182 return create_tagged_skb(frame->skb_std, frame, port); in frame_get_tagged_skb() 206 static int hsr_xmit(struct sk_buff *skb, struct hsr_port *port, in hsr_xmit() argument 210 hsr_addr_subst_dest(frame->node_src, skb, port); in hsr_xmit() [all …]
|
D | hsr_main.c | 27 struct hsr_port *port, *master; in hsr_netdev_notify() local 33 port = hsr_port_get_rtnl(dev); in hsr_netdev_notify() 34 if (port == NULL) { in hsr_netdev_notify() 38 port = hsr_port_get_hsr(hsr, HSR_PT_MASTER); in hsr_netdev_notify() 39 if (port == NULL) { in hsr_netdev_notify() 44 hsr = port->hsr; in hsr_netdev_notify() 54 if (port->type == HSR_PT_MASTER) { in hsr_netdev_notify() 64 if (port->type == HSR_PT_SLAVE_A) { in hsr_netdev_notify() 70 port = hsr_port_get_hsr(hsr, HSR_PT_SLAVE_B); in hsr_netdev_notify() 73 port ? in hsr_netdev_notify() [all …]
|
D | hsr_device.c | 64 struct hsr_port *port; in hsr_check_carrier() local 70 hsr_for_each_port(master->hsr, port) in hsr_check_carrier() 71 if ((port->type != HSR_PT_MASTER) && is_slave_up(port->dev)) { in hsr_check_carrier() 124 struct hsr_port *port; in hsr_get_max_mtu() local 128 hsr_for_each_port(hsr, port) in hsr_get_max_mtu() 129 if (port->type != HSR_PT_MASTER) in hsr_get_max_mtu() 130 mtu_max = min(port->dev->mtu, mtu_max); in hsr_get_max_mtu() 161 struct hsr_port *port; in hsr_dev_open() local 168 hsr_for_each_port(hsr, port) { in hsr_dev_open() 169 if (port->type == HSR_PT_MASTER) in hsr_dev_open() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 26 unsigned int addroff, __be32 ip, __be16 port) in set_addr() argument 32 __be16 port; in set_addr() member 38 buf.port = port; in set_addr() 75 union nf_inet_addr *addr, __be16 port) in set_h225_addr() argument 78 addr->ip, port); in set_h225_addr() 85 union nf_inet_addr *addr, __be16 port) in set_h245_addr() argument 89 addr->ip, port); in set_h245_addr() 101 __be16 port; in set_sig_addr() local 105 if (get_h225_addr(ct, *data, &taddr[i], &addr, &port)) { in set_sig_addr() 107 port == info->sig_port[dir]) { in set_sig_addr() [all …]
|
/net/netfilter/ |
D | nf_nat_sip.c | 82 const union nf_inet_addr *addr, u16 port) in sip_sprintf_addr_port() argument 85 return sprintf(buffer, "%pI4:%u", &addr->ip, port); in sip_sprintf_addr_port() 87 return sprintf(buffer, "[%pI6c]:%u", &addr->ip6, port); in sip_sprintf_addr_port() 94 union nf_inet_addr *addr, __be16 port) in map_addr() argument 106 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr() 108 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr() 110 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr() 113 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr() 117 if (nf_inet_addr_cmp(&newaddr, addr) && newport == port) in map_addr() 134 __be16 port; in map_sip_addr() local [all …]
|
D | nf_nat_ftp.c | 31 union nf_inet_addr *addr, u16 port) in nf_nat_ftp_fmt_cmd() argument 41 port >> 8, in nf_nat_ftp_fmt_cmd() 42 port & 0xFF); in nf_nat_ftp_fmt_cmd() 46 &addr->ip, port); in nf_nat_ftp_fmt_cmd() 49 &addr->ip6, port); in nf_nat_ftp_fmt_cmd() 51 return snprintf(buffer, buflen, "|||%u|", port); in nf_nat_ftp_fmt_cmd() 68 u_int16_t port; in nf_nat_ftp() local 78 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nf_nat_ftp() 86 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in nf_nat_ftp() 89 exp->tuple.dst.u.tcp.port = htons(port); in nf_nat_ftp() [all …]
|
D | nf_nat_irc.c | 39 u_int16_t port; in help() local 45 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 50 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help() 53 exp->tuple.dst.u.tcp.port = htons(port); in help() 58 port = 0; in help() 63 if (port == 0) { in help() 82 snprintf(buffer, sizeof(buffer), "%u %u", ntohl(newaddr.ip), port); in help() 84 buffer, &newaddr.ip, port); in help()
|
D | nf_nat_amanda.c | 35 u_int16_t port; in help() local 39 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help() 47 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help() 50 exp->tuple.dst.u.tcp.port = htons(port); in help() 55 port = 0; in help() 60 if (port == 0) { in help() 65 sprintf(buffer, "%u", port); in help()
|
D | nf_conntrack_h323_main.c | 56 union nf_inet_addr *addr, __be16 port) 61 union nf_inet_addr *addr, __be16 port) 79 __be16 port, __be16 rtp_port, 87 H245_TransportAddress *taddr, __be16 port, 94 TransportAddress *taddr, __be16 port, 101 TransportAddress *taddr, __be16 port, 108 __be16 port, struct nf_conntrack_expect *exp) 225 union nf_inet_addr *addr, __be16 *port) in get_h245_addr() argument 252 memcpy(port, p + len, sizeof(__be16)); in get_h245_addr() 266 __be16 port; in expect_rtp_rtcp() local [all …]
|
/net/irda/ircomm/ |
D | ircomm_tty.c | 108 static void ircomm_port_raise_dtr_rts(struct tty_port *port, int raise) in ircomm_port_raise_dtr_rts() argument 110 struct ircomm_tty_cb *self = container_of(port, struct ircomm_tty_cb, in ircomm_port_raise_dtr_rts() 111 port); in ircomm_port_raise_dtr_rts() 125 static int ircomm_port_carrier_raised(struct tty_port *port) in ircomm_port_carrier_raised() argument 127 struct ircomm_tty_cb *self = container_of(port, struct ircomm_tty_cb, in ircomm_port_carrier_raised() 128 port); in ircomm_port_carrier_raised() 183 tty_port_destroy(&self->port); in __ircomm_tty_cleanup() 223 if (test_and_set_bit(ASYNCB_INITIALIZED, &self->port.flags)) { in ircomm_tty_startup() 260 clear_bit(ASYNCB_INITIALIZED, &self->port.flags); in ircomm_tty_startup() 273 struct tty_port *port = &self->port; in ircomm_tty_block_til_ready() local [all …]
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipport.c | 47 __be16 port; member 60 ip1->port == ip2->port && in hash_ipport4_data_equal() 69 nla_put_net16(skb, IPSET_ATTR_PORT, data->port) || in hash_ipport4_data_list() 83 next->port = d->port; in hash_ipport4_data_next() 100 &e.port, &e.proto)) in hash_ipport4_kadt() 115 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipport4_uadt() local 135 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt() 148 e.port = 0; in hash_ipport4_uadt() 172 port_to = port = ntohs(e.port); in hash_ipport4_uadt() 175 if (port > port_to) in hash_ipport4_uadt() [all …]
|
D | ip_set_hash_ipportip.c | 48 __be16 port; member 60 ip1->port == ip2->port && in hash_ipportip4_data_equal() 70 nla_put_net16(skb, IPSET_ATTR_PORT, data->port) || in hash_ipportip4_data_list() 84 next->port = d->port; in hash_ipportip4_data_next() 102 &e.port, &e.proto)) in hash_ipportip4_kadt() 118 u32 ip, ip_to = 0, p = 0, port, port_to; in hash_ipportip4_uadt() local 142 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt() 155 e.port = 0; in hash_ipportip4_uadt() 179 port_to = port = ntohs(e.port); in hash_ipportip4_uadt() 182 if (port > port_to) in hash_ipportip4_uadt() [all …]
|
D | ip_set_hash_netport.c | 56 __be16 port; member 70 ip1->port == ip2->port && in hash_netport4_data_equal() 107 nla_put_net16(skb, IPSET_ATTR_PORT, data->port) || in hash_netport4_data_list() 124 next->port = d->port; in hash_netport4_data_next() 147 &e.port, &e.proto)) in hash_netport4_kadt() 164 u32 port, port_to, p = 0, ip = 0, ip_to = 0, last; in hash_netport4_uadt() local 193 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport4_uadt() 206 e.port = 0; in hash_netport4_uadt() 224 port = port_to = ntohs(e.port); in hash_netport4_uadt() 227 if (port_to < port) in hash_netport4_uadt() [all …]
|
D | ip_set_hash_ipportnet.c | 58 __be16 port; member 74 ip1->port == ip2->port && in hash_ipportnet4_data_equal() 111 nla_put_net16(skb, IPSET_ATTR_PORT, data->port) || in hash_ipportnet4_data_list() 128 next->port = d->port; in hash_ipportnet4_data_next() 152 &e.port, &e.proto)) in hash_ipportnet4_kadt() 170 u32 ip = 0, ip_to = 0, p = 0, port, port_to; in hash_ipportnet4_uadt() local 204 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet4_uadt() 217 e.port = 0; in hash_ipportnet4_uadt() 252 port_to = port = ntohs(e.port); in hash_ipportnet4_uadt() 255 if (port > port_to) in hash_ipportnet4_uadt() [all …]
|
D | ip_set_hash_netportnet.c | 51 __be16 port; member 70 ip1->port == ip2->port && in hash_netportnet4_data_equal() 120 nla_put_net16(skb, IPSET_ATTR_PORT, data->port) || in hash_netportnet4_data_list() 138 next->port = d->port; in hash_netportnet4_data_next() 168 &e.port, &e.proto)) in hash_netportnet4_kadt() 187 u32 ip = 0, ip_to = 0, ip_last, p = 0, port, port_to; in hash_netportnet4_uadt() local 226 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet4_uadt() 239 e.port = 0; in hash_netportnet4_uadt() 271 port_to = port = ntohs(e.port); in hash_netportnet4_uadt() 274 if (port > port_to) in hash_netportnet4_uadt() [all …]
|
D | ip_set_getport.c | 25 bool src, __be16 *port, u8 *proto) in get_port() argument 37 *port = src ? th->source : th->dest; in get_port() 49 *port = src ? sh->source : sh->dest; in get_port() 62 *port = src ? uh->source : uh->dest; in get_port() 73 *port = (__force __be16)htons((ic->type << 8) | ic->code); in get_port() 84 *port = (__force __be16) in get_port() 98 __be16 *port, u8 *proto) in ip_set_get_ip4_port() argument 125 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port() 132 __be16 *port, u8 *proto) in ip_set_get_ip6_port() argument 146 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port() [all …]
|
D | ip_set_bitmap_port.c | 53 port_to_id(const struct bitmap_port *m, u16 port) in port_to_id() argument 55 return port - m->first_port; in port_to_id() 112 u16 port = 0; in bitmap_port_kadt() local 118 port = ntohs(__port); in bitmap_port_kadt() 120 if (port < map->first_port || port > map->last_port) in bitmap_port_kadt() 123 e.id = port_to_id(map, port); in bitmap_port_kadt() 136 u32 port; /* wraparound */ in bitmap_port_uadt() local 147 port = ip_set_get_h16(tb[IPSET_ATTR_PORT]); in bitmap_port_uadt() 148 if (port < map->first_port || port > map->last_port) in bitmap_port_uadt() 155 e.id = port_to_id(map, port); in bitmap_port_uadt() [all …]
|
/net/bluetooth/rfcomm/ |
D | tty.c | 47 struct tty_port port; member 81 static void rfcomm_dev_destruct(struct tty_port *port) in rfcomm_dev_destruct() argument 83 struct rfcomm_dev *dev = container_of(port, struct rfcomm_dev, port); in rfcomm_dev_destruct() 111 static int rfcomm_dev_activate(struct tty_port *port, struct tty_struct *tty) in rfcomm_dev_activate() argument 113 struct rfcomm_dev *dev = container_of(port, struct rfcomm_dev, port); in rfcomm_dev_activate() 123 static int rfcomm_dev_carrier_raised(struct tty_port *port) in rfcomm_dev_carrier_raised() argument 125 struct rfcomm_dev *dev = container_of(port, struct rfcomm_dev, port); in rfcomm_dev_carrier_raised() 131 static void rfcomm_dev_shutdown(struct tty_port *port) in rfcomm_dev_shutdown() argument 133 struct rfcomm_dev *dev = container_of(port, struct rfcomm_dev, port); in rfcomm_dev_shutdown() 168 if (dev && !tty_port_get(&dev->port)) in rfcomm_dev_get() [all …]
|
/net/rds/ |
D | cong.c | 291 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port) in rds_cong_set_bit() argument 297 &map->m_addr, ntohs(port), map); in rds_cong_set_bit() 299 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit() 300 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit() 305 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) in rds_cong_clear_bit() argument 311 &map->m_addr, ntohs(port), map); in rds_cong_clear_bit() 313 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit() 314 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit() 319 static int rds_cong_test_bit(struct rds_cong_map *map, __be16 port) in rds_cong_test_bit() argument 324 i = be16_to_cpu(port) / RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit() [all …]
|
/net/dsa/ |
D | slave.c | 101 err = ds->drv->port_enable(ds, p->port, p->phy); in dsa_slave_open() 107 ds->drv->port_stp_update(ds, p->port, stp_state); in dsa_slave_open() 147 ds->drv->port_disable(ds, p->port, p->phy); in dsa_slave_close() 150 ds->drv->port_stp_update(ds, p->port, BR_STATE_DISABLED); in dsa_slave_close() 269 err = ds->drv->port_vlan_prepare(ds, p->port, vlan, trans); in dsa_slave_port_vlan_add() 273 err = ds->drv->port_vlan_add(ds, p->port, vlan, trans); in dsa_slave_port_vlan_add() 290 return ds->drv->port_vlan_del(ds, p->port, vlan); in dsa_slave_port_vlan_del() 307 err = ds->drv->port_pvid_get(ds, p->port, &pvid); in dsa_slave_port_vlan_dump() 316 if (!test_bit(p->port, members)) in dsa_slave_port_vlan_dump() 325 if (test_bit(p->port, untagged)) in dsa_slave_port_vlan_dump() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 90 __be32 *addr, __be16 *port, in ip_vs_ftp_get_addrport() argument 152 *port = get_unaligned((__be16 *) (p + 4)); in ip_vs_ftp_get_addrport() 177 __be16 port; in ip_vs_ftp_out() local 213 &from.ip, &port, in ip_vs_ftp_out() 218 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out() 226 iph->protocol, &from, port, in ip_vs_ftp_out() 234 0, &cp->vaddr, port, &p); in ip_vs_ftp_out() 236 n_cp = ip_vs_conn_new(&p, AF_INET, &from, port, in ip_vs_ftp_out() 251 port = n_cp->vport; in ip_vs_ftp_out() 257 ntohs(port) >> 8, in ip_vs_ftp_out() [all …]
|
D | ip_vs_sh.c | 90 __be16 port, unsigned int offset) in ip_vs_sh_hashkey() argument 99 return (offset + (ntohs(port) + ntohl(addr_fold))*2654435761UL) & in ip_vs_sh_hashkey() 109 const union nf_inet_addr *addr, __be16 port) in ip_vs_sh_get() argument 111 unsigned int hash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get() 126 const union nf_inet_addr *addr, __be16 port) in ip_vs_sh_get_fallback() argument 133 ihash = ip_vs_sh_hashkey(svc->af, addr, port, 0); in ip_vs_sh_get_fallback() 141 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_sh_get_fallback() 148 hash = ip_vs_sh_hashkey(svc->af, addr, port, roffset); in ip_vs_sh_get_fallback() 157 ntohs(dest->port), roffset); in ip_vs_sh_get_fallback() 318 __be16 port = 0; in ip_vs_sh_schedule() local [all …]
|
/net/sctp/ |
D | probe.c | 46 static int port __read_mostly = 0; 47 MODULE_PARM_DESC(port, "Port to match (0=all)"); 48 module_param(port, int, 0); 145 if (((port == 0 && fwmark == 0) || in jsctp_sf_eat_sack() 146 asoc->peer.port == port || in jsctp_sf_eat_sack() 147 ep->base.bind_addr.port == port || in jsctp_sf_eat_sack() 159 ep->base.bind_addr.port, asoc->peer.port, in jsctp_sf_eat_sack() 225 port, fwmark, bufsize); in sctpprobe_init()
|