⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libnet-functions.h

📁 tcp数据流重放工具
💻 H
📖 第 1 页 / 共 5 页
字号:
    u_int8_t *,    u_int8_t,    u_int8_t,    u_int8_t *,    u_int16_t,    u_int8_t *,    u_int16_t,    u_int16_t,    u_int16_t,    u_int8_t *,    u_int32_t,    libnet_t *,    libnet_ptag_t    );/* *  libnet_build_ipsec_esp_hdr * *  Function builds an IPsec ESP header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ipsec_esp_hdr(    u_int32_t,             /* security parameter index */    u_int32_t,             /* ESP sequence number */    u_int32_t,             /* initialization vector */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_ipsec_esp_ftr * *  Function builds an IPsec ESP footer. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ipsec_esp_ftr(    u_int8_t,             /* padding length */    u_int8_t,             /* next header pointer */    int8_t *,             /* authentication data */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_ipsec_ah * *  Function builds an IPsec AH header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ipsec_ah(    u_int8_t,             /* next header */    u_int8_t,             /* payload length */    u_int16_t,            /* reserved */    u_int32_t,             /* security parameter index  */    u_int32_t,             /* AH sequence number */    u_int32_t,             /* authentication data */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_dns * *  Function builds a DNSv4 header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_dnsv4(    u_int16_t,            /* length */    u_int16_t,            /* ID */    u_int16_t,            /* flags */    u_int16_t,            /* number of questions */    u_int16_t,            /* number of answer resource records */    u_int16_t,            /* number of authority resource records */    u_int16_t,            /* number of additional resource records */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_rip * *  Function builds a RIP header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_rip(    u_int8_t,             /* command */    u_int8_t,             /* version */    u_int16_t,            /* zero (v1) or routing domain (v2) */    u_int16_t,            /* address family */    u_int16_t,            /* zero (v1) or route tag (v2) */    u_int32_t,             /* IP address */    u_int32_t,             /* zero (v1) or subnet mask (v2) */    u_int32_t,             /* zero (v1) or next hop IP address (v2) */    u_int32_t,             /* metric */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_rpc * *  Function builds a RPC Call header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_rpc_call(    u_int32_t,             /* record marking (used with byte stream transport protocols) */    u_int32_t,             /* xid (transaction identifier) */    u_int32_t,             /* program number */    u_int32_t,             /* program version */    u_int32_t,             /* procedure */    u_int32_t,             /* credential flavor */    u_int32_t,             /* credential length */    u_int8_t *,           /* credential data */    u_int32_t,             /* verifier flavor */    u_int32_t,             /* verifier length */    u_int8_t *,           /* verifier data */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_stp_conf * *  Function builds an STP conf header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_stp_conf(    u_int16_t,            /* protocol id */    u_int8_t,             /* protocol version */    u_int8_t,             /* bridge protocol data unit type */    u_int8_t,             /* control flags */    u_int8_t *,           /* root id */    u_int32_t,             /* root path cost */    u_int8_t *,           /* bridge id */    u_int16_t,            /* port id */    u_int16_t,            /* message age */    u_int16_t,            /* max age */    u_int16_t,            /* hello time */    u_int16_t,            /* forward delay */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_stp_tcn * *  Function builds an STP tcn header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_stp_tcn(    u_int16_t,            /* protocol id */    u_int8_t,             /* protocol version */    u_int8_t,             /* bridge protocol data unit type */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_token_ring * *  Function builds an token ring header */libnet_ptag_tlibnet_build_token_ring(    u_int8_t,         /* Access Control */    u_int8_t,         /* Frame Control */    u_int8_t *,       /* 6 byte Token Ring address */    u_int8_t *,       /* 6 byte Token Ring address */    u_int8_t,         /* DSAP */    u_int8_t,         /* SSAP */    u_int8_t,         /* Control Field */    u_int8_t *,       /* 3 byte Organization Code */    u_int16_t,        /* Protocol Type */    u_int8_t *,       /* Payload or NULL */    u_int32_t,         /* Payload length */    libnet_t *,     /* Libnet Context Pointer */    libnet_ptag_t   /* Packet ID */    );/* *  libnet_autobuild_token_ring * *  Function builds an Token Ring header, automating the process. */libnet_ptag_tlibnet_autobuild_token_ring(    u_int8_t,      /* Access Control */    u_int8_t,      /* Frame Control */    u_int8_t *,    /* 6 byte Token Ring address */    u_int8_t,      /* DSAP */    u_int8_t,      /* SSAP */    u_int8_t,      /* Control Field */    u_int8_t *,    /* 3 byte Organization Code */    u_int16_t,     /* Protocol Type */    libnet_t *   /* Libnet Context Pointer */    );/* *  libnet_build_vrrp * *  Function builds a VRRP header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_vrrp(    u_int8_t,             /* version */    u_int8_t,             /* packet type */    u_int8_t,             /* virtual router id */    u_int8_t,             /* priority */    u_int8_t,             /* number of IP addresses */    u_int8_t,             /* auth type */    u_int8_t,             /* advertisement interval */    u_int16_t,            /* checksum */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_mpls * *  Function builds an MPLS header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_mpls(    u_int32_t,             /* MPLS label */    u_int8_t,             /* experimental cruft */    u_int8_t,             /* bottom of stack bit */    u_int8_t,             /* time to live */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_ntp * *  Function builds an NTP header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ntp(    u_int8_t,             /* leap indicator */    u_int8_t,             /* version */    u_int8_t,             /* mode */    u_int8_t,             /* stratum */    u_int8_t,             /* polling interval */    u_int8_t,             /* precision */    u_int16_t,            /* root delay integer */    u_int16_t,            /* root delay fraction */    u_int16_t,            /* root dispersion integer */    u_int16_t,            /* root dispersion fraction */    u_int32_t,             /* reference ID */    u_int32_t,             /* reference timestamp integer */    u_int32_t,             /* reference timestamp fraction */    u_int32_t,             /* originate timestamp integer */    u_int32_t,             /* originate timestamp fraction */     u_int32_t,             /* receive timestamp integer */     u_int32_t,             /* receive timestamp fraction */    u_int32_t,             /* transmit timestamp integer */    u_int32_t,             /* transmit timestamp fraction */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_ospfv2 * *  Function builds a V2 OSPF header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ospfv2(    u_int16_t,            /* length of entire OSPF packet */    u_int8_t,             /* type */    u_int32_t,             /* router id */    u_int32_t,             /* area id */    u_int16_t,            /* checksum */    u_int16_t,            /* auth type */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );  /* *  libnet_build_ospf_hellov2 * *  Function builds an OSPF hello header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ospfv2_hello(    u_int32_t,             /* netmask */    u_int16_t,            /* interval (seconds since last packet sent) */    u_int8_t,             /* options */    u_int8_t,             /* priority */    u_int,              /* time til router is deemed down */    u_int32_t,             /* network's designated router */    u_int32_t,             /* network's backup router */    u_int32_t,             /* neighbor */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );  /* *  libnet_build_ospfv2_dbd * *  Function builds an OSPF dbd header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ospfv2_dbd(    u_int16_t,            /* MTU of interface */    u_int8_t,             /* options */    u_int8_t,             /* type of exchange */    u_int,              /* DBD sequence number */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );  /* *  libnet_build_ospfv2_lsr * *  Function builds an OSPF lsr header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ospfv2_lsr(    u_int,              /* type link state being requested */    u_int,              /* link state ID */    u_int32_t,             /* advertising router */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );  /* *  libnet_build_ospfv2_lsu * *  Function builds an OSPF lsu header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ospfv2_lsu(    u_int,              /* number of LSU's that will be broadcasted */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );/* *  libnet_build_ospfv2_lsa * *  Function builds an OSPF lsa header. */libnet_ptag_t           /* packet id on success, -1 on failure */libnet_build_ospfv2_lsa(    u_int16_t,            /* age */    u_int8_t,             /* options */    u_int8_t,             /* type */    u_int,              /* link state id */    u_int32_t,             /* advertisting router */    u_int,              /* sequence number */    u_int16_t,            /* checksum */    u_int16_t,            /* packet length */    u_int8_t *,           /* pointer to packet data (or NULL) */    u_int32_t,             /* payload length */    libnet_t *,         /* libnet context pointer */    libnet_ptag_t       /* packet id */    );  /* *  libnet_build_ospfv2_lsa_rtr * *  Function builds an OSPF lsa rtr header.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -