<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating a packet in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/creating-a-packet/m-p/6850112#M1821</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm able to create a packet like this:&lt;/P&gt;&lt;P&gt;Ethernet etherh = new Ethernet.Builder().srcAddr(smac).dstAddr(dmac).type(EthernetType.IPv4).build();&lt;BR /&gt;Ip iph = new Ip.Builder().srcAddr(sip).dstAddr(dip).type(IpType.TCP).build();&lt;BR /&gt;Tcp tcph = new Tcp.Builder().dstPort(dport).srcPort(sport).build();&lt;BR /&gt;Packet pkt = new Packet(etherh, iph, tcph);&lt;/P&gt;&lt;P&gt;But how can I add tcp data?&lt;/P&gt;&lt;P&gt;Could anybody please help&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 20:58:21 GMT</pubDate>
    <dc:creator>HansChristian</dc:creator>
    <dc:date>2016-04-12T20:58:21Z</dc:date>
    <item>
      <title>Creating a packet</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-packet/m-p/6850112#M1821</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm able to create a packet like this:&lt;/P&gt;&lt;P&gt;Ethernet etherh = new Ethernet.Builder().srcAddr(smac).dstAddr(dmac).type(EthernetType.IPv4).build();&lt;BR /&gt;Ip iph = new Ip.Builder().srcAddr(sip).dstAddr(dip).type(IpType.TCP).build();&lt;BR /&gt;Tcp tcph = new Tcp.Builder().dstPort(dport).srcPort(sport).build();&lt;BR /&gt;Packet pkt = new Packet(etherh, iph, tcph);&lt;/P&gt;&lt;P&gt;But how can I add tcp data?&lt;/P&gt;&lt;P&gt;Could anybody please help&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-packet/m-p/6850112#M1821</guid>
      <dc:creator>HansChristian</dc:creator>
      <dc:date>2016-04-12T20:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a packet</title>
      <link>https://community.hpe.com/t5/software-defined-networking/creating-a-packet/m-p/6859802#M1822</link>
      <description>&lt;P&gt;To add TCP data, you'd likely need to specify the data as an inner "Protocol".&lt;/P&gt;&lt;P&gt;To specify the data as an inner protocol, you'd build a com.hp.util.pkt.UnknownProtocol, using UnknownProtocol.Builder and specifying the raw bytes you want to add in the bytes() method. Then you'd pass that UnknownProtocol to the Packet constructor just after the 'tcph' parameter.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:26:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/creating-a-packet/m-p/6859802#M1822</guid>
      <dc:creator>ShaunWackerly</dc:creator>
      <dc:date>2016-05-16T19:26:15Z</dc:date>
    </item>
  </channel>
</rss>

