PATH: //proc/thread-self/root/proc/self/root/proc/thread-self/root/usr/include/linux
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
๐ a.out.h
โ
X
๐ acct.h
โ
X
๐ acrn.h
โ
X
๐ adb.h
โ
X
๐ adfs_fs.h
โ
X
๐ affs_hardblocks.h
โ
X
๐ agpgart.h
โ
X
๐ aio_abi.h
โ
X
๐ am437x-vpfe.h
โ
X
๐ android/
X
๐ apm_bios.h
โ
X
๐ arcfb.h
โ
X
๐ arm_sdei.h
โ
X
๐ aspeed-lpc-ctrl.h
โ
X
๐ aspeed-p2a-ctrl.h
โ
X
๐ atalk.h
โ
X
๐ atm.h
โ
X
๐ atm_eni.h
โ
X
๐ atm_he.h
โ
X
๐ atm_idt77105.h
โ
X
๐ atm_nicstar.h
โ
X
๐ atm_tcp.h
โ
X
๐ atm_zatm.h
โ
X
๐ atmapi.h
โ
X
๐ atmarp.h
โ
X
๐ atmbr2684.h
โ
X
๐ atmclip.h
โ
X
๐ atmdev.h
โ
X
๐ atmioc.h
โ
X
๐ atmlec.h
โ
X
๐ atmmpc.h
โ
X
๐ atmppp.h
โ
X
๐ atmsap.h
โ
X
๐ atmsvc.h
โ
X
๐ audit.h
โ
X
๐ auto_dev-ioctl.h
โ
X
๐ auto_fs.h
โ
X
๐ auto_fs4.h
โ
X
๐ auxvec.h
โ
X
๐ ax25.h
โ
X
๐ batadv_packet.h
โ
X
๐ batman_adv.h
โ
X
๐ baycom.h
โ
X
๐ bcm933xx_hcs.h
โ
X
๐ bfs_fs.h
โ
X
๐ binfmts.h
โ
X
๐ bits.h
โ
X
๐ blkpg.h
โ
X
๐ blktrace_api.h
โ
X
๐ blkzoned.h
โ
X
๐ bpf.h
โ
X
๐ bpf_common.h
โ
X
๐ bpf_perf_event.h
โ
X
๐ bpfilter.h
โ
X
๐ bpqether.h
โ
X
๐ bsg.h
โ
X
๐ bt-bmc.h
โ
X
๐ btf.h
โ
X
๐ btrfs.h
โ
X
๐ btrfs_tree.h
โ
X
๐ byteorder/
X
๐ cachefiles.h
โ
X
๐ caif/
X
๐ can/
X
๐ can.h
โ
X
๐ capability.h
โ
X
๐ capi.h
โ
X
๐ cciss_defs.h
โ
X
๐ cciss_ioctl.h
โ
X
๐ ccs.h
โ
X
๐ cdrom.h
โ
X
๐ cec-funcs.h
โ
X
๐ cec.h
โ
X
๐ cfm_bridge.h
โ
X
๐ cgroupstats.h
โ
X
๐ chio.h
โ
X
๐ cifs/
X
๐ close_range.h
โ
X
๐ cm4000_cs.h
โ
X
๐ cn_proc.h
โ
X
๐ coda.h
โ
X
๐ coff.h
โ
X
๐ connector.h
โ
X
๐ const.h
โ
X
๐ coresight-stm.h
โ
X
๐ cramfs_fs.h
โ
X
๐ cryptouser.h
โ
X
๐ cuda.h
โ
X
๐ cxl_mem.h
โ
X
๐ cycx_cfm.h
โ
X
๐ dcbnl.h
โ
X
๐ dccp.h
โ
X
๐ devlink.h
โ
X
๐ dlm.h
โ
X
๐ dlm_device.h
โ
X
๐ dlm_netlink.h
โ
X
๐ dlm_plock.h
โ
X
๐ dlmconstants.h
โ
X
๐ dm-ioctl.h
โ
X
๐ dm-log-userspace.h
โ
X
๐ dma-buf.h
โ
X
๐ dma-heap.h
โ
X
๐ dn.h
โ
X
๐ dns_resolver.h
โ
X
๐ dpll.h
โ
X
๐ dqblk_xfs.h
โ
X
๐ dvb/
X
๐ edd.h
โ
X
๐ efs_fs_sb.h
โ
X
๐ elf-em.h
โ
X
๐ elf-fdpic.h
โ
X
๐ elf.h
โ
X
๐ errno.h
โ
X
๐ errqueue.h
โ
X
๐ erspan.h
โ
X
๐ ethtool.h
โ
X
๐ ethtool_netlink.h
โ
X
๐ ethtool_netlink_generated.h
โ
X
๐ eventfd.h
โ
X
๐ eventpoll.h
โ
X
๐ f2fs.h
โ
X
๐ fadvise.h
โ
X
๐ falloc.h
โ
X
๐ fanotify.h
โ
X
๐ fb.h
โ
X
๐ fcntl.h
โ
X
๐ fd.h
โ
X
๐ fdreg.h
โ
X
๐ fib_rules.h
โ
X
๐ fiemap.h
โ
X
๐ filter.h
โ
X
๐ firewire-cdev.h
โ
X
๐ firewire-constants.h
โ
X
๐ fou.h
โ
X
๐ fpga-dfl.h
โ
X
๐ fs.h
โ
X
๐ fscrypt.h
โ
X
๐ fsi.h
โ
X
๐ fsl_hypervisor.h
โ
X
๐ fsl_mc.h
โ
X
๐ fsmap.h
โ
X
๐ fsverity.h
โ
X
๐ fuse.h
โ
X
๐ futex.h
โ
X
๐ gameport.h
โ
X
๐ gen_stats.h
โ
X
๐ genetlink.h
โ
X
๐ genwqe/
X
๐ gfs2_ondisk.h
โ
X
๐ gpio.h
โ
X
๐ gsmmux.h
โ
X
๐ gtp.h
โ
X
๐ handshake.h
โ
X
๐ hash_info.h
โ
X
๐ hdlc/
X
๐ hdlc.h
โ
X
๐ hdlcdrv.h
โ
X
๐ hdreg.h
โ
X
๐ hid.h
โ
X
๐ hiddev.h
โ
X
๐ hidraw.h
โ
X
๐ hpet.h
โ
X
๐ hsi/
X
๐ hsr_netlink.h
โ
X
๐ hw_breakpoint.h
โ
X
๐ hyperv.h
โ
X
๐ i2c-dev.h
โ
X
๐ i2c.h
โ
X
๐ i2o-dev.h
โ
X
๐ i8k.h
โ
X
๐ icmp.h
โ
X
๐ icmpv6.h
โ
X
๐ idxd.h
โ
X
๐ if.h
โ
X
๐ if_addr.h
โ
X
๐ if_addrlabel.h
โ
X
๐ if_alg.h
โ
X
๐ if_arcnet.h
โ
X
๐ if_arp.h
โ
X
๐ if_bonding.h
โ
X
๐ if_bridge.h
โ
X
๐ if_cablemodem.h
โ
X
๐ if_eql.h
โ
X
๐ if_ether.h
โ
X
๐ if_fc.h
โ
X
๐ if_fddi.h
โ
X
๐ if_hippi.h
โ
X
๐ if_infiniband.h
โ
X
๐ if_link.h
โ
X
๐ if_ltalk.h
โ
X
๐ if_macsec.h
โ
X
๐ if_packet.h
โ
X
๐ if_phonet.h
โ
X
๐ if_plip.h
โ
X
๐ if_ppp.h
โ
X
๐ if_pppol2tp.h
โ
X
๐ if_pppox.h
โ
X
๐ if_slip.h
โ
X
๐ if_team.h
โ
X
๐ if_tun.h
โ
X
๐ if_tunnel.h
โ
X
๐ if_vlan.h
โ
X
๐ if_x25.h
โ
X
๐ if_xdp.h
โ
X
๐ ife.h
โ
X
๐ igmp.h
โ
X
๐ iio/
X
๐ ila.h
โ
X
๐ in.h
โ
X
๐ in6.h
โ
X
๐ in_route.h
โ
X
๐ inet_diag.h
โ
X
๐ inotify.h
โ
X
๐ input-event-codes.h
โ
X
๐ input.h
โ
X
๐ io_uring.h
โ
X
๐ ioctl.h
โ
X
๐ iommufd.h
โ
X
๐ ioprio.h
โ
X
๐ ip.h
โ
X
๐ ip6_tunnel.h
โ
X
๐ ip_vs.h
โ
X
๐ ipc.h
โ
X
๐ ipmi.h
โ
X
๐ ipmi_bmc.h
โ
X
๐ ipmi_msgdefs.h
โ
X
๐ ipmi_ssif_bmc.h
โ
X
๐ ipsec.h
โ
X
๐ ipv6.h
โ
X
๐ ipv6_route.h
โ
X
๐ ipx.h
โ
X
๐ irqnr.h
โ
X
๐ isdn/
X
๐ iso_fs.h
โ
X
๐ isst_if.h
โ
X
๐ ivtv.h
โ
X
๐ ivtvfb.h
โ
X
๐ jffs2.h
โ
X
๐ joystick.h
โ
X
๐ kcm.h
โ
X
๐ kcmp.h
โ
X
๐ kcov.h
โ
X
๐ kd.h
โ
X
๐ kdev_t.h
โ
X
๐ kernel-page-flags.h
โ
X
๐ kernel.h
โ
X
๐ kernelcapi.h
โ
X
๐ kexec.h
โ
X
๐ keyboard.h
โ
X
๐ keyctl.h
โ
X
๐ kfd_ioctl.h
โ
X
๐ kfd_sysfs.h
โ
X
๐ kvm.h
โ
X
๐ kvm_para.h
โ
X
๐ l2tp.h
โ
X
๐ landlock.h
โ
X
๐ libc-compat.h
โ
X
๐ limits.h
โ
X
๐ lirc.h
โ
X
๐ llc.h
โ
X
๐ loadpin.h
โ
X
๐ loop.h
โ
X
๐ lp.h
โ
X
๐ lsm.h
โ
X
๐ lwtunnel.h
โ
X
๐ magic.h
โ
X
๐ major.h
โ
X
๐ map_to_7segment.h
โ
X
๐ matroxfb.h
โ
X
๐ max2175.h
โ
X
๐ mdio.h
โ
X
๐ media-bus-format.h
โ
X
๐ media.h
โ
X
๐ mei.h
โ
X
๐ mei_uuid.h
โ
X
๐ membarrier.h
โ
X
๐ memfd.h
โ
X
๐ mempolicy.h
โ
X
๐ meye.h
โ
X
๐ mii.h
โ
X
๐ minix_fs.h
โ
X
๐ misc/
X
๐ mman.h
โ
X
๐ mmc/
X
๐ mmtimer.h
โ
X
๐ module.h
โ
X
๐ mount.h
โ
X
๐ mpls.h
โ
X
๐ mpls_iptunnel.h
โ
X
๐ mptcp.h
โ
X
๐ mptcp_pm.h
โ
X
๐ mqueue.h
โ
X
๐ mroute.h
โ
X
๐ mroute6.h
โ
X
๐ mrp_bridge.h
โ
X
๐ msdos_fs.h
โ
X
๐ msg.h
โ
X
๐ mshv.h
โ
X
๐ mtio.h
โ
X
๐ nbd-netlink.h
โ
X
๐ nbd.h
โ
X
๐ ncsi.h
โ
X
๐ ndctl.h
โ
X
๐ neighbour.h
โ
X
๐ net.h
โ
X
๐ net_dropmon.h
โ
X
๐ net_namespace.h
โ
X
๐ net_shaper.h
โ
X
๐ net_tstamp.h
โ
X
๐ netconf.h
โ
X
๐ netdev.h
โ
X
๐ netdevice.h
โ
X
๐ netfilter/
X
๐ netfilter.h
โ
X
๐ netfilter_arp/
X
๐ netfilter_arp.h
โ
X
๐ netfilter_bridge/
X
๐ netfilter_bridge.h
โ
X
๐ netfilter_decnet.h
โ
X
๐ netfilter_ipv4/
X
๐ netfilter_ipv4.h
โ
X
๐ netfilter_ipv6/
X
๐ netfilter_ipv6.h
โ
X
๐ netlink.h
โ
X
๐ netlink_diag.h
โ
X
๐ netrom.h
โ
X
๐ nexthop.h
โ
X
๐ nfc.h
โ
X
๐ nfs.h
โ
X
๐ nfs2.h
โ
X
๐ nfs3.h
โ
X
๐ nfs4.h
โ
X
๐ nfs4_mount.h
โ
X
๐ nfs_fs.h
โ
X
๐ nfs_idmap.h
โ
X
๐ nfs_mount.h
โ
X
๐ nfsacl.h
โ
X
๐ nfsd/
X
๐ nfsd_netlink.h
โ
X
๐ nilfs2_api.h
โ
X
๐ nilfs2_ondisk.h
โ
X
๐ nitro_enclaves.h
โ
X
๐ nl80211.h
โ
X
๐ nsfs.h
โ
X
๐ nubus.h
โ
X
๐ nvme_ioctl.h
โ
X
๐ nvram.h
โ
X
๐ omap3isp.h
โ
X
๐ omapfb.h
โ
X
๐ oom.h
โ
X
๐ openat2.h
โ
X
๐ openvswitch.h
โ
X
๐ packet_diag.h
โ
X
๐ param.h
โ
X
๐ parport.h
โ
X
๐ patchkey.h
โ
X
๐ pci.h
โ
X
๐ pci_regs.h
โ
X
๐ pcitest.h
โ
X
๐ perf_event.h
โ
X
๐ personality.h
โ
X
๐ pfkeyv2.h
โ
X
๐ pfrut.h
โ
X
๐ pg.h
โ
X
๐ phantom.h
โ
X
๐ phonet.h
โ
X
๐ pidfd.h
โ
X
๐ pkt_cls.h
โ
X
๐ pkt_sched.h
โ
X
๐ pktcdvd.h
โ
X
๐ pmu.h
โ
X
๐ poll.h
โ
X
๐ posix_acl.h
โ
X
๐ posix_acl_xattr.h
โ
X
๐ posix_types.h
โ
X
๐ ppdev.h
โ
X
๐ ppp-comp.h
โ
X
๐ ppp-ioctl.h
โ
X
๐ ppp_defs.h
โ
X
๐ pps.h
โ
X
๐ pr.h
โ
X
๐ prctl.h
โ
X
๐ psample.h
โ
X
๐ psci.h
โ
X
๐ psp-dbc.h
โ
X
๐ psp-sev.h
โ
X
๐ ptp_clock.h
โ
X
๐ ptrace.h
โ
X
๐ qemu_fw_cfg.h
โ
X
๐ qnx4_fs.h
โ
X
๐ qnxtypes.h
โ
X
๐ qrtr.h
โ
X
๐ quota.h
โ
X
๐ radeonfb.h
โ
X
๐ raid/
X
๐ random.h
โ
X
๐ rds.h
โ
X
๐ reboot.h
โ
X
๐ reiserfs_fs.h
โ
X
๐ reiserfs_xattr.h
โ
X
๐ remoteproc_cdev.h
โ
X
๐ resource.h
โ
X
๐ rfkill.h
โ
X
๐ rio_cm_cdev.h
โ
X
๐ rio_mport_cdev.h
โ
X
๐ rkisp1-config.h
โ
X
๐ romfs_fs.h
โ
X
๐ rose.h
โ
X
๐ route.h
โ
X
๐ rpl.h
โ
X
๐ rpl_iptunnel.h
โ
X
๐ rpmsg.h
โ
X
๐ rpmsg_types.h
โ
X
๐ rseq.h
โ
X
๐ rtc.h
โ
X
๐ rtnetlink.h
โ
X
๐ rxrpc.h
โ
X
๐ scc.h
โ
X
๐ sched/
X
๐ sched.h
โ
X
๐ scif_ioctl.h
โ
X
๐ screen_info.h
โ
X
๐ sctp.h
โ
X
๐ seccomp.h
โ
X
๐ securebits.h
โ
X
๐ sed-opal.h
โ
X
๐ seg6.h
โ
X
๐ seg6_genl.h
โ
X
๐ seg6_hmac.h
โ
X
๐ seg6_iptunnel.h
โ
X
๐ seg6_local.h
โ
X
๐ selinux_netlink.h
โ
X
๐ sem.h
โ
X
๐ serial.h
โ
X
๐ serial_core.h
โ
X
๐ serial_reg.h
โ
X
๐ serio.h
โ
X
๐ sev-guest.h
โ
X
๐ shm.h
โ
X
๐ signal.h
โ
X
๐ signalfd.h
โ
X
๐ smc.h
โ
X
๐ smc_diag.h
โ
X
๐ smiapp.h
โ
X
๐ snmp.h
โ
X
๐ sock_diag.h
โ
X
๐ socket.h
โ
X
๐ sockios.h
โ
X
๐ sonet.h
โ
X
๐ sonypi.h
โ
X
๐ sound.h
โ
X
๐ soundcard.h
โ
X
๐ spi/
X
๐ stat.h
โ
X
๐ stddef.h
โ
X
๐ stm.h
โ
X
๐ string.h
โ
X
๐ sunrpc/
X
๐ surface_aggregator/
X
๐ suspend_ioctls.h
โ
X
๐ swab.h
โ
X
๐ switchtec_ioctl.h
โ
X
๐ sync_file.h
โ
X
๐ synclink.h
โ
X
๐ sysctl.h
โ
X
๐ sysinfo.h
โ
X
๐ target_core_user.h
โ
X
๐ taskstats.h
โ
X
๐ tc_act/
X
๐ tc_ematch/
X
๐ tcp.h
โ
X
๐ tcp_metrics.h
โ
X
๐ tdx-guest.h
โ
X
๐ tee.h
โ
X
๐ termios.h
โ
X
๐ thermal.h
โ
X
๐ time.h
โ
X
๐ time_types.h
โ
X
๐ timerfd.h
โ
X
๐ times.h
โ
X
๐ timex.h
โ
X
๐ tiocl.h
โ
X
๐ tipc.h
โ
X
๐ tipc_config.h
โ
X
๐ tipc_netlink.h
โ
X
๐ tipc_sockets_diag.h
โ
X
๐ tls.h
โ
X
๐ toshiba.h
โ
X
๐ tps6594_pfsm.h
โ
X
๐ tty.h
โ
X
๐ tty_flags.h
โ
X
๐ types.h
โ
X
๐ udf_fs_i.h
โ
X
๐ udmabuf.h
โ
X
๐ udp.h
โ
X
๐ uhid.h
โ
X
๐ uinput.h
โ
X
๐ uio.h
โ
X
๐ uleds.h
โ
X
๐ ultrasound.h
โ
X
๐ um_timetravel.h
โ
X
๐ un.h
โ
X
๐ unistd.h
โ
X
๐ unix_diag.h
โ
X
๐ usb/
X
๐ usbdevice_fs.h
โ
X
๐ usbip.h
โ
X
๐ userfaultfd.h
โ
X
๐ userio.h
โ
X
๐ utime.h
โ
X
๐ utsname.h
โ
X
๐ uuid.h
โ
X
๐ uvcvideo.h
โ
X
๐ v4l2-common.h
โ
X
๐ v4l2-controls.h
โ
X
๐ v4l2-dv-timings.h
โ
X
๐ v4l2-mediabus.h
โ
X
๐ v4l2-subdev.h
โ
X
๐ vbox_err.h
โ
X
๐ vbox_vmmdev_types.h
โ
X
๐ vboxguest.h
โ
X
๐ vdpa.h
โ
X
๐ vduse.h
โ
X
๐ version.h
โ
X
๐ veth.h
โ
X
๐ vfio.h
โ
X
๐ vfio_ccw.h
โ
X
๐ vfio_zdev.h
โ
X
๐ vhost.h
โ
X
๐ vhost_types.h
โ
X
๐ videodev2.h
โ
X
๐ virtio_9p.h
โ
X
๐ virtio_balloon.h
โ
X
๐ virtio_blk.h
โ
X
๐ virtio_bt.h
โ
X
๐ virtio_config.h
โ
X
๐ virtio_console.h
โ
X
๐ virtio_crypto.h
โ
X
๐ virtio_fs.h
โ
X
๐ virtio_gpio.h
โ
X
๐ virtio_gpu.h
โ
X
๐ virtio_i2c.h
โ
X
๐ virtio_ids.h
โ
X
๐ virtio_input.h
โ
X
๐ virtio_iommu.h
โ
X
๐ virtio_mem.h
โ
X
๐ virtio_mmio.h
โ
X
๐ virtio_net.h
โ
X
๐ virtio_pci.h
โ
X
๐ virtio_pcidev.h
โ
X
๐ virtio_pmem.h
โ
X
๐ virtio_ring.h
โ
X
๐ virtio_rng.h
โ
X
๐ virtio_scmi.h
โ
X
๐ virtio_scsi.h
โ
X
๐ virtio_snd.h
โ
X
๐ virtio_types.h
โ
X
๐ virtio_vsock.h
โ
X
๐ vm_sockets.h
โ
X
๐ vm_sockets_diag.h
โ
X
๐ vmcore.h
โ
X
๐ vsockmon.h
โ
X
๐ vt.h
โ
X
๐ vtpm_proxy.h
โ
X
๐ wait.h
โ
X
๐ watch_queue.h
โ
X
๐ watchdog.h
โ
X
๐ wireguard.h
โ
X
๐ wireless.h
โ
X
๐ wmi.h
โ
X
๐ wwan.h
โ
X
๐ x25.h
โ
X
๐ xattr.h
โ
X
๐ xdp_diag.h
โ
X
๐ xfrm.h
โ
X
๐ xilinx-v4l2-controls.h
โ
X
๐ zorro.h
โ
X
๐ zorro_ids.h
โ
X
SAVING...
BERHASIL DIUBAH!
EDITING: in.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Definitions of the Internet Protocol. * * Version: @(#)in.h 1.0.1 04/21/93 * * Authors: Original taken from the GNU Project <netinet/in.h> file. * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #ifndef _LINUX_IN_H #define _LINUX_IN_H #include <linux/types.h> #include <linux/stddef.h> #include <linux/libc-compat.h> #include <linux/socket.h> #if __UAPI_DEF_IN_IPPROTO /* Standard well-defined IP protocols. */ enum { IPPROTO_IP = 0, /* Dummy protocol for TCP */ #define IPPROTO_IP IPPROTO_IP IPPROTO_ICMP = 1, /* Internet Control Message Protocol */ #define IPPROTO_ICMP IPPROTO_ICMP IPPROTO_IGMP = 2, /* Internet Group Management Protocol */ #define IPPROTO_IGMP IPPROTO_IGMP IPPROTO_IPIP = 4, /* IPIP tunnels (older KA9Q tunnels use 94) */ #define IPPROTO_IPIP IPPROTO_IPIP IPPROTO_TCP = 6, /* Transmission Control Protocol */ #define IPPROTO_TCP IPPROTO_TCP IPPROTO_EGP = 8, /* Exterior Gateway Protocol */ #define IPPROTO_EGP IPPROTO_EGP IPPROTO_PUP = 12, /* PUP protocol */ #define IPPROTO_PUP IPPROTO_PUP IPPROTO_UDP = 17, /* User Datagram Protocol */ #define IPPROTO_UDP IPPROTO_UDP IPPROTO_IDP = 22, /* XNS IDP protocol */ #define IPPROTO_IDP IPPROTO_IDP IPPROTO_TP = 29, /* SO Transport Protocol Class 4 */ #define IPPROTO_TP IPPROTO_TP IPPROTO_DCCP = 33, /* Datagram Congestion Control Protocol */ #define IPPROTO_DCCP IPPROTO_DCCP IPPROTO_IPV6 = 41, /* IPv6-in-IPv4 tunnelling */ #define IPPROTO_IPV6 IPPROTO_IPV6 IPPROTO_RSVP = 46, /* RSVP Protocol */ #define IPPROTO_RSVP IPPROTO_RSVP IPPROTO_GRE = 47, /* Cisco GRE tunnels (rfc 1701,1702) */ #define IPPROTO_GRE IPPROTO_GRE IPPROTO_ESP = 50, /* Encapsulation Security Payload protocol */ #define IPPROTO_ESP IPPROTO_ESP IPPROTO_AH = 51, /* Authentication Header protocol */ #define IPPROTO_AH IPPROTO_AH IPPROTO_MTP = 92, /* Multicast Transport Protocol */ #define IPPROTO_MTP IPPROTO_MTP IPPROTO_BEETPH = 94, /* IP option pseudo header for BEET */ #define IPPROTO_BEETPH IPPROTO_BEETPH IPPROTO_ENCAP = 98, /* Encapsulation Header */ #define IPPROTO_ENCAP IPPROTO_ENCAP IPPROTO_PIM = 103, /* Protocol Independent Multicast */ #define IPPROTO_PIM IPPROTO_PIM IPPROTO_COMP = 108, /* Compression Header Protocol */ #define IPPROTO_COMP IPPROTO_COMP IPPROTO_L2TP = 115, /* Layer 2 Tunnelling Protocol */ #define IPPROTO_L2TP IPPROTO_L2TP IPPROTO_SCTP = 132, /* Stream Control Transport Protocol */ #define IPPROTO_SCTP IPPROTO_SCTP IPPROTO_UDPLITE = 136, /* UDP-Lite (RFC 3828) */ #define IPPROTO_UDPLITE IPPROTO_UDPLITE IPPROTO_MPLS = 137, /* MPLS in IP (RFC 4023) */ #define IPPROTO_MPLS IPPROTO_MPLS IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation */ #define IPPROTO_ETHERNET IPPROTO_ETHERNET IPPROTO_RAW = 255, /* Raw IP packets */ #define IPPROTO_RAW IPPROTO_RAW IPPROTO_SMC = 256, /* Shared Memory Communications */ #define IPPROTO_SMC IPPROTO_SMC IPPROTO_MPTCP = 262, /* Multipath TCP connection */ #define IPPROTO_MPTCP IPPROTO_MPTCP IPPROTO_MAX }; #endif #if __UAPI_DEF_IN_ADDR /* Internet address. */ struct in_addr { __be32 s_addr; }; #endif #define IP_TOS 1 #define IP_TTL 2 #define IP_HDRINCL 3 #define IP_OPTIONS 4 #define IP_ROUTER_ALERT 5 #define IP_RECVOPTS 6 #define IP_RETOPTS 7 #define IP_PKTINFO 8 #define IP_PKTOPTIONS 9 #define IP_MTU_DISCOVER 10 #define IP_RECVERR 11 #define IP_RECVTTL 12 #define IP_RECVTOS 13 #define IP_MTU 14 #define IP_FREEBIND 15 #define IP_IPSEC_POLICY 16 #define IP_XFRM_POLICY 17 #define IP_PASSSEC 18 #define IP_TRANSPARENT 19 /* BSD compatibility */ #define IP_RECVRETOPTS IP_RETOPTS /* TProxy original addresses */ #define IP_ORIGDSTADDR 20 #define IP_RECVORIGDSTADDR IP_ORIGDSTADDR #define IP_MINTTL 21 #define IP_NODEFRAG 22 #define IP_CHECKSUM 23 #define IP_BIND_ADDRESS_NO_PORT 24 #define IP_RECVFRAGSIZE 25 #define IP_RECVERR_RFC4884 26 /* IP_MTU_DISCOVER values */ #define IP_PMTUDISC_DONT 0 /* Never send DF frames */ #define IP_PMTUDISC_WANT 1 /* Use per route hints */ #define IP_PMTUDISC_DO 2 /* Always DF */ #define IP_PMTUDISC_PROBE 3 /* Ignore dst pmtu */ /* Always use interface mtu (ignores dst pmtu) but don't set DF flag. * Also incoming ICMP frag_needed notifications will be ignored on * this socket to prevent accepting spoofed ones. */ #define IP_PMTUDISC_INTERFACE 4 /* weaker version of IP_PMTUDISC_INTERFACE, which allows packets to get * fragmented if they exeed the interface mtu */ #define IP_PMTUDISC_OMIT 5 #define IP_MULTICAST_IF 32 #define IP_MULTICAST_TTL 33 #define IP_MULTICAST_LOOP 34 #define IP_ADD_MEMBERSHIP 35 #define IP_DROP_MEMBERSHIP 36 #define IP_UNBLOCK_SOURCE 37 #define IP_BLOCK_SOURCE 38 #define IP_ADD_SOURCE_MEMBERSHIP 39 #define IP_DROP_SOURCE_MEMBERSHIP 40 #define IP_MSFILTER 41 #define MCAST_JOIN_GROUP 42 #define MCAST_BLOCK_SOURCE 43 #define MCAST_UNBLOCK_SOURCE 44 #define MCAST_LEAVE_GROUP 45 #define MCAST_JOIN_SOURCE_GROUP 46 #define MCAST_LEAVE_SOURCE_GROUP 47 #define MCAST_MSFILTER 48 #define IP_MULTICAST_ALL 49 #define IP_UNICAST_IF 50 #define IP_PROTOCOL 52 #define MCAST_EXCLUDE 0 #define MCAST_INCLUDE 1 /* These need to appear somewhere around here */ #define IP_DEFAULT_MULTICAST_TTL 1 #define IP_DEFAULT_MULTICAST_LOOP 1 /* Request struct for multicast socket ops */ #if __UAPI_DEF_IP_MREQ struct ip_mreq { struct in_addr imr_multiaddr; /* IP multicast address of group */ struct in_addr imr_interface; /* local IP address of interface */ }; struct ip_mreqn { struct in_addr imr_multiaddr; /* IP multicast address of group */ struct in_addr imr_address; /* local IP address of interface */ int imr_ifindex; /* Interface index */ }; struct ip_mreq_source { __be32 imr_multiaddr; __be32 imr_interface; __be32 imr_sourceaddr; }; struct ip_msfilter { __be32 imsf_multiaddr; __be32 imsf_interface; __u32 imsf_fmode; __u32 imsf_numsrc; __be32 imsf_slist[1]; }; #define IP_MSFILTER_SIZE(numsrc) \ (sizeof(struct ip_msfilter) - sizeof(__u32) \ + (numsrc) * sizeof(__u32)) struct group_req { __u32 gr_interface; /* interface index */ struct __kernel_sockaddr_storage gr_group; /* group address */ }; struct group_source_req { __u32 gsr_interface; /* interface index */ struct __kernel_sockaddr_storage gsr_group; /* group address */ struct __kernel_sockaddr_storage gsr_source; /* source address */ }; struct group_filter { __u32 gf_interface; /* interface index */ struct __kernel_sockaddr_storage gf_group; /* multicast address */ __u32 gf_fmode; /* filter mode */ __u32 gf_numsrc; /* number of sources */ struct __kernel_sockaddr_storage gf_slist[1]; /* interface index */ }; #define GROUP_FILTER_SIZE(numsrc) \ (sizeof(struct group_filter) - sizeof(struct __kernel_sockaddr_storage) \ + (numsrc) * sizeof(struct __kernel_sockaddr_storage)) #endif #if __UAPI_DEF_IN_PKTINFO struct in_pktinfo { int ipi_ifindex; struct in_addr ipi_spec_dst; struct in_addr ipi_addr; }; #endif /* Structure describing an Internet (IP) socket address. */ #if __UAPI_DEF_SOCKADDR_IN #define __SOCK_SIZE__ 16 /* sizeof(struct sockaddr) */ struct sockaddr_in { __kernel_sa_family_t sin_family; /* Address family */ __be16 sin_port; /* Port number */ struct in_addr sin_addr; /* Internet address */ /* Pad to size of `struct sockaddr'. */ unsigned char __pad[__SOCK_SIZE__ - sizeof(short int) - sizeof(unsigned short int) - sizeof(struct in_addr)]; }; #define sin_zero __pad /* for BSD UNIX comp. -FvK */ #endif #if __UAPI_DEF_IN_CLASS /* * Definitions of the bits in an Internet address integer. * On subnets, host and network parts are found according * to the subnet mask, not these masks. */ #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) #define IN_CLASSA_NET 0xff000000 #define IN_CLASSA_NSHIFT 24 #define IN_CLASSA_HOST (0xffffffff & ~IN_CLASSA_NET) #define IN_CLASSA_MAX 128 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) #define IN_CLASSB_NET 0xffff0000 #define IN_CLASSB_NSHIFT 16 #define IN_CLASSB_HOST (0xffffffff & ~IN_CLASSB_NET) #define IN_CLASSB_MAX 65536 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) #define IN_CLASSC_NET 0xffffff00 #define IN_CLASSC_NSHIFT 8 #define IN_CLASSC_HOST (0xffffffff & ~IN_CLASSC_NET) #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) #define IN_MULTICAST(a) IN_CLASSD(a) #define IN_MULTICAST_NET 0xe0000000 #define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff) #define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) #define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) #define IN_CLASSE_NET 0xffffffff #define IN_CLASSE_NSHIFT 0 /* Address to accept any incoming messages. */ #define INADDR_ANY ((unsigned long int) 0x00000000) /* Address to send to all hosts. */ #define INADDR_BROADCAST ((unsigned long int) 0xffffffff) /* Address indicating an error return. */ #define INADDR_NONE ((unsigned long int) 0xffffffff) /* Dummy address for src of ICMP replies if no real address is set (RFC7600). */ #define INADDR_DUMMY ((unsigned long int) 0xc0000008) /* Network number for local host loopback. */ #define IN_LOOPBACKNET 127 /* Address to loopback in software to local host. */ #define INADDR_LOOPBACK 0x7f000001 /* 127.0.0.1 */ #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) /* Defines for Multicast INADDR */ #define INADDR_UNSPEC_GROUP 0xe0000000U /* 224.0.0.0 */ #define INADDR_ALLHOSTS_GROUP 0xe0000001U /* 224.0.0.1 */ #define INADDR_ALLRTRS_GROUP 0xe0000002U /* 224.0.0.2 */ #define INADDR_ALLSNOOPERS_GROUP 0xe000006aU /* 224.0.0.106 */ #define INADDR_MAX_LOCAL_GROUP 0xe00000ffU /* 224.0.0.255 */ #endif /* <asm/byteorder.h> contains the htonl type stuff.. */ #include <asm/byteorder.h> #endif /* _LINUX_IN_H */
SIMPAN PERUBAHAN