Remove support for obsolete data type "ipv4address"
authorJelmer Vernooij <jelmer@samba.org>
Thu, 23 Oct 2008 16:56:37 +0000 (18:56 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 23 Oct 2008 16:56:37 +0000 (18:56 +0200)
source4/lib/tdr/tdr.c

index 2ad099174d82a6fa623e0295be39a7aea6a283d7..6c5461a335dc94f724f09e863d9fb0859f0f1805 100644 (file)
@@ -198,40 +198,6 @@ NTSTATUS tdr_print_charset(struct tdr_print *tdr, const char *name, const char *
        return NT_STATUS_OK;
 }
 
        return NT_STATUS_OK;
 }
 
-/**
-  pull a ipv4address
-*/
-NTSTATUS tdr_pull_ipv4address(struct tdr_pull *tdr, TALLOC_CTX *ctx, 
-                                                         const char **address)
-{
-       struct in_addr in;
-       TDR_CHECK(tdr_pull_uint32(tdr, ctx, &in.s_addr));
-       in.s_addr = htonl(in.s_addr);
-       *address = talloc_strdup(tdr, inet_ntoa(in));
-       NT_STATUS_HAVE_NO_MEMORY(*address);
-       return NT_STATUS_OK;
-}
-
-/**
-  push a ipv4address
-*/
-NTSTATUS tdr_push_ipv4address(struct tdr_push *tdr, const char **address)
-{
-       uint32_t addr = htonl(interpret_addr(*address));
-       TDR_CHECK(tdr_push_uint32(tdr, &addr));
-       return NT_STATUS_OK;
-}
-
-/**
-  print a ipv4address
-*/
-NTSTATUS tdr_print_ipv4address(struct tdr_print *tdr, const char *name, 
-                          const char **address)
-{
-       tdr->print(tdr, "%-25s: %s", name, *address);
-       return NT_STATUS_OK;
-}
-
 /**
   parse a hyper
 */
 /**
   parse a hyper
 */