Home
last modified time | relevance | path

Searched refs:old_ip (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/samples/bpf/
Dtest_lwt_bpf.c92 static inline int rewrite(struct __sk_buff *skb, uint32_t old_ip, in rewrite() argument
120 ret = bpf_l4_csum_replace(skb, off, old_ip, new_ip, in rewrite()
128 ret = bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in rewrite()
151 uint32_t old_ip, new_ip = 0x3fea8c0; in do_test_rewrite() local
154 ret = bpf_skb_load_bytes(skb, IP_DST_OFF, &old_ip, 4); in do_test_rewrite()
160 if (old_ip == 0x2fea8c0) { in do_test_rewrite()
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.c39 __u32 old_ip = _htonl(load_word(skb, IP_SRC_OFF)); in set_tcp_ip_src() local
41 bpf_l4_csum_replace(skb, TCP_CSUM_OFF, old_ip, new_ip, IS_PSEUDO | sizeof(new_ip)); in set_tcp_ip_src()
42 bpf_l3_csum_replace(skb, IP_CSUM_OFF, old_ip, new_ip, sizeof(new_ip)); in set_tcp_ip_src()
/linux-6.1.9/fs/jfs/
Dnamei.c1071 struct inode *old_ip; in jfs_rename() local
1095 old_ip = d_inode(old_dentry); in jfs_rename()
1108 if (rc || (ino != old_ip->i_ino)) { in jfs_rename()
1130 if (S_ISDIR(old_ip->i_mode)) { in jfs_rename()
1157 mutex_lock_nested(&JFS_IP(old_ip)->commit_mutex, COMMIT_MUTEX_CHILD); in jfs_rename()
1170 old_ip->i_ino, JFS_RENAME); in jfs_rename()
1180 mutex_unlock(&JFS_IP(old_ip)->commit_mutex); in jfs_rename()
1182 if (!S_ISDIR(old_ip->i_mode) && new_ip) in jfs_rename()
1218 ino = old_ip->i_ino; in jfs_rename()
1225 if (S_ISDIR(old_ip->i_mode)) in jfs_rename()
[all …]
/linux-6.1.9/fs/xfs/scrub/
Drtbitmap.c132 struct xfs_inode *old_ip = sc->ip; in xchk_rtsummary() local
158 sc->ip = old_ip; in xchk_rtsummary()