/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 99 int dir = CTINFO2DIR(ctinfo); in set_sig_addr() local 106 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr() 107 port == info->sig_port[dir]) { in set_sig_addr() 119 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr() 120 info->sig_port[!dir]); in set_sig_addr() 123 &ct->tuplehash[!dir]. in set_sig_addr() 125 info->sig_port[!dir]); in set_sig_addr() 126 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr() 127 port == info->sig_port[dir]) { in set_sig_addr() 131 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr() [all …]
|
D | nf_nat_l3proto_ipv4.c | 34 enum ip_conntrack_dir dir, in nf_nat_ipv4_decode_session() argument 38 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session() 199 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_icmp_reply_translation() local 227 if (dir == IP_CT_DIR_REPLY) in nf_nat_icmp_reply_translation() 235 l4proto, &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmp_reply_translation() 248 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple); in nf_nat_icmp_reply_translation() 394 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_ipv4_out() local 396 if ((ct->tuplehash[dir].tuple.src.u3.ip != in nf_nat_ipv4_out() 397 ct->tuplehash[!dir].tuple.dst.u3.ip) || in nf_nat_ipv4_out() 398 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMP && in nf_nat_ipv4_out() [all …]
|
D | nf_nat_pptp.c | 57 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected() 61 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected() 63 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected() 70 t.src.u3.ip = master->tuplehash[!exp->dir].tuple.src.u3.ip; in pptp_nat_expected() 72 t.dst.u3.ip = master->tuplehash[!exp->dir].tuple.dst.u3.ip; in pptp_nat_expected() 94 = ct->master->tuplehash[!exp->dir].tuple.dst.u3; in pptp_nat_expected() 95 if (exp->dir == IP_CT_DIR_ORIGINAL) { in pptp_nat_expected() 104 = ct->master->tuplehash[!exp->dir].tuple.src.u3; in pptp_nat_expected() 105 if (exp->dir == IP_CT_DIR_REPLY) { in pptp_nat_expected() 207 expect_orig->dir = IP_CT_DIR_ORIGINAL; in pptp_exp_gre() [all …]
|
/net/netfilter/ |
D | nf_conntrack_ftp.c | 349 static int find_nl_seq(u32 seq, const struct nf_ct_ftp_master *info, int dir) in find_nl_seq() argument 353 for (i = 0; i < info->seq_aft_nl_num[dir]; i++) in find_nl_seq() 354 if (info->seq_aft_nl[dir][i] == seq) in find_nl_seq() 361 struct nf_ct_ftp_master *info, int dir, in update_nl_seq() argument 367 for (i = 0; i < info->seq_aft_nl_num[dir]; i++) { in update_nl_seq() 368 if (info->seq_aft_nl[dir][i] == nl_seq) in update_nl_seq() 372 if (info->seq_aft_nl_num[dir] < NUM_SEQ_TO_REMEMBER) { in update_nl_seq() 373 info->seq_aft_nl[dir][info->seq_aft_nl_num[dir]++] = nl_seq; in update_nl_seq() 375 if (before(info->seq_aft_nl[dir][0], info->seq_aft_nl[dir][1])) in update_nl_seq() 380 if (after(nl_seq, info->seq_aft_nl[dir][oldest])) in update_nl_seq() [all …]
|
D | nf_nat_sip.c | 98 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in map_addr() local 105 if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && in map_addr() 106 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr() 107 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in map_addr() 108 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr() 109 } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && in map_addr() 110 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr() 111 newaddr = ct->tuplehash[!dir].tuple.src.u3; in map_addr() 113 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr() 149 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_sip() local [all …]
|
D | nf_conntrack_h323_main.c | 124 int dir = CTINFO2DIR(ctinfo); in get_tpkt_data() local 155 if (info->tpkt_len[dir] > 0) { in get_tpkt_data() 158 "bytes\n", info->tpkt_len[dir]); in get_tpkt_data() 159 if (info->tpkt_len[dir] <= tcpdatalen) { in get_tpkt_data() 163 *datalen = info->tpkt_len[dir]; in get_tpkt_data() 199 info->tpkt_len[dir] = tpktlen - 4; in get_tpkt_data() 214 info->tpkt_len[dir] = 0; in get_tpkt_data() 218 info->tpkt_len[dir] = 0; in get_tpkt_data() 264 int dir = CTINFO2DIR(ctinfo); in expect_rtp_rtcp() local 275 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp() [all …]
|
D | nf_conntrack_seqadj.c | 12 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seqadj_init() local 22 this_way = &seqadj->seq[dir]; in nf_ct_seqadj_init() 33 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seqadj_set() local 47 this_way = &seqadj->seq[dir]; in nf_ct_seqadj_set() 122 unsigned int dir, optoff, optend; in nf_ct_sack_adjust() local 131 dir = CTINFO2DIR(ctinfo); in nf_ct_sack_adjust() 154 &seqadj->seq[!dir]); in nf_ct_sack_adjust() 166 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_ct_seq_adjust() local 174 this_way = &seqadj->seq[dir]; in nf_ct_seq_adjust() 175 other_way = &seqadj->seq[!dir]; in nf_ct_seq_adjust() [all …]
|
D | nf_conntrack_proto_gre.c | 115 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, in nf_ct_gre_keymap_add() argument 123 kmp = &ct_pptp_info->keymap[dir]; in nf_ct_gre_keymap_add() 135 dir == IP_CT_DIR_REPLY ? "reply" : "orig", ct); in nf_ct_gre_keymap_add() 162 enum ip_conntrack_dir dir; in nf_ct_gre_keymap_destroy() local 167 for (dir = IP_CT_DIR_ORIGINAL; dir < IP_CT_DIR_MAX; dir++) { in nf_ct_gre_keymap_destroy() 168 if (ct_pptp_info->keymap[dir]) { in nf_ct_gre_keymap_destroy() 170 ct_pptp_info->keymap[dir]); in nf_ct_gre_keymap_destroy() 171 list_del(&ct_pptp_info->keymap[dir]->list); in nf_ct_gre_keymap_destroy() 172 kfree(ct_pptp_info->keymap[dir]); in nf_ct_gre_keymap_destroy() 173 ct_pptp_info->keymap[dir] = NULL; in nf_ct_gre_keymap_destroy()
|
D | nf_conntrack_proto_tcp.c | 502 enum ip_conntrack_dir dir, in tcp_in_window() argument 511 struct ip_ct_tcp_state *sender = &state->seen[dir]; in tcp_in_window() 512 struct ip_ct_tcp_state *receiver = &state->seen[!dir]; in tcp_in_window() 513 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcp_in_window() 530 receiver_offset = nf_ct_seq_offset(ct, !dir, ack - 1); in tcp_in_window() 591 && dir == IP_CT_DIR_ORIGINAL) in tcp_in_window() 593 && dir == IP_CT_DIR_REPLY)) in tcp_in_window() 694 if (state->last_dir == dir in tcp_in_window() 701 state->last_dir = dir; in tcp_in_window() 824 enum ip_conntrack_dir dir; in tcp_packet() local [all …]
|
D | nf_conntrack_proto_sctp.c | 236 static int sctp_new_state(enum ip_conntrack_dir dir, in sctp_new_state() argument 290 dir, sctp_conntrack_names[cur_state], chunk_type, in sctp_new_state() 291 sctp_conntrack_names[sctp_conntracks[dir][i][cur_state]]); in sctp_new_state() 293 return sctp_conntracks[dir][i][cur_state]; in sctp_new_state() 311 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in sctp_packet() local 332 sh->vtag != ct->proto.sctp.vtag[dir]) { in sctp_packet() 347 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet() 348 sh->vtag != ct->proto.sctp.vtag[!dir]) in sctp_packet() 352 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet() 353 sh->vtag != ct->proto.sctp.vtag[!dir] && in sctp_packet() [all …]
|
D | nf_nat_ftp.c | 69 int dir = CTINFO2DIR(ctinfo); in nf_nat_ftp() local 77 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in nf_nat_ftp() 79 exp->dir = !dir; in nf_nat_ftp()
|
D | nf_conntrack_pptp.c | 205 enum ip_conntrack_dir dir; in exp_gre() local 218 dir = IP_CT_DIR_ORIGINAL; in exp_gre() 221 &ct->tuplehash[dir].tuple.src.u3, in exp_gre() 222 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre() 227 dir = IP_CT_DIR_REPLY; in exp_gre() 230 &ct->tuplehash[dir].tuple.src.u3, in exp_gre() 231 &ct->tuplehash[dir].tuple.dst.u3, in exp_gre() 512 int dir = CTINFO2DIR(ctinfo); in conntrack_pptp_help() local 575 if (dir == IP_CT_DIR_ORIGINAL) in conntrack_pptp_help()
|
D | nf_conntrack_acct.c | 40 seq_print_acct(struct seq_file *s, const struct nf_conn *ct, int dir) in seq_print_acct() argument 51 (unsigned long long)atomic64_read(&counter[dir].packets), in seq_print_acct() 52 (unsigned long long)atomic64_read(&counter[dir].bytes)); in seq_print_acct()
|
D | nf_conntrack_irc.c | 115 int dir = CTINFO2DIR(ctinfo); in help() local 126 if (dir == IP_CT_DIR_REPLY) in help() 187 tuple = &ct->tuplehash[dir].tuple; in help() 203 tuple = &ct->tuplehash[!dir].tuple; in help()
|
D | nf_conntrack_proto_dccp.c | 484 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in dccp_packet() local 502 role = ct->proto.dccp.role[dir]; in dccp_packet() 512 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in dccp_packet() 513 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in dccp_packet() 532 if (ct->proto.dccp.last_dir == !dir && in dccp_packet() 535 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_CLIENT; in dccp_packet() 536 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_SERVER; in dccp_packet() 541 ct->proto.dccp.last_dir = dir; in dccp_packet() 557 ct->proto.dccp.last_dir = dir; in dccp_packet()
|
/net/xfrm/ |
D | xfrm_policy.c | 59 int dir); 181 int dir; in xfrm_policy_timer() local 188 dir = xfrm_policy_id2dir(xp->index); in xfrm_policy_timer() 228 km_policy_expired(xp, dir, 0, 0); in xfrm_policy_timer() 240 if (!xfrm_policy_delete(xp, dir)) in xfrm_policy_timer() 241 km_policy_expired(xp, dir, 1, 0); in xfrm_policy_timer() 354 unsigned short family, int dir, in __get_hash_thresh() argument 359 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh() 360 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh() 364 *dbits = net->xfrm.policy_bydst[dir].dbits6; in __get_hash_thresh() [all …]
|
D | xfrm_user.c | 1242 static int verify_policy_dir(u8 dir) in verify_policy_dir() argument 1244 switch (dir) { in verify_policy_dir() 1312 ret = verify_policy_dir(p->dir); in verify_newpolicy_info() 1315 if (p->index && ((p->index & XFRM_POLICY_MAX) != p->dir)) in verify_newpolicy_info() 1443 static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_info *p, int dir) in copy_to_user_policy() argument 1452 p->dir = dir; in copy_to_user_policy() 1515 err = xfrm_policy_insert(p->dir, xp, excl); in xfrm_add_policy() 1527 km_policy_notify(xp, p->dir, &c); in xfrm_add_policy() 1603 static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptr) in dump_one_policy() argument 1618 copy_to_user_policy(xp, p, dir); in dump_one_policy() [all …]
|
/net/sunrpc/ |
D | rpc_pipe.c | 492 static int __rpc_create_common(struct inode *dir, struct dentry *dentry, in __rpc_create_common() argument 500 inode = rpc_get_inode(dir->i_sb, mode); in __rpc_create_common() 503 inode->i_ino = iunique(dir->i_sb, 100); in __rpc_create_common() 517 static int __rpc_create(struct inode *dir, struct dentry *dentry, in __rpc_create() argument 524 err = __rpc_create_common(dir, dentry, S_IFREG | mode, i_fop, private); in __rpc_create() 527 fsnotify_create(dir, dentry); in __rpc_create() 531 static int __rpc_mkdir(struct inode *dir, struct dentry *dentry, in __rpc_mkdir() argument 538 err = __rpc_create_common(dir, dentry, S_IFDIR | mode, i_fop, private); in __rpc_mkdir() 541 inc_nlink(dir); in __rpc_mkdir() 542 fsnotify_mkdir(dir, dentry); in __rpc_mkdir() [all …]
|
/net/ipv6/netfilter/ |
D | nf_nat_l3proto_ipv6.c | 33 enum ip_conntrack_dir dir, in nf_nat_ipv6_decode_session() argument 37 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session() 206 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_icmpv6_reply_translation() local 233 if (dir == IP_CT_DIR_REPLY) in nf_nat_icmpv6_reply_translation() 241 l4proto, &ct->tuplehash[!dir].tuple, !manip)) in nf_nat_icmpv6_reply_translation() 255 nf_ct_invert_tuplepr(&target, &ct->tuplehash[!dir].tuple); in nf_nat_icmpv6_reply_translation() 402 enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo); in nf_nat_ipv6_out() local 404 if (!nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, in nf_nat_ipv6_out() 405 &ct->tuplehash[!dir].tuple.dst.u3) || in nf_nat_ipv6_out() 406 (ct->tuplehash[dir].tuple.dst.protonum != IPPROTO_ICMPV6 && in nf_nat_ipv6_out() [all …]
|
/net/nfc/ |
D | digital_dep.c | 56 u8 dir; member 67 u8 dir; member 79 u8 dir; member 87 u8 dir; member 93 u8 dir; member 160 (psl_res->dir != DIGITAL_NFC_DEP_FRAME_DIR_IN) || in digital_in_recv_psl_res() 210 psl_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; in digital_in_send_psl_req() 306 atr_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; in digital_in_send_atr_req() 349 dep_req->dir = DIGITAL_NFC_DEP_FRAME_DIR_OUT; in digital_in_send_rtox() 394 dep_res->dir != DIGITAL_NFC_DEP_FRAME_DIR_IN || in digital_in_recv_dep_res() [all …]
|
/net/netlabel/ |
D | netlabel_addrlist.c | 329 char *dir = (src ? "src" : "dst"); in netlbl_af4list_audit_addr() local 333 audit_log_format(audit_buf, " %s=%pI4", dir, &addr); in netlbl_af4list_audit_addr() 340 audit_log_format(audit_buf, " %s_prefixlen=%d", dir, mask_len); in netlbl_af4list_audit_addr() 363 char *dir = (src ? "src" : "dst"); in netlbl_af6list_audit_addr() local 367 audit_log_format(audit_buf, " %s=%pI6", dir, addr); in netlbl_af6list_audit_addr() 379 audit_log_format(audit_buf, " %s_prefixlen=%d", dir, mask_len); in netlbl_af6list_audit_addr()
|
/net/mac80211/ |
D | debugfs_sta.c | 527 sta->debugfs.dir, sta, &sta_ ##name## _ops); 531 debugfs_create_u32(#name, 0400, sta->debugfs.dir, \ 534 debugfs_create_u64(#name, 0400, sta->debugfs.dir, \ 560 sta->debugfs.dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add() 561 if (!sta->debugfs.dir) in ieee80211_sta_debugfs_add() 595 sta->debugfs.dir, in ieee80211_sta_debugfs_add() 599 sta->debugfs.dir, in ieee80211_sta_debugfs_add() 602 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); in ieee80211_sta_debugfs_add() 610 drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); in ieee80211_sta_debugfs_remove() 611 debugfs_remove_recursive(sta->debugfs.dir); in ieee80211_sta_debugfs_remove() [all …]
|
D | debugfs_key.c | 240 debugfs_create_file(#name, 0400, key->debugfs.dir, \ 255 key->debugfs.dir = debugfs_create_dir(buf, in ieee80211_debugfs_key_add() 258 if (!key->debugfs.dir) in ieee80211_debugfs_key_add() 266 debugfs_create_symlink("station", key->debugfs.dir, buf); in ieee80211_debugfs_key_add() 289 debugfs_remove_recursive(key->debugfs.dir); in ieee80211_debugfs_key_remove() 290 key->debugfs.dir = NULL; in ieee80211_debugfs_key_remove()
|
D | debugfs_netdev.c | 617 struct dentry *dir = debugfs_create_dir("mesh_stats", in add_mesh_stats() local 620 debugfs_create_file(#name, 0400, dir, sdata, &name##_ops); in add_mesh_stats() 633 struct dentry *dir = debugfs_create_dir("mesh_config", in add_mesh_config() local 637 debugfs_create_file(#name, 0600, dir, sdata, &name##_ops); in add_mesh_config() 733 struct dentry *dir; in ieee80211_debugfs_rename_netdev() local 736 dir = sdata->vif.debugfs_dir; in ieee80211_debugfs_rename_netdev() 738 if (!dir) in ieee80211_debugfs_rename_netdev() 742 if (!debugfs_rename(dir->d_parent, dir, dir->d_parent, buf)) in ieee80211_debugfs_rename_netdev()
|
/net/core/ |
D | flow.c | 36 u8 dir; member 192 flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir, in flow_cache_lookup() argument 224 tfle->dir == dir && in flow_cache_lookup() 239 fle->dir = dir; in flow_cache_lookup() 264 flo = resolver(net, key, family, dir, flo, ctx); in flow_cache_lookup()
|