Home
last modified time | relevance | path

Searched refs:new_ip (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/samples/bpf/
Dtest_lwt_bpf.c93 uint32_t new_ip, int rw_daddr) in rewrite() argument
120 ret = bpf_l4_csum_replace(skb, off, old_ip, new_ip, in rewrite()
121 flags | sizeof(new_ip)); in rewrite()
128 ret = bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in rewrite()
135 ret = bpf_skb_store_bytes(skb, IP_DST_OFF, &new_ip, sizeof(new_ip), 0); in rewrite()
137 ret = bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in rewrite()
151 uint32_t old_ip, new_ip = 0x3fea8c0; in do_test_rewrite() local
161 printk("out: rewriting from %x to %x\n", old_ip, new_ip); in do_test_rewrite()
162 return rewrite(skb, old_ip, new_ip, 1); in do_test_rewrite()
Dtcbpf1_kern.c36 static inline void set_tcp_ip_src(struct __sk_buff *skb, __u32 new_ip) in set_tcp_ip_src() argument
40 bpf_l4_csum_replace(skb, TCP_CSUM_OFF, old_ip, new_ip, IS_PSEUDO | sizeof(new_ip)); in set_tcp_ip_src()
41 bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in set_tcp_ip_src()
42 bpf_skb_store_bytes(skb, IP_SRC_OFF, &new_ip, sizeof(new_ip), 0); in set_tcp_ip_src()
/Linux-v4.19/fs/jfs/
Dnamei.c1081 struct inode *new_ip; in jfs_rename() local
1108 new_ip = d_inode(new_dentry); in jfs_rename()
1130 if ((!new_ip) || (ino != new_ip->i_ino)) { in jfs_rename()
1136 else if (new_ip) { in jfs_rename()
1143 if (new_ip) { in jfs_rename()
1144 if (!dtEmpty(new_ip)) { in jfs_rename()
1149 } else if (new_ip) { in jfs_rename()
1150 IWRITE_LOCK(new_ip, RDWRLOCK_NORMAL); in jfs_rename()
1152 rc = dquot_initialize(new_ip); in jfs_rename()
1174 if (new_ip) { in jfs_rename()
[all …]
/Linux-v4.19/net/netfilter/
Dxt_NETMAP.c76 __be32 new_ip, netmask; in netmap_tg4() local
90 new_ip = ip_hdr(skb)->daddr & ~netmask; in netmap_tg4()
92 new_ip = ip_hdr(skb)->saddr & ~netmask; in netmap_tg4()
93 new_ip |= mr->range[0].min_ip & netmask; in netmap_tg4()
98 newrange.min_addr.ip = new_ip; in netmap_tg4()
99 newrange.max_addr.ip = new_ip; in netmap_tg4()
/Linux-v4.19/arch/x86/kernel/
Dprocess_64.c364 start_thread_common(struct pt_regs *regs, unsigned long new_ip, in start_thread_common() argument
381 regs->ip = new_ip; in start_thread_common()
390 start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp) in start_thread() argument
392 start_thread_common(regs, new_ip, new_sp, in start_thread()
398 void compat_start_thread(struct pt_regs *regs, u32 new_ip, u32 new_sp) in compat_start_thread() argument
400 start_thread_common(regs, new_ip, new_sp, in compat_start_thread()
Dprocess_32.c184 start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp) in start_thread() argument
192 regs->ip = new_ip; in start_thread()
Duprobes.c649 unsigned long new_ip = regs->ip += auprobe->branch.ilen; in branch_emulate_op() local
662 if (emulate_push_stack(regs, new_ip)) in branch_emulate_op()
668 regs->ip = new_ip + offs; in branch_emulate_op()
/Linux-v4.19/arch/ia64/include/asm/
Dprocessor.h310 #define start_thread(regs,new_ip,new_sp) do { \ argument
313 regs->cr_iip = new_ip; \
/Linux-v4.19/arch/x86/include/asm/
Delf.h191 void compat_start_thread(struct pt_regs *regs, u32 new_ip, u32 new_sp);
Dprocessor.h912 extern void start_thread(struct pt_regs *regs, unsigned long new_ip,