SecurityManager s = System.getSecurityManager(); if (s != null) { InetAddress addr = p.getAddress(); if (addr.isMulticastAddress()) s.checkMulticast(addr, ttl); else s.checkConnect(addr.getHostAddress(), p.getPort()); }  int oldttl = impl.getTimeToLive(); impl.setTimeToLive(((int) ttl) & 0xFF);
  public void send(DatagramPacket p, byte ttl) throws IOException  {    // FIXME:  use ttl instead of getTTL() for time to live.    impl.send(p);  }